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:

object:
  metadata:
    annotations: {}
    labels: {}
    name: namespace-1
    uid: 1d1ed3c5-4b74-4e6a-91d4-9e50b47dbeee
  spec:
    gcSpec: {}
  systemMetadata:
    creationTimestamp: "2020-05-15T10:52:45.955818597Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace: []
    tenant: acmecorp
    traceInfo: 368694cf43b6c6dc:368694cf43b6c6dc:0:1
    uid: 1d1ed3c5-4b74-4e6a-91d4-9e50b47dbeee
resourceVersion: "291"

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build144460626_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/namespace-1?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Length: 988
Content-Type: application/json
Date: Fri, 15 May 2020 10:52:45 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "namespace-1",
      "namespace": "",
      "uid": "1d1ed3c5-4b74-4e6a-91d4-9e50b47dbeee",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "1d1ed3c5-4b74-4e6a-91d4-9e50b47dbeee",
      "creation_timestamp": "2020-05-15T10:52:45.955818597Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "368694cf43b6c6dc:368694cf43b6c6dc:0:1",
      "object_index": 0,
      "namespace": [
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {

      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "291",
  "metadata": null,
  "system_metadata": null,
  "spec": null
}