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: 77588ffa-a69e-4254-aeb4-e1fb1698cb28
- annotations: {}
  labels: {}
  name: tgw-site-2
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 4d73dd97-0b77-4ec7-a544-3be55c2532eb
- annotations: {}
  labels: {}
  name: tgw-site-3
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 0c517f6d-babf-4eb8-93cb-ec52dfc900d0
- annotations: {}
  labels: {}
  name: tgw-site-4
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: ce862ccd-b5a4-40c3-a930-e0daee3bb273

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build970361017_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, 25 Aug 2021 09:04:20 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "tgw-site-1",
      "uid": "77588ffa-a69e-4254-aeb4-e1fb1698cb28",
      "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": "4d73dd97-0b77-4ec7-a544-3be55c2532eb",
      "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": "0c517f6d-babf-4eb8-93cb-ec52dfc900d0",
      "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": "ce862ccd-b5a4-40c3-a930-e0daee3bb273",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}