ves-io-schema-views-terraform_parameters-CustomAPI-Get

Examples of performing viewsterraformparameters CustomAPI Get

Usecase:

Perform Get on terraform_parameters

Request:

Request using vesctl:

vesctl request rpc views_terraform_parameters.CustomAPI.Get -i request.yaml --uri /public/namespaces/namespace-literal/terraform_parameters/view_kind-literal/view_name-literal --http-method GET

where file request.yaml has following contents:

{}

vesctl yaml response:

terraformParameters:
  tfObjects:
  - '@type': type.googleapis.com/ves.io.schema.views.terraform_parameters.AWSVPCType
    fleetLabel: ves-io-aws-vpc-site-view-1
    masterNodes:
    - publicSubnetId: ves-io-subnet-1234
    siteName: site-1
    subnets:
    - subnet:
        existingSubnetId: ves-io-subner-1234
      voltSubnetId: ves-io-subnet-1234
      voltVpcId: ves-vpc-id-1234
    voltVpcId: ves-vpc-id-1234
    vpc:
      vpcId: vpc-1234
    workerNodes: 5

Request using curl:

curl -X 'GET' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build672621555_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/namespace-literal/terraform_parameters/view_kind-literal/view_name-literal?namespace=&view_kind=&view_name='

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 12 May 2021 11:19:13 GMT
Vary: Accept-Encoding

{
  "terraform_parameters": {
    "tf_objects": [
      {
        "@type": "type.googleapis.com/ves.io.schema.views.terraform_parameters.AWSVPCType",
        "site_name": "site-1",
        "aws_name": "",
        "volt_vpc_id": "ves-vpc-id-1234",
        "fleet_label": "ves-io-aws-vpc-site-view-1",
        "certified_hw": "",
        "vpc": {
          "new_vpc": null,
          "vpc_id": "vpc-1234"
        },
        "subnets": [
          {
            "volt_subnet_id": "ves-io-subnet-1234",
            "volt_vpc_id": "ves-vpc-id-1234",
            "az": "",
            "subnet": {
              "subnet_param": null,
              "existing_subnet_id": "ves-io-subner-1234"
            },
            "interface_type": "INTERFACE_INSIDE"
          }
        ],
        "master_nodes": [
          {
            "volt_node_id": "",
            "volt_vpc_id": "",
            "public_subnet_id": "ves-io-subnet-1234",
            "private_subnet_id": "",
            "instance_type": "",
            "disk_size": "",
            "ami_id": "",
            "node_count": 0,
            "ebs_volume_size": 0,
            "ebs_volume_az": ""
          }
        ],
        "inside_vip_port_config": [
        ],
        "outside_vip_port_config": [
        ],
        "worker_nodes": 5,
        "gateway_type": "INGRESS_GATEWAY",
        "aws_region": "",
        "ssh_key": ""
      }
    ]
  }
}