Consulta informações sobre todos os seus planos de recursos, como a quantidade total, a quantidade restante, a hora de entrada em vigor, a hora de expiração e o status.
Descrição da operação
A frequência de chamadas para um único usuário é limitada a 30 chamadas por segundo.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
dcdn:DescribeDcdnUserResourcePackage |
get |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| Status |
string |
Não |
O status do plano de recursos. O valor padrão é valid. Valores válidos:
Valores válidos:
|
valid |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
O ID da solicitação. |
||
| RequestId |
string |
O ID da solicitação. |
96ED3127-EC7A-57C5-AFA6-A689B24B2530 |
| ResourcePackageInfos |
object |
||
| ResourcePackageInfo |
array<object> |
A lista de planos de recursos. |
|
|
object |
Uma matriz de objetos ResourcePackageInfo. |
||
| EndTime |
string |
The expiration time. The time is in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC and complies with the ISO 8601 standard. |
2022-08-24T16:00:00Z |
| Status |
string |
The status of the resource plan. Valid values:
|
valid |
| DisplayName |
string |
The name of the resource plan. |
Downstream Data Package (Australia Sydney) |
| StartTime |
string |
The effective time. The time is in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC and complies with the ISO 8601 standard. |
2021-08-24T04:09:22Z |
| CommodityCode |
string |
The commodity code of the resource plan. |
dcdnpaybag |
| InstanceId |
string |
The ID of the resource plan. |
CDNFLOWBAG-cn-7pp2bihrb01ii0 |
| TemplateName |
string |
The name of the template. |
FPT_dcdnpaybag_deadlineAcc_1541151058 |
| CurrCapacity |
string |
The remaining amount of the resource plan.
|
10000000 |
| InitCapacity |
string |
The total amount of the resource plan.
|
10000000 |
| Region |
string |
The region. |
CN |
| CurrCapacityShowValue |
string |
The display value of the remaining capacity of the instance. |
49.975789 |
| CurrCapacityShowUnit |
string |
The display unit of the remaining capacity of the instance. |
GB |
| CurrCapacityBaseUnit |
string |
The base unit of the remaining capacity of the instance. |
Byte |
| InitCapacityShowValue |
string |
The display value of the total capacity of the resource plan. |
100.000000 |
| InitCapacityShowUnit |
string |
The display unit of the total capacity of the resource plan. |
GB |
| InitCapacityBaseUnit |
string |
The base unit of the total capacity of the resource plan. |
Byte |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "96ED3127-EC7A-57C5-AFA6-A689B24B2530",
"ResourcePackageInfos": {
"ResourcePackageInfo": [
{
"EndTime": "2022-08-24T16:00:00Z",
"Status": "valid",
"DisplayName": "Downstream Data Package (Australia Sydney)",
"StartTime": "2021-08-24T04:09:22Z",
"CommodityCode": "dcdnpaybag",
"InstanceId": "CDNFLOWBAG-cn-7pp2bihrb01ii0",
"TemplateName": "FPT_dcdnpaybag_deadlineAcc_1541151058",
"CurrCapacity": "10000000",
"InitCapacity": "10000000",
"Region": "CN",
"CurrCapacityShowValue": "49.975789\n",
"CurrCapacityShowUnit": "GB\n",
"CurrCapacityBaseUnit": "Byte",
"InitCapacityShowValue": "100.000000\n",
"InitCapacityShowUnit": "GB\n",
"InitCapacityBaseUnit": "Byte"
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 403 | DcdnServiceNotFound | The DCDN service is not activated. | DCDN is not activated. Activate DCDN and try again. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.