ves-io-schema-namespace-API-Get

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
referringObjects: []
resourceVersion: "527"
spec: {}
status: []
systemMetadata:
  creationTimestamp: "2021-05-12T11:18:14.293857014Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 9bf2ce85-afe1-4840-8ac0-9aa9a3eca950

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build672621555_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: 726
Content-Type: application/json
Date: Wed, 12 May 2021 11:18:14 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "527",
  "metadata": {
    "name": "namespace-1",
    "namespace": "",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "9bf2ce85-afe1-4840-8ac0-9aa9a3eca950",
    "creation_timestamp": "2021-05-12T11:18:14.293857014Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {

  },
  "status": [
  ],
  "referring_objects": [
  ]
}