ves-io-schema-views-app_api_group-API-Get

Examples of getting app_api_group

Usecase:

Get app_api_group "read-only" from ves.io/shared

Request using vesctl:

vesctl configuration get app_api_group read-only --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels:
    ves.io/api-scope: ves-io-part
  name: read-only
  namespace: documentation
referringObjects: []
resourceVersion: "2241"
spec:
  elements:
  - methods:
    - GET
    pathRegex: ^/api/config/namespaces/([a-z]([-a-z0-9]*[a-z0-9])?)/advertise_policys$
status: []
systemMetadata:
  creationTimestamp: "2022-07-28T12:14:19.791708943Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  labels: {}
  tenant: acmecorp
  uid: 62275dde-06d6-4077-9c16-df8d79da1eb0

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Length: 984
Content-Type: application/json
Date: Thu, 28 Jul 2022 12:14:19 GMT
Vary: Accept-Encoding
X-Volterra-Response-Fields-Deprecated: object

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "2241",
  "metadata": {
    "name": "read-only",
    "namespace": "documentation",
    "labels": {
      "ves.io/api-scope": "ves-io-part"
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "62275dde-06d6-4077-9c16-df8d79da1eb0",
    "creation_timestamp": "2022-07-28T12:14:19.791708943Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null,
    "labels": {
    }
  },
  "spec": {
    "elements": [
      {
        "methods": [
          "GET"
        ],
        "path_regex": "^/api/config/namespaces/([a-z]([-a-z0-9]*[a-z0-9])?)/advertise_policys$"
      }
    ]
  },
  "status": [
  ],
  "referring_objects": [
  ]
}