Invoke the DescribeIpv6Gateways API to query IPv6 gateways created in a specific region.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:DescribeIpv6Gateways |
get |
Ipv6Gateway
Ipv6Gateway
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region in which the IPv6 gateway is deployed. You can call the DescribeRegions operation to query the region ID. |
cn-huhehaote |
| Ipv6GatewayId |
string |
No |
The ID of the IPv6 gateway. |
ipv6gw-hp3rwmtmfhgis**** |
| VpcId |
string |
No |
The ID of the virtual private cloud (VPC) to which the IPv6 gateway belongs. |
vpc-123sedrfswd23**** |
| Name |
string |
No |
The name of the IPv6 gateway. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. The name must start with a letter and cannot start with |
ipv6GW |
| PageNumber |
integer |
No |
The page number. |
1 |
| PageSize |
integer |
No |
The number of entries per page. |
10 |
| RegionId |
string |
Yes |
The ID of the region in which the IPv6 gateway is deployed. You can call the DescribeRegions operation to query the region ID. |
cn-huhehaote |
| ResourceGroupId |
string |
No |
The ID of the resource group to which the IPv6 gateway belongs. |
rg-bp67acfmxazb4ph**** |
| Tags |
array<object> |
No |
The information about the tags. |
|
|
object |
No |
The list of tags. |
||
| Key |
string |
No |
The tag keys of the resources. You can specify up to 20 tag keys. The tag key cannot be an empty string. The tag key can be up to 128 characters in length. It cannot start with |
FinanceDept |
| Value |
string |
No |
The tag values of the resources. You can specify up to 20 tag values. The tag value can be an empty string. The tag value can be up to 128 characters in length, and cannot contain |
FinanceJoshua |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned message. |
||
| PageSize |
integer |
The number of entries per page. |
10 |
| RequestId |
string |
The request ID. |
E3A06196-3E7C-490D-8F39-CB4B5A0CE8AD |
| PageNumber |
integer |
The page number. |
1 |
| TotalCount |
integer |
The total number of entries returned. |
2 |
| Ipv6Gateways |
object |
||
| Ipv6Gateway |
array<object> |
The information about the IPv6 gateway. |
|
|
array<object> |
Detailed information about an IPv6 gateway. |
||
| CreationTime |
string |
The time when the IPv6 gateway was created. |
2020-12-20T14:51:23Z |
| Status |
string |
The status of the IPv6 gateway. Valid values:
|
Available |
| VpcId |
string |
The ID of the VPC to which the IPv6 gateway belongs. |
vpc-123sedrfswd23**** |
| Description |
string |
The description of the IPv6 gateway. |
descriptionforIPv6GW |
| Ipv6GatewayId |
string |
The ID of the IPv6 gateway. |
ipv6gw-hp3rwmtmfhgisipv6gw-hp3rwmtmfhgis**** |
| ExpiredTime |
string |
The time when the IPv6 gateway expires. |
2021-12-20T14:51:23Z |
| BusinessStatus |
string |
The status of the IPv6 gateway. Valid values:
|
Normal |
| Name |
string |
The name of the IPv6 gateway. |
ipv6GW |
| InstanceChargeType |
string |
The billing method of the IPv6 gateway. Only PostPaid may be returned, which indicates that the IPv6 gateway uses the pay-as-you-go billing method. |
PostPaid |
| RegionId |
string |
The ID of the region in which the IPv6 gateway is deployed. |
cn-huhehaote |
| ResourceGroupId |
string |
The resource group ID. |
rg-bp67acfmxazb4ph**** |
| Tags |
object |
||
| Tag |
array<object> |
The information about the tags. |
|
|
object |
The list of tags. |
||
| Key |
string |
The tag key. |
FinanceDept |
| Value |
string |
The tag value. |
FinanceJoshua |
| OwnerId |
integer |
The Alibaba Cloud account ID to which the IPv6 gateway belongs. Important This value is of the Long type and may be subject to precision loss in certain programming languages. Use it with caution. |
2546073170691**** |
Examples
Success response
JSON format
{
"PageSize": 10,
"RequestId": "E3A06196-3E7C-490D-8F39-CB4B5A0CE8AD",
"PageNumber": 1,
"TotalCount": 2,
"Ipv6Gateways": {
"Ipv6Gateway": [
{
"CreationTime": "2020-12-20T14:51:23Z",
"Status": "Available",
"VpcId": "vpc-123sedrfswd23****",
"Description": "descriptionforIPv6GW",
"Ipv6GatewayId": "ipv6gw-hp3rwmtmfhgisipv6gw-hp3rwmtmfhgis****",
"ExpiredTime": "2021-12-20T14:51:23Z",
"BusinessStatus": "Normal",
"Name": "ipv6GW",
"InstanceChargeType": "PostPaid",
"RegionId": "cn-huhehaote",
"ResourceGroupId": "rg-bp67acfmxazb4ph****",
"Tags": {
"Tag": [
{
"Key": "FinanceDept",
"Value": "FinanceJoshua"
}
]
},
"OwnerId": 0
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | Forbidden | User not authorized to operate on the specified resource. | You do not have the permissions to manage the specified resource. Apply for the permissions and try again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.