Queries IPv6 addresses in a region.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
vpc:DescribeIpv6Addresses | list |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region in which you want to query IPv6 addresses. You can call the DescribeRegions operation to query the most recent region list. | cn-huhehaote |
Ipv6AddressId | string | No | The ID of the IPv6 address that you want to query. You can enter at most 20 IPv6 address IDs in each API request. Separate IPv6 address IDs with commas (,). | ipv6-2zen5j4axcp5l5qyy**** |
Ipv6Address | string | No | The IPv6 address that you want to query. | 2408:XXXX:153:3921:851c:c435:7b12:1c5f |
Name | string | No | The name of the IPv6 address that you want to query. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter but cannot start with | test |
AssociatedInstanceId | string | No | The ID of the instance that is assigned the IPv6 address. | i-2ze72wuqj4y3jl4f**** |
AssociatedInstanceType | string | No | The type of instance associated with the IPv6 address. Valid values:
| EcsInstance |
NetworkType | string | No | The type of communication supported by the IPv6 address. Valid values:
| Private |
VpcId | string | No | The ID of the VPC to which the IPv6 address belongs. | vpc-bp15zckdt37pq72zv**** |
VSwitchId | string | No | The ID of the vSwitch to which the IPv6 address belongs. | vsw-25navfgbue4g**** |
Ipv6InternetBandwidthId | string | No | The ID of the Internet bandwidth that you purchased for the IPv6 address. | ipv6bw-uf6hcyzu65v98v3du**** |
IncludeReservationData | boolean | No | Specifies whether to return information about pending orders. Valid values:
| false |
ResourceGroupId | string | No | The ID of the resource group to which the IPv6 gateway belongs. | rg-bp67acfmxazb4ph**** |
Tag | array<object> | No | The tag list. | |
object | No | The tag list. | ||
Key | string | No | The key of tag N. You can specify at most 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 aliyun or acs:, and cannot contain http:// or https://. | FinanceDept |
Value | string | No | The value of tag N. The tag value can be up to 128 characters in length. It can be an empty string. It cannot start with aliyun or acs:, and cannot contain http:// or https://. Each tag key corresponds to one tag value. You can specify at most 20 tag values at a time. | yunke |
PageNumber | integer | No | The number of the page to return. Default value: 1. | 1 |
PageSize | integer | No | The number of entries to return per page. Maximum value: 50. Default value: 10. | 10 |
ServiceManaged | boolean | No | Indicates whether the instance is managed. Valid values:
If you do not specify this parameter, all instances are queried. | false |
Response parameters
Examples
Sample success responses
JSON
format
{
"PageSize": 10,
"RequestId": "AA4486A8-B6AE-469E-AB09-820EF8ECFA2B",
"PageNumber": 1,
"TotalCount": 2,
"Ipv6Addresses": {
"Ipv6Address": [
{
"VpcId": "vpc-bp15zckdt37pq72zv****",
"Status": "Available",
"Ipv6AddressId": "ipv6-2zen5j4axcp5l5qyy****",
"AllocationTime": "2020-12-20T14:56:09Z",
"Ipv6AddressName": "test",
"Ipv6AddressDescription": "test",
"AssociatedInstanceType": "EcsInstance",
"AssociatedInstanceId": "i-2ze72wuqj4y3jl4f****",
"NetworkType": "Private",
"Ipv6Address": "2408:XXXX:153:3921:851c:c435:7b12:1c5f",
"Ipv6Isp": "BGP",
"VSwitchId": "vsw-25navfgbue4g****",
"Ipv6GatewayId": "ipv6gw-2zewg0l66s73b4k2q****",
"RealBandwidth": 5,
"Ipv6InternetBandwidth": {
"InternetChargeType": "PayByTraffic",
"BusinessStatus": "Normal",
"Bandwidth": 5,
"Ipv6InternetBandwidthId": "ipv6bw-hp3b35oq1fj50kbv****",
"InstanceChargeType": "PostPaid",
"HasReservationData": false,
"ReservationInternetChargeType": "PayByTraffic",
"ReservationOrderType": "RENEW",
"ReservationActiveTime": "2021-05-23T16:00:00Z",
"ReservationBandwidth": 12
},
"ResourceGroupId": "rg-bp67acfmxazb4ph****",
"Tags": {
"Tag": [
{
"Key": "FinanceDept",
"Value": "yunke"
}
]
},
"ServiceManaged": 1
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | IllegalParam.Ipv6Address | The param of %s is illegal. | The IPv6 address is invalid. |
400 | IllegalParam.NetworkType | The param of %s is illegal. | Invalid NetworkType value. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-08-08 | The Error code has changed | View Change Details |
2024-06-28 | The Error code has changed. The request parameters of the API has changed. The response structure of the API has changed | View Change Details |
2024-03-14 | The Error code has changed. The request parameters of the API has changed. The response structure of the API has changed | View Change Details |
2023-05-29 | The Error code has changed. The request parameters of the API has changed. The response structure of the API has changed | View Change Details |