Consulta o histórico de faturamento da sua conta Alibaba Cloud.
Descrição da operação
-
Você pode consultar o histórico de faturamento de até o último mês.
-
Cada conta pode chamar esta operação até 100 vezes por segundo.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
cdn:DescribeCdnUserBillHistory |
none |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| StartTime |
string |
Sim |
O início do intervalo de tempo a ser consultado. Especifique o horário no padrão ISO 8601 no formato yyyy-MM-ddTHH:mm:ssZ. O horário deve estar em UTC. A granularidade mínima de dados é de 5 minutos. |
2018-09-30T16:00:00Z |
| EndTime |
string |
Sim |
O fim do intervalo de tempo a ser consultado. Especifique o horário no padrão ISO 8601 no formato yyyy-MM-ddTHH:mm:ssZ. O horário deve estar em UTC. O horário de término deve ser posterior ao horário de início. |
2018-10-31T16:00:00Z |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| RequestId |
string |
O ID da solicitação. |
ED61C6C3-8241-4187-AAA7-5157AE175CEC |
| BillHistoryData |
object |
||
| BillHistoryDataItem |
array<object> |
O histórico de faturamento retornado. |
|
|
array<object> |
|||
| Dimension |
string |
The dimension. |
flow |
| BillType |
string |
The metering method. |
month_4th_day_bandwidth |
| BillTime |
string |
The beginning of the time range that was queried. |
2018-09-30T16:00:00Z |
| BillingData |
object |
||
| BillingDataItem |
array<object> |
The billable items. |
|
|
object |
|||
| Flow |
number |
The amount of network traffic. Unit: bytes. |
24567 |
| Bandwidth |
number |
The bandwidth. Unit: bit/s. |
4041 |
| Count |
number |
The number of requests. |
203601 |
| CdnRegion |
string |
The billable region. Valid values:
|
AP1 |
| ChargeType |
string |
The billing method. Valid values:
|
DynamicHttp |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "ED61C6C3-8241-4187-AAA7-5157AE175CEC",
"BillHistoryData": {
"BillHistoryDataItem": [
{
"Dimension": "flow",
"BillType": "month_4th_day_bandwidth",
"BillTime": "2018-09-30T16:00:00Z",
"BillingData": {
"BillingDataItem": [
{
"Flow": 24567,
"Bandwidth": 4041,
"Count": 203601,
"CdnRegion": "AP1",
"ChargeType": "DynamicHttp"
}
]
}
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | |
| 400 | InvalidStartTime.Malformed | The specified value of parameter StartTime is malformed. | |
| 400 | InvalidEndTime.Malformed | The specified value of parameter EndTime is malformed. | |
| 400 | InvalidTime.Malformed | Specified StartTime or EndTime is malformed. | The specified start or end time is invalid. |
| 400 | InvalidEndTime.Mismatch | Specified EndTime does not match the specified StartTime. | StartTime must be earlier than EndTime. |
| 400 | InvalidTimeSpan | The time span exceeds the limit. | The time span exceeds the limit. Configure a valid time span as described in API documentation. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.