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

Examples of getting appapigroup

Usecase:

Get appapigroup "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: "1785"
spec:
  elements:
  - methods:
    - GET
    pathRegex: ^/api/config/namespaces/([a-z]([-a-z0-9]*[a-z0-9])?)/advertise_policys$
status: []
systemMetadata:
  creationTimestamp: "2022-01-12T14:51:31.753848100Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 850129d2-2ec0-459d-8dc9-3b99df4b5150

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build038462651_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: 961
Content-Type: application/json
Date: Wed, 12 Jan 2022 14:51:31 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "1785",
  "metadata": {
    "name": "read-only",
    "namespace": "documentation",
    "labels": {
      "ves.io/api-scope": "ves-io-part"
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "850129d2-2ec0-459d-8dc9-3b99df4b5150",
    "creation_timestamp": "2022-01-12T14:51:31.753848100Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "elements": [
      {
        "methods": [
          "GET"
        ],
        "path_regex": "^/api/config/namespaces/([a-z]([-a-z0-9]*[a-z0-9])?)/advertise_policys$"
      }
    ]
  },
  "status": [
  ],
  "referring_objects": [
  ]
}