Queries IPv4 gateways.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
Action | String | Yes | ListIpv4Gateways | The operation that you want to perform. Set the value to ListIpv4Gateways. |
RegionId | String | Yes | ap-southeast-6 | The ID of the region where the IPv4 gateways to be queried are deployed. You can call the DescribeRegions operation to query the most recent region list. |
MaxResults | Integer | No | 10 | The number of entries to return per page. Valid values: 1 to 100. Default value: 10. |
NextToken | String | No | FFmyTO70tTpLG6I3FmYAXGKPd**** | The pagination token that is used in the next request to retrieve a new page of results. Valid values:
|
VpcId | String | No | vpc-5tsrxlw7dv074gci4**** | The ID of the virtual private cloud (VPC) with which the IPv4 gateway is associated. |
Ipv4GatewayId | String | No | ipv4gw-5tsnc6s4ogsedtp3k**** | The ID of the IPv4 gateway. |
Ipv4GatewayName | String | No | name | The name of the IPv4 gateway. The name must be 1 to 128 characters in length and cannot start with |
ResourceGroupId | String | No | rg-bp67acfmxazb4ph**** | The ID of the resource group to which the IPv4 gateway belongs. |
Tags.N.Key | String | No | FinanceDept | The key of tag N to add to the resource. You can specify at most 20 tag keys. The tag key cannot be an empty string. The tag key can be at most 128 characters in length. It cannot start with |
Tags.N.Value | String | No | FinanceJoshua | The value of tag N to add to the resource. You can specify at most 20 tag values. The tag value can be an empty string. The tag value can be up to 128 characters in length and cannot start with |
Response parameters
Parameter | Type | Example | Description |
NextToken | String | FFmyTO70tTpLG6I3FmYAXGKPd**** | A pagination token. It can be used in the next request to retrieve a new page of results. Valid values:
|
RequestId | String | 2D265800-E306-529C-8418-84B0A1D201DB | The request ID. |
TotalCount | String | 1 | The number of entries returned. |
Ipv4GatewayModels | Array of Ipv4GatewayModels | The list of IPv4 gateways. |
|
VpcId | String | vpc-5tsrxlw7dv074gci4**** | The ID of the VPC with which the IPv4 gateway is associated. |
Status | String | Created | The status of the IPv4 gateway. Valid values:
|
Ipv4GatewayId | String | ipv4gw-5tsnc6s4ogsedtp3k**** | The ID of the IPv4 gateway. |
Ipv4GatewayDescription | String | test | The description of the IPv4 gateway. |
Enabled | Boolean | true | Indicates whether the IPv4 gateway is activated. Valid values:
|
GmtCreate | String | 2021-12-02T07:07:35Z | The time when the IPv4 gateway was created. |
Ipv4GatewayRouteTableId | String | vtb-5ts0ohchwkp3dydt2**** | The ID of the route table associated with the IPv4 gateway. |
Ipv4GatewayName | String | name | The name of the IPv4 gateway. |
ResourceGroupId | String | rg-bp67acfmxazb4ph**** | The ID of the resource group to which the IPv4 gateway belongs. |
Tags | Array of Tag | The list of tags. |
|
Key | String | FinanceDept | The key of tag N. |
Value | String | FinanceJoshua | The value of tag N. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ListIpv4Gateways
&RegionId=ap-southeast-6
&MaxResults=10
&NextToken=FFmyTO70tTpLG6I3FmYAXGKPd****
&VpcId=vpc-5tsrxlw7dv074gci4****
&Ipv4GatewayId=ipv4gw-5tsnc6s4ogsedtp3k****
&Ipv4GatewayName=name
&ResourceGroupId=rg-bp67acfmxazb4ph****
&Tags=[{"Key":"FinanceDept","Value":"FinanceJoshua"}]
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ListIpv4GatewaysResponse>
<NextToken>FFmyTO70tTpLG6I3FmYAXGKPd****</NextToken>
<RequestId>2D265800-E306-529C-8418-84B0A1D201DB</RequestId>
<TotalCount>1</TotalCount>
<Ipv4GatewayModels>
<VpcId>vpc-5tsrxlw7dv074gci4****</VpcId>
<Status>Created</Status>
<Ipv4GatewayId>ipv4gw-5tsnc6s4ogsedtp3k****</Ipv4GatewayId>
<Ipv4GatewayDescription>test</Ipv4GatewayDescription>
<Enabled>true</Enabled>
<GmtCreate>2021-12-02T07:07:35Z</GmtCreate>
<Ipv4GatewayRouteTableId>vtb-5ts0ohchwkp3dydt2****</Ipv4GatewayRouteTableId>
<Ipv4GatewayName>name</Ipv4GatewayName>
<ResourceGroupId>rg-bp67acfmxazb4ph****</ResourceGroupId>
<Tags>
<Key>FinanceDept</Key>
<Value>FinanceJoshua</Value>
</Tags>
</Ipv4GatewayModels>
</ListIpv4GatewaysResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"NextToken" : "FFmyTO70tTpLG6I3FmYAXGKPd****",
"RequestId" : "2D265800-E306-529C-8418-84B0A1D201DB",
"TotalCount" : "1",
"Ipv4GatewayModels" : [ {
"VpcId" : "vpc-5tsrxlw7dv074gci4****",
"Status" : "Created",
"Ipv4GatewayId" : "ipv4gw-5tsnc6s4ogsedtp3k****",
"Ipv4GatewayDescription" : "test",
"Enabled" : true,
"GmtCreate" : "2021-12-02T07:07:35Z",
"Ipv4GatewayRouteTableId" : "vtb-5ts0ohchwkp3dydt2****",
"Ipv4GatewayName" : "name",
"ResourceGroupId" : "rg-bp67acfmxazb4ph****",
"Tags" : [ {
"Key" : "FinanceDept",
"Value" : "FinanceJoshua"
} ]
} ]
}
Error codes
For a list of error codes, visit the API Error Center.