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-05-12T11:17:37.115123541Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: f0aa1f71-e6a7-483e-be36-2470f3891db2

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build672621555_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, 12 May 2021 11:17:37 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": "f0aa1f71-e6a7-483e-be36-2470f3891db2",
    "creation_timestamp": "2021-05-12T11:17:37.115123541Z",
    "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": [
  ]
}