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
resourceVersion: "160"
spec:
  password:
    clearSecretInfo: {}
  registry: registry.example.com
status: []
systemMetadata:
  creationTimestamp: "2020-11-24T10:45:38.915104400Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 6e44c1bd-dc0f-4cff-a476-f18fb9940b49

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build186851157_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-Length: 977
Content-Type: application/json
Date: Tue, 24 Nov 2020 10:45:38 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "160",
  "metadata": {
    "name": "example",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "6e44c1bd-dc0f-4cff-a476-f18fb9940b49",
    "creation_timestamp": "2020-11-24T10:45:38.915104400Z",
    "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": "registry.example.com",
    "user_name": "",
    "password": {
      "clear_secret_info": {
        "provider": "",
        "url": ""
      },
      "blindfold_secret_info_internal": null,
      "secret_encoding_type": "EncodingNone"
    },
    "email": ""
  },
  "status": [
  ]
}