vpc — Virtual Private Cloud
vpc · 2017-03-12

DescribeSubnets

POST

Query the list of subnets.

Wire call

Converge Cloud is RPC over HTTP. There is one path — / — and the action travels in the X-TC-Action header. The /vpc/DescribeSubnets path used in the OpenAPI document is a documentation convenience so each action is addressable; it is not a route on the server.

curl
curl -sS https://vpc.api3.convergecloud.com/ \
  -H 'Authorization: TC3-HMAC-SHA256 Credential=<SecretId>/<YYYY-MM-DD>/vpc/tc3_request, SignedHeaders=content-type;host;x-tc-action, Signature=<sig>' \
  -H 'Content-Type: application/json; charset=utf-8' \
  -H 'Host: vpc.api3.convergecloud.com' \
  -H 'X-TC-Action: DescribeSubnets' \
  -H 'X-TC-Version: 2017-03-12' \
  -H 'X-TC-Timestamp: <unix-seconds>' \
  -H 'X-TC-Region: luzon' \
  -d '{"Offset":0,"Limit":20}'

Request parameters

FieldTypeRequiredDescription
SubnetIdsstring[]—Queries the ID of the subnet instance, such as `subnet-pxir56ns`. Each request can have a maximum of 100 instances. `SubnetIds` and `Filters` cannot be specified at the same time.
FiltersFilter[]—Filter condition. `SubnetIds` and `Filters` cannot be specified at the same time.
Offsetstring—Offset. Default value: 0.
Limitstring—Number of returned results. Default value: 20. Maximum value: 100.

Response

Fields are returned inside the Response envelope. Converge Cloud answers HTTP 200 for errors as well as successes, so read Response.Error rather than the status code — and test for the presence of that object, because Code is occasionally the empty string.

FieldTypeDescription
TotalCountintegerThe number of instances meeting the filter condition.
SubnetSetSubnet[]Subnet object.
RequestIdstringThe unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
Success
{
  "Response": {
    "TotalCount": …,
    "SubnetSet": …,
    "RequestId": "…"
  }
}
Error
{
  "Response": {
    "Error": { "Code": "…", "Message": "…" },
    "RequestId": "…"
  }
}

Try it

CredentialThe key never leaves this tab — it signs the request here. The signed request goes to /api-relay/vpc.
Request bodyvalid JSONPOST vpc.api3.convergecloud.com · DescribeSubnets
Read-only. Creates nothing.
Recorded example response — captured 2026-09-17
{
  "Response": {
    "SubnetSet": [
      {
        "VpcId": "vpc-k0jq74eh",
        "SubnetId": "subnet-5119lh74",
        "SubnetName": "foundation-0a1b2c3d-subnet-public",
        "CidrBlock": "10.0.1.0/24",
        "Ipv6CidrBlock": "",
        "ISPType": "",
        "AddressType": "",
        "IsDefault": false,
        "IsRemoteVpcSnat": false,
        "EnableBroadcast": false,
        "Zone": "ncr-1",
        "RouteTableId": "rtb-h0wwp39q",
        "NetworkAclId": "acl-cva92t60",
        "TotalIpAddressCount": 253,
        "AvailableIpAddressCount": 253,
        "CreatedTime": "2026-09-11 20:48:18",
        "TagSet": [],
        "LocalZone": false,
        "IsShare": false,
        "GatewaySet": [
          {
            "Address": "10.0.1.1"
          }
        ],
        "CdcId": "",
        "IsCdcSubnet": 0,
        "Type": 0,
        "VmNum": 0,
        "ZoneId": 50010001,
        "BmsNum": 0,
        "Region": "luzon"
      },
      {
        "VpcId": "vpc-k0jq74eh",
        "SubnetId": "subnet-j1h5agm4",
        "SubnetName": "foundation-0a1b2c3d-subnet-private",
        "CidrBlock": "10.0.2.0/24",
        "Ipv6CidrBlock": "",
        "ISPType": "",
        "AddressType": "",
        "IsDefault": false,
        "IsRemoteVpcSnat": false,
        "EnableBroadcast": false,
        "Zone": "ncr-1",
        "RouteTableId": "rtb-o9dnanu2",
        "NetworkAclId": "acl-e9dbyl8s",
        "TotalIpAddressCount": 253,
        "AvailableIpAddressCount": 253,
        "CreatedTime": "2026-09-11 20:46:00",
        "TagSet": [],
        "LocalZone": false,
        "IsShare": false,
        "GatewaySet": [
          {
            "Address": "10.0.2.1"
          }
        ],
        "CdcId": "",
        "IsCdcSubnet": 0,
        "Type": 0,
        "VmNum": 0,
        "ZoneId": 50010001,
        "BmsNum": 0,
        "Region": "luzon"
      }
    ],
    "TotalCount": 2,
    "RegionStatistics": [
      {
        "TotalCount": 2,
        "Region": "luzon"
      }
    ],
    "RequestId": "ce5b15b9-e45a-64f0-ed41-a95606ba2dfe"
  }
}