Consulta os pacotes de largura de banda.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
vpc:DescribeBandwidthPackages |
get |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| RegionId |
string |
Sim |
O ID da região onde o pacote de largura de banda está localizado. |
|
| BandwidthPackageId |
string |
Não |
O ID do pacote de largura de banda. |
|
| NatGatewayId |
string |
Não |
O ID do NAT Gateway. Se especificado, a operação retorna apenas os pacotes de largura de banda associados ao NAT Gateway especificado. |
|
| PageNumber |
integer |
Não |
O número da página. Valor inicial: 1. Valor padrão: 1. |
|
| PageSize |
integer |
Não |
O número de entradas a serem retornadas em cada página. Valores válidos: 1 a 100. Valor padrão: 20. |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os dados da resposta. |
||
| PageSize |
integer |
O número de entradas por página. |
|
| RequestId |
string |
O ID da solicitação. |
|
| PageNumber |
integer |
O número da página. |
|
| TotalCount |
integer |
O número total de entradas correspondentes. |
|
| BandwidthPackages |
object |
Detalhes dos pacotes de largura de banda consultados. |
|
| BandwidthPackage |
array<object> |
Uma matriz de pacotes de largura de banda. |
|
|
array<object> |
|||
| Status |
string |
The status of the bandwidth package. Valid values: |
|
| CreationTime |
string |
The time when the bandwidth package was created. The time is in UTC and is formatted as |
|
| IpCount |
string |
The number of public IP addresses in the bandwidth package. |
|
| RegionId |
string |
The ID of the region to which the bandwidth package belongs. |
|
| InstanceChargeType |
string |
The billing method for the bandwidth package. Valid values: |
|
| BandwidthPackageId |
string |
The ID of the bandwidth package. |
|
| Description |
string |
The description of the bandwidth package. |
|
| Bandwidth |
string |
The bandwidth of the bandwidth package, in Mbit/s. |
|
| NatGatewayId |
string |
The ID of the NAT Gateway that uses the bandwidth package. |
|
| ZoneId |
string |
The ID of the zone to which the bandwidth package belongs. |
|
| InternetChargeType |
string |
The billing method for network usage. Valid values: |
|
| BusinessStatus |
string |
The service status of the bandwidth package. Valid values: |
|
| Name |
string |
The name of the bandwidth package. |
|
| ISP |
string |
The line type. Valid values: |
|
| PublicIpAddresses |
object |
The public IP addresses in the bandwidth package. |
|
| PublicIpAddresse |
array<object> |
An array of public IP addresses. |
|
|
object |
|||
| IpAddress |
string |
The public IP address. |
|
| AllocationId |
string |
The ID of the EIP associated with the public IP address. |
Exemplos
Resposta de sucesso
JSON formato
{
"PageSize": 0,
"RequestId": "",
"PageNumber": 0,
"TotalCount": 0,
"BandwidthPackages": {
"BandwidthPackage": [
{
"Status": "",
"CreationTime": "",
"IpCount": "",
"RegionId": "",
"InstanceChargeType": "",
"BandwidthPackageId": "",
"Description": "",
"Bandwidth": "",
"NatGatewayId": "",
"ZoneId": "",
"InternetChargeType": "",
"BusinessStatus": "",
"Name": "",
"ISP": "",
"PublicIpAddresses": {
"PublicIpAddresse": [
{
"IpAddress": "",
"AllocationId": ""
}
]
}
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidAliuid | User Id is not valid. | |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | The specified RegionId parameter does not exist. Check whether the service is available in the specified region. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.