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 system

vesctl yaml response:

errors: []
items:
- annotations: {}
  labels: {}
  name: tgw-site-1
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: aa1d395d-47c7-406f-91db-92e8d876602b
- annotations: {}
  labels: {}
  name: tgw-site-2
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 49afc4cb-61f0-4e46-95e3-2eb9fffb3bce
- annotations: {}
  labels: {}
  name: tgw-site-3
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: cc7ecc43-de03-437b-af6a-754d95253282
- annotations: {}
  labels: {}
  name: tgw-site-4
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 99df0cad-baf8-4c00-b7b3-e72b7e0c0aab

Request using curl:

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

curl response

HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 02 Jun 2021 10:22:36 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "tgw-site-1",
      "uid": "aa1d395d-47c7-406f-91db-92e8d876602b",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "tgw-site-2",
      "uid": "49afc4cb-61f0-4e46-95e3-2eb9fffb3bce",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "tgw-site-3",
      "uid": "cc7ecc43-de03-437b-af6a-754d95253282",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "tgw-site-4",
      "uid": "99df0cad-baf8-4c00-b7b3-e72b7e0c0aab",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}