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
referringObjects: []
resourceVersion: "156"
spec:
  awsSecretKey:
    accessKey: abcdefghijkl
    secretKey:
      clearSecretInfo:
        url: string://<base64>
status: []
systemMetadata:
  creationTimestamp: "2021-07-14T08:06:48.287336384Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 8f55fd2f-0d18-43a2-941a-8d5ff53c2767

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build381173587_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-Length: 1047
Content-Type: application/json
Date: Wed, 14 Jul 2021 08:06:48 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "156",
  "metadata": {
    "name": "aws-cloud-credentials",
    "namespace": "system",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "8f55fd2f-0d18-43a2-941a-8d5ff53c2767",
    "creation_timestamp": "2021-07-14T08:06:48.287336384Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "aws_secret_key": {
      "access_key": "abcdefghijkl",
      "secret_key": {
        "clear_secret_info": {
          "provider": "",
          "url": "string://\u003cbase64\u003e"
        },
        "blindfold_secret_info_internal": null,
        "secret_encoding_type": "EncodingNone"
      }
    }
  },
  "status": [
  ],
  "referring_objects": [
  ]
}