ves-io-schema-namespace-API-Get
On This Page:
Examples of getting namespace
Usecase:
Get namespace-1
Request using vesctl:
vesctl configuration get namespace namespace-1 --namespace
vesctl yaml response:
metadata:
annotations: {}
labels: {}
name: namespace-1
resourceVersion: "508"
spec: {}
systemMetadata:
creationTimestamp: "2021-02-22T15:44:17.759467600Z"
creatorClass: examplesvc
creatorId: examplesvc
finalizers: []
tenant: acmecorp
uid: 2f1c2ac2-f4c8-49e4-bd37-623d27530a04
Request using curl:
curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build817539475_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/web/namespaces/namespace-1?response_format=0'
curl response:
HTTP/1.1 200 OK
Content-Length: 677
Content-Type: application/json
Date: Mon, 22 Feb 2021 15:44:17 GMT
Vary: Accept-Encoding
{
"object": null,
"create_form": null,
"replace_form": null,
"resource_version": "508",
"metadata": {
"name": "namespace-1",
"namespace": "",
"labels": {
},
"annotations": {
},
"description": "",
"disable": false
},
"system_metadata": {
"uid": "2f1c2ac2-f4c8-49e4-bd37-623d27530a04",
"creation_timestamp": "2021-02-22T15:44:17.759467600Z",
"deletion_timestamp": null,
"modification_timestamp": null,
"initializers": null,
"finalizers": [
],
"tenant": "acmecorp",
"creator_class": "examplesvc",
"creator_id": "examplesvc",
"object_index": 0,
"owner_view": null
},
"spec": {
}
}