ves-io-schema-api_group_element-API-Get

Examples of getting apigroupelement

Usecase:

Get apigroupelement 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
resourceVersion: "37"
spec:
  methods:
  - GET
  pathRegex: ^/api/config/namespaces/([a-z]([-a-z0-9]*[a-z0-9])?)/advertise_policys$
status: []
systemMetadata:
  creationTimestamp: "2021-02-22T15:43:27.362195100Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: ves-io
  uid: 695535c8-4f7a-434e-9adb-42f07d727b76

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_group_elements/ves-io-public-advertise-policys-read-api?response_format=0'

curl response:

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

{
  "object": null,
  "resource_version": "37",
  "metadata": {
    "name": "ves-io-public-advertise-policys-read-api",
    "namespace": "shared",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "695535c8-4f7a-434e-9adb-42f07d727b76",
    "creation_timestamp": "2021-02-22T15:43:27.362195100Z",
    "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": {
    "methods": [
      "GET"
    ],
    "path_regex": "^/api/config/namespaces/([a-z]([-a-z0-9]*[a-z0-9])?)/advertise_policys$"
  },
  "status": [
  ]
}