Queries the attributes of a specified IPv4 gateway.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:GetIpv4GatewayAttribute |
get |
*Ipv4Gateway
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the IPv4 gateway. Call the DescribeRegions operation to query available regions. |
ap-southeast-6 |
| Ipv4GatewayId |
string |
Yes |
The ID of the IPv4 gateway. |
ipv4gw-5tsnc6s4ogsedtp3k**** |
| RegionId |
string |
Yes |
The region ID of the IPv4 gateway. Call the DescribeRegions operation to query available regions. |
ap-southeast-6 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The details of the IPv4 gateway. |
||
| VpcId |
string |
The VPC ID associated with the IPv4 gateway. |
vpc-5tsrxlw7dv074gci4**** |
| Status |
string |
The status of the IPv4 gateway. Valid values:
|
Created |
| Ipv4GatewayId |
string |
The ID of the IPv4 gateway. |
ipv4gw-5tsnc6s4ogsedtp3k**** |
| RequestId |
string |
The request ID. |
7F79A919-6FE9-50C4-967B-45705E1F9C38 |
| Ipv4GatewayDescription |
string |
The description of the IPv4 gateway. |
new |
| Enabled |
boolean |
Whether the IPv4 gateway is activated. Valid values:
|
true |
| Ipv4GatewayRouteTableId |
string |
The ID of the route table associated with the IPv4 gateway. |
vtb-5ts0ohchwkp3dydt2**** |
| Ipv4GatewayName |
string |
The name of the IPv4 gateway. |
name |
| CreateTime |
string |
The time when the IPv4 gateway was created. |
2022-02-24T09:02:36Z |
| ResourceGroupId |
string |
The resource group ID of the IPv4 gateway. |
rg-bp67acfmxazb4ph**** |
| Tags |
array<object> |
The tags. |
|
|
object |
|||
| Key |
string |
The key of tag N added to the resource. |
FinanceDept |
| Value |
string |
The value of tag N added to the resource. |
FinanceJoshua |
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ResourceNotFound.Ipv4Gateway | The specified resource ipv4Gateway is not found. | The IPv4 gateway is not found and cannot be deleted. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.