ves-io-schema-views-aws_tgw_site-API-Get

Examples of getting awstgwsite

Usecase:

Get tgw-site1 from current namespace

Request using vesctl:

vesctl configuration get aws_tgw_site tgw-site1 --namespace system

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: tgw-site1
  namespace: system
referringObjects: []
resourceVersion: "1007"
spec:
  awsParameters:
    assisted: {}
    awsCertifiedHw: aws-byol-multi-nic-voltmesh
    awsRegion: us-east-1
    azNodes:
    - awsAzName: us-west-2a
      diskSize: 80
      insideSubnet:
        existingSubnetId: subnet-a2345678901234567
      outsideSubnet:
        existingSubnetId: subnet-b2345678901234567
    existingTgw:
      tgwAsn: 64500
      tgwId: tgw-a2345678901234567
      volterraSiteAsn: 64501
    instanceType: a1.xlarge
    nodesPerAz: 2
    sshKey: ssh-rsa AAAAB..
    vpcId: vpc-a2345678901234567
  logsStreamingDisabled: {}
  tgwSecurity:
    noEastWestPolicy: {}
    noForwardProxy: {}
    noNetworkPolicy: {}
  tunnels: []
  vipParamsPerAz: []
  vpcAttachments:
    vpcList:
    - labels: {}
      vpcId: vpc-a2345678901234567
  vpcIpPrefixes: {}
status: []
systemMetadata:
  creationTimestamp: "2021-08-25T09:04:20.658647600Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 2883b111-a40b-4e86-a1d2-cf3f30c9caa4

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/tgw-site1?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:04:20 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "1007",
  "metadata": {
    "name": "tgw-site1",
    "namespace": "system",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "2883b111-a40b-4e86-a1d2-cf3f30c9caa4",
    "creation_timestamp": "2021-08-25T09:04:20.658647600Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "aws_parameters": {
      "aws_region": "us-east-1",
      "vpc_id": "vpc-a2345678901234567",
      "existing_tgw": {
        "tgw_id": "tgw-a2345678901234567",
        "tgw_asn": 64500,
        "volterra_site_asn": 64501
      },
      "aws_certified_hw": "aws-byol-multi-nic-voltmesh",
      "instance_type": "a1.xlarge",
      "ssh_key": "ssh-rsa AAAAB..",
      "az_nodes": [
        {
          "aws_az_name": "us-west-2a",
          "inside_subnet": {
            "existing_subnet_id": "subnet-a2345678901234567"
          },
          "outside_subnet": {
            "existing_subnet_id": "subnet-b2345678901234567"
          },
          "workload_subnet": null,
          "disk_size": 80
        }
      ],
      "nodes_per_az": 2,
      "disk_size": 0,
      "assisted": {

      }
    },
    "vpc_attachments": {
      "vpc_list": [
        {
          "vpc_id": "vpc-a2345678901234567",
          "labels": {
          }
        }
      ]
    },
    "vn_config": null,
    "tgw_security": {
      "no_forward_proxy": {

      },
      "no_east_west_policy": {

      },
      "no_network_policy": {

      }
    },
    "volterra_software_version": "",
    "operating_system_version": "",
    "vpc_ip_prefixes": {
    },
    "tunnels": [
    ],
    "address": "",
    "coordinates": null,
    "user_modification_timestamp": null,
    "tgw_info": null,
    "logs_streaming_disabled": {

    },
    "site_state": "ONLINE",
    "vip_params_per_az": [
    ]
  },
  "status": [
  ],
  "referring_objects": [
  ]
}