ves-io-schema-views-aws_tgw_site-API-List

Examples of listing awstgwsite

Usecase:

List all awstgwsites in current namespace

Request using vesctl:

vesctl configuration list aws_tgw_site --namespace documentation

vesctl yaml response:

items:
- labels: {}
  name: tgw-site-1
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: ab04f46a-1e0c-4909-9037-d698c809134b
- labels: {}
  name: tgw-site-2
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 57104b05-3466-4518-97a1-f648ea06ab44
- labels: {}
  name: tgw-site-3
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 8b77b7f7-5a0c-465e-a821-bd869c8b865c
- labels: {}
  name: tgw-site-4
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 58f38507-68e8-461d-a5be-c37ca0d48ef1

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build013258245_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/aws_tgw_sites'

curl response

HTTP/1.1 200 OK
Content-Length: 1167
Content-Type: application/json
Date: Wed, 16 Sep 2020 10:51:01 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "tgw-site-1",
      "uid": "ab04f46a-1e0c-4909-9037-d698c809134b",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "tgw-site-2",
      "uid": "57104b05-3466-4518-97a1-f648ea06ab44",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "tgw-site-3",
      "uid": "8b77b7f7-5a0c-465e-a821-bd869c8b865c",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "tgw-site-4",
      "uid": "58f38507-68e8-461d-a5be-c37ca0d48ef1",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}