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:

object:
  metadata:
    annotations: {}
    labels: {}
    name: ves-io-public-advertise-policys-read-api
    namespace: shared
    uid: ab5c570b-fd79-4187-a5b1-6105c85453f3
  spec:
    gcSpec:
      methods:
      - GET
      pathRegex: ^/api/config/namespaces/([a-z]([-a-z0-9]*[a-z0-9])?)/advertise_policys$
  systemMetadata:
    creationTimestamp: "2020-05-15T10:52:28.803773518Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: shared
      tenant: ves-io
    tenant: ves-io
    traceInfo: 437703a1d71a87d6:4918ff6b2a8a5c61:437703a1d71a87d6:1
    uid: ab5c570b-fd79-4187-a5b1-6105c85453f3
resourceVersion: "28"
status: []

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build144460626_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: 1306
Content-Type: application/json
Date: Fri, 15 May 2020 10:52:28 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "ves-io-public-advertise-policys-read-api",
      "namespace": "shared",
      "uid": "ab5c570b-fd79-4187-a5b1-6105c85453f3",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "ab5c570b-fd79-4187-a5b1-6105c85453f3",
      "creation_timestamp": "2020-05-15T10:52:28.803773518Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "ves-io",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "437703a1d71a87d6:4918ff6b2a8a5c61:437703a1d71a87d6:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "ves-io",
          "namespace": "",
          "name": "shared"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "methods": [
          "GET"
        ],
        "path_regex": "^/api/config/namespaces/([a-z]([-a-z0-9]*[a-z0-9])?)/advertise_policys$"
      }
    }
  },
  "resource_version": "28",
  "metadata": null,
  "system_metadata": null,
  "spec": null,
  "status": [
  ]
}