ves-io-schema-api_group-API-Get

Examples of getting api_group

Usecase:

Get api_group ves-io-proxy-read-apis from ves.io/shared

Request using vesctl:

vesctl configuration get api_group ves-io-proxy-read-apis --namespace ves-io-shared

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: ves-io-proxy-read-apis
  namespace: shared
resourceVersion: "32"
spec:
  elements:
  - kind: api_group_element
    name: ves-io-public-advertise-policys-read-api
    namespace: shared
    tenant: ves-io
    uid: 7788ec7a-22a3-426e-aa7b-5bce9dbced03
  - kind: api_group_element
    name: ves-io-public-virtual-host-read-api
    namespace: shared
    tenant: ves-io
    uid: 29379838-42a2-4ae3-a31c-a3f0649ad308
status: []
systemMetadata:
  creationTimestamp: "2021-02-22T15:43:26.836951600Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: ves-io
  uid: 3a75a137-dfeb-465c-ac61-b64073fc1a5e

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build817539475_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/web/namespaces/ves-io-shared/api_groups/ves-io-proxy-read-apis?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Length: 1134
Content-Type: application/json
Date: Mon, 22 Feb 2021 15:43:26 GMT
Vary: Accept-Encoding

{
  "object": null,
  "resource_version": "32",
  "metadata": {
    "name": "ves-io-proxy-read-apis",
    "namespace": "shared",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "3a75a137-dfeb-465c-ac61-b64073fc1a5e",
    "creation_timestamp": "2021-02-22T15:43:26.836951600Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "ves-io",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "elements": [
      {
        "kind": "api_group_element",
        "uid": "7788ec7a-22a3-426e-aa7b-5bce9dbced03",
        "tenant": "ves-io",
        "namespace": "shared",
        "name": "ves-io-public-advertise-policys-read-api"
      },
      {
        "kind": "api_group_element",
        "uid": "29379838-42a2-4ae3-a31c-a3f0649ad308",
        "tenant": "ves-io",
        "namespace": "shared",
        "name": "ves-io-public-virtual-host-read-api"
      }
    ]
  },
  "status": [
  ]
}