ves-io-schema-cloud_credentials-API-Get

Examples of getting cloud_credentials

Usecase:

Get k8s-cloudcredentials cloudcredentials object from system namespace

Request using vesctl:

vesctl configuration get cloud_credentials aws-cloud-credentials --namespace system

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: aws-cloud-credentials
  namespace: system
object:
  metadata:
    annotations: {}
    labels: {}
    name: aws-cloud-credentials
    namespace: system
    uid: d1285207-0ed1-4e83-a9da-b7be54f6b6b7
  spec:
    gcSpec:
      awsSecretKey:
        accessKey: abcdefghijkl
        secretKey:
          clearSecretInfo:
            url: string://<base64>
  systemMetadata:
    creationTimestamp: "2020-07-31T12:54:03.253940400Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: system
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 10c44f07acea090d:10c44f07acea090d:0:1
    uid: d1285207-0ed1-4e83-a9da-b7be54f6b6b7
resourceVersion: "96"
spec:
  awsSecretKey:
    accessKey: abcdefghijkl
    secretKey:
      clearSecretInfo:
        url: string://<base64>
status: []
systemMetadata:
  creationTimestamp: "2020-07-31T12:54:03.253940400Z"
  creatorClass: examplesvc.ves.io
  finalizers: []
  tenant: acmecorp
  uid: d1285207-0ed1-4e83-a9da-b7be54f6b6b7

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build896999001_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/system/cloud_credentialss/aws-cloud-credentials?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Fri, 31 Jul 2020 12:54:03 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "aws-cloud-credentials",
      "namespace": "system",
      "uid": "d1285207-0ed1-4e83-a9da-b7be54f6b6b7",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "d1285207-0ed1-4e83-a9da-b7be54f6b6b7",
      "creation_timestamp": "2020-07-31T12:54:03.253940400Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "10c44f07acea090d:10c44f07acea090d:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "system"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "aws_secret_key": {
          "access_key": "abcdefghijkl",
          "secret_key": {
            "clear_secret_info": {
              "provider": "",
              "url": "string://\u003cbase64\u003e"
            },
            "secret_encoding_type": "EncodingNone"
          }
        }
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "96",
  "metadata": {
    "name": "aws-cloud-credentials",
    "namespace": "system",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "d1285207-0ed1-4e83-a9da-b7be54f6b6b7",
    "creation_timestamp": "2020-07-31T12:54:03.253940400Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc.ves.io",
    "creator_id": "",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "aws_secret_key": {
      "access_key": "abcdefghijkl",
      "secret_key": {
        "clear_secret_info": {
          "provider": "",
          "url": "string://\u003cbase64\u003e"
        },
        "secret_encoding_type": "EncodingNone"
      }
    }
  },
  "status": [
  ]
}