ves-io-schema-authentication-API-Get

Examples of getting authentication

Usecase:

Get apigw-1

Request using vesctl:

vesctl configuration get authentication apigw-1 --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: apigw-1
  namespace: documentation
referringObjects: []
resourceVersion: "127"
spec:
  cookieParams:
    cookieExpiry: 3600
    cookieRefreshInterval: 3000
    sessionExpiry: 3600
  oidcAuth:
    clientSecret:
      clearSecretInfo:
        url: string://<base64>
    oidcClientId: oidc-google-clientid
    oidcWellKnownConfigUrl: https://www.azure.com/well_known/config
status: []
systemMetadata:
  creationTimestamp: "2021-08-25T09:02:43.981686708Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: c5d3285a-efe1-4ebd-aacb-e2c04d09db33

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Length: 1256
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:02:43 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "127",
  "metadata": {
    "name": "apigw-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "c5d3285a-efe1-4ebd-aacb-e2c04d09db33",
    "creation_timestamp": "2021-08-25T09:02:43.981686708Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "oidc_auth": {
      "oidc_well_known_config_url": "https://www.azure.com/well_known/config",
      "oidc_client_id": "oidc-google-clientid",
      "client_secret": {
        "clear_secret_info": {
          "provider": "",
          "url": "string://\u003cbase64\u003e"
        },
        "blindfold_secret_info_internal": null,
        "secret_encoding_type": "EncodingNone"
      }
    },
    "cookie_params": {
      "cookie_refresh_interval": 3000,
      "cookie_expiry": 3600,
      "session_expiry": 3600
    }
  },
  "status": [
  ],
  "referring_objects": [
  ]
}