本繁體中文版使用機器翻譯,譯文僅供參考,若與英文版本牴觸,應以英文版本為準。
使用 Digital Advisor REST API 取得客戶使用量詳細資料
此 API 會擷取與指定客戶 ID 相關的所有訂閱目前使用量詳細資料。
-
申請: *
方法 |
取得 |
* 端點 * |
|
參數 |
|
* 標題 * |
|
-
回應: * API 將回應 JSON 物件、其中包含所有訂閱的清單、以及指定客戶目前的服務使用量指標。以下是回應範例:
{
"result": {
"returned_records": "string",
"records": [
{
"subscription": {
"account_name": "string",
"number": "string",
"start_date": "string",
"end_date": "string"
},
"service_levels": [
{
"name": "string",
"committed_tib": "string",
"consumed_tib": "string",
"consumed_timestamp_utc": "string",
"burst_tib": "string",
"accrued_burst_tib": "string"
}
]
}
],
"request_id": "string",
"response_time": "string"
}
}
-
狀態代碼 * : 200 –成功申請
-
目前範例 * :
curl -X 'GET' \ 'https://api.activeiq.netapp.com/v1/keystone/customer/consumption-details?type=customer&id=<customerID>' \ -H 'accept: application/json' \ -H 'authorizationToken: <access-key>'
取得客戶的歷史消費詳細資料
此 API 會根據指定的時間範圍、擷取與指定客戶 ID 相關的所有訂閱的歷史使用量詳細資料。
-
申請: *
方法 |
取得 |
* 端點 * |
|
參數 |
|
* 標題 * |
|
-
回應: *
API 會以 JSON 物件回應、其中包含所有訂閱的清單、以及所選時間範圍內指定客戶的歷史服務使用量指標。以下是回應範例:
{
"results": {
"returned_records": 0,
"records": [
{
"subscription": {
"account_name": "string",
"number": "string",
"start_date": "2023-08-24T14:15:22Z",
"end_date": "2023-08-24T14:15:22Z"
},
"service_levels": [
{
"name": "string",
"historical_consumption": [
{
"committed_tib": 0,
"consumed_tib": 0,
"timestamp_utc": "2023-08-24T14:15:22Z",
"burst_tib": 0,
"accrued_burst_tib": 0,
"is_invoiced": true
}
]
}
]
}
],
"request_parameters": {
"from_date_utc": "2023-08-24",
"to_date_utc": "2023-08-24",
"customer_id": "string"
},
"request_id": "string",
"response_time": "string",
"customer": {
"name": "string",
"id": "string"
}
}
}
-
狀態代碼 * : 200 –成功申請
-
目前範例 * :
curl -X 'GET' \ 'https://api.activeiq-stg.netapp.com/v1/keystone/customer/historical-consumption-details? type=customer&id=<customerID>&from_date_utc=2023-08-24T14%3A15%3A22Z&t _date_utc=2023-08-24T14%3A15%3A22Z' \ -H 'accept: application/json' \ -H 'authorizationToken: <access-key>'