ves-io-schema-api_group_element-API-Get

Examples of getting api_group_element

Usecase:

Get api_group_element ves-io-public-advertise-policys-read-api from ves.io/shared

Request using vesctl:

vesctl configuration get api_group_element ves-io-public-advertise-policys-read-api --namespace ves-io-shared

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: ves-io-public-advertise-policys-read-api
  namespace: shared
referringObjects: []
resourceVersion: "184"
spec:
  methods:
  - GET
  pathRegex: ^/api/config/namespaces/([a-z]([-a-z0-9]*[a-z0-9])?)/advertise_policys$
status: []
systemMetadata:
  creationTimestamp: "2022-09-23T13:11:22.031471184Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  labels: {}
  tenant: ves-io
  uid: 32ffb49b-3b47-42eb-9ed6-9f2b67448cf3

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build243329498_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/web/namespaces/ves-io-shared/api_group_elements/ves-io-public-advertise-policys-read-api?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Length: 862
Content-Type: application/json
Date: Fri, 23 Sep 2022 13:11:22 GMT
Vary: Accept-Encoding
X-Volterra-Response-Fields-Deprecated: object

{
  "object": null,
  "resource_version": "184",
  "metadata": {
    "name": "ves-io-public-advertise-policys-read-api",
    "namespace": "shared",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "32ffb49b-3b47-42eb-9ed6-9f2b67448cf3",
    "creation_timestamp": "2022-09-23T13:11:22.031471184Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "ves-io",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null,
    "labels": {
    }
  },
  "spec": {
    "methods": [
      "GET"
    ],
    "path_regex": "^/api/config/namespaces/([a-z]([-a-z0-9]*[a-z0-9])?)/advertise_policys$"
  },
  "status": [
  ],
  "referring_objects": [
  ]
}