ves-io-schema-container_registry-API-Get

Examples of getting container_registry

Usecase:

Get example

Request using vesctl:

vesctl configuration get container_registry example --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: example
  namespace: documentation
object:
  metadata:
    annotations: {}
    labels: {}
    name: example
    namespace: documentation
    uid: 5e1f9973-f3c5-4500-9aaa-95bb12ecf872
  spec:
    gcSpec:
      password:
        clearSecretInfo: {}
      registry: http://registry.example.com
  systemMetadata:
    creationTimestamp: "2020-10-19T09:48:13.430300500Z"
    creatorClass: examplesvc
    creatorId: examplesvc
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 76436d6fc2efa5f:76436d6fc2efa5f:0:1
    uid: 5e1f9973-f3c5-4500-9aaa-95bb12ecf872
resourceVersion: "144"
spec:
  password:
    clearSecretInfo: {}
  registry: http://registry.example.com
status: []
systemMetadata:
  creationTimestamp: "2020-10-19T09:48:13.430300500Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 5e1f9973-f3c5-4500-9aaa-95bb12ecf872

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Mon, 19 Oct 2020 09:48:13 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "example",
      "namespace": "documentation",
      "uid": "5e1f9973-f3c5-4500-9aaa-95bb12ecf872",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "5e1f9973-f3c5-4500-9aaa-95bb12ecf872",
      "creation_timestamp": "2020-10-19T09:48:13.430300500Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc",
      "creator_id": "examplesvc",
      "creator_cookie": "",
      "trace_info": "76436d6fc2efa5f:76436d6fc2efa5f:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "registry": "http://registry.example.com",
        "user_name": "",
        "password": {
          "clear_secret_info": {
            "provider": "",
            "url": ""
          },
          "secret_encoding_type": "EncodingNone"
        },
        "email": ""
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "144",
  "metadata": {
    "name": "example",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "5e1f9973-f3c5-4500-9aaa-95bb12ecf872",
    "creation_timestamp": "2020-10-19T09:48:13.430300500Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "registry": "http://registry.example.com",
    "user_name": "",
    "password": {
      "clear_secret_info": {
        "provider": "",
        "url": ""
      },
      "secret_encoding_type": "EncodingNone"
    },
    "email": ""
  },
  "status": [
  ]
}