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: 21eacde1-47b5-4d0c-afc6-f1b79dfb1314
- annotations: {}
  labels: {}
  name: tgw-site-2
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: d44e11da-b961-4a34-92d3-9e3d036b7570
- annotations: {}
  labels: {}
  name: tgw-site-3
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 1caa3331-67f3-479e-b669-e323dce06980
- annotations: {}
  labels: {}
  name: tgw-site-4
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 6c75751c-2be8-49d7-9fed-68fb9bb34037

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build038462651_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, 12 Jan 2022 14:51:35 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "tgw-site-1",
      "uid": "21eacde1-47b5-4d0c-afc6-f1b79dfb1314",
      "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": "d44e11da-b961-4a34-92d3-9e3d036b7570",
      "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": "1caa3331-67f3-479e-b669-e323dce06980",
      "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": "6c75751c-2be8-49d7-9fed-68fb9bb34037",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}