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 documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: tgw-site1
  namespace: documentation
object:
  metadata:
    annotations: {}
    labels: {}
    name: tgw-site1
    namespace: documentation
    uid: 0854732a-1f31-4629-9bae-80c2395437a7
  spec:
    gcSpec:
      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
        noInsideStaticRoutes: {}
        noOutsideStaticRoutes: {}
        nodesPerAz: 2
        sshKey: ssh-rsa AAAAB..
        vpcId: vpc-a2345678901234567
      tgwSecurity:
        noForwardProxyPolicy: {}
        noNetworkPolicy: {}
      tunnels: []
      vpcAttachments:
        vpcList:
        - vpcId: vpc-a2345678901234567
      vpcIpPrefixes: {}
  systemMetadata:
    creationTimestamp: "2020-09-23T09:54:12.367519Z"
    creatorClass: examplesvc
    creatorId: examplesvc
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 590bcf08c5f5cf6:590bcf08c5f5cf6:0:1
    uid: 0854732a-1f31-4629-9bae-80c2395437a7
resourceVersion: "776"
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
    noInsideStaticRoutes: {}
    noOutsideStaticRoutes: {}
    nodesPerAz: 2
    sshKey: ssh-rsa AAAAB..
    vpcId: vpc-a2345678901234567
  tgwSecurity:
    noForwardProxyPolicy: {}
    noNetworkPolicy: {}
  tunnels: []
  vpcAttachments:
    vpcList:
    - vpcId: vpc-a2345678901234567
  vpcIpPrefixSets: {}
status: []
systemMetadata:
  creationTimestamp: "2020-09-23T09:54:12.367519Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 0854732a-1f31-4629-9bae-80c2395437a7

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 23 Sep 2020 09:54:12 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "tgw-site1",
      "namespace": "documentation",
      "uid": "0854732a-1f31-4629-9bae-80c2395437a7",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "0854732a-1f31-4629-9bae-80c2395437a7",
      "creation_timestamp": "2020-09-23T09:54:12.367519Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc",
      "creator_id": "examplesvc",
      "creator_cookie": "",
      "trace_info": "590bcf08c5f5cf6:590bcf08c5f5cf6:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_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"
              },
              "disk_size": "80"
            }
          ],
          "nodes_per_az": 2,
          "disk_size": 0,
          "assisted": {

          },
          "no_inside_static_routes": {

          },
          "no_outside_static_routes": {

          }
        },
        "vpc_attachments": {
          "vpc_list": [
            {
              "vpc_id": "vpc-a2345678901234567"
            }
          ]
        },
        "tgw_security": {
          "no_forward_proxy_policy": {

          },
          "no_network_policy": {

          }
        },
        "volterra_software_version": "",
        "operating_system_version": "",
        "vpc_ip_prefixes": {
        },
        "tunnels": [
        ],
        "tf_params": null,
        "view_internal": null
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "776",
  "metadata": {
    "name": "tgw-site1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "0854732a-1f31-4629-9bae-80c2395437a7",
    "creation_timestamp": "2020-09-23T09:54:12.367519Z",
    "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"
          },
          "disk_size": "80"
        }
      ],
      "nodes_per_az": 2,
      "disk_size": 0,
      "assisted": {

      },
      "no_inside_static_routes": {

      },
      "no_outside_static_routes": {

      }
    },
    "vpc_attachments": {
      "vpc_list": [
        {
          "vpc_id": "vpc-a2345678901234567"
        }
      ]
    },
    "tgw_security": {
      "no_forward_proxy_policy": {

      },
      "no_network_policy": {

      }
    },
    "volterra_software_version": "",
    "operating_system_version": "",
    "vpc_ip_prefix_sets": {
    },
    "tunnels": [
    ]
  },
  "status": [
  ]
}