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

Examples of performing terraform_parameters CustomAPI Get

Usecase:

Perform Get on terraform_parameters

Request:

Request using vesctl:

vesctl request rpc 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:
  creds: []
  tfObjects:
  - '@type': type.googleapis.com/ves.io.schema.views.terraform_parameters.AWSVPCType
    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=_var_folders_2__8qnt6fwd5dvglr1xqq6l8b7w0000gp_T_go-build3109416560_b001_apidocs.test/host=C02FN35BMD6R/svc=S:examplesvc/site=mytestce01' '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: Thu, 21 Mar 2024 14:08:58 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",
        "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": "",
        "tags": {
        },
        "dx_connect": null,
        "multi_node_non_std_az": false,
        "internet_vip": false,
        "deployment": null,
        "egress_gw_id": "",
        "assume_role": null,
        "outside_security_group_id": "",
        "inside_security_group_id": "",
        "disable_internet_connectivity_via_igw": false
      }
    ],
    "creds": [
    ],
    "container_version": ""
  }
}