Digital Advisor REST API を使用して顧客の消費詳細を取得します
この API は、指定された顧客 ID に関連付けられているすべてのサブスクリプションの現在の消費量の詳細を取得します。
リクエスト:
方法 |
GET |
終点 |
|
パラメータ |
|
ヘッダー |
|
応答: 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の例:
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 に関連付けられているすべてのサブスクリプションの消費履歴の詳細を取得します。
リクエスト:
方法 |
GET |
終点 |
|
パラメータ |
|
ヘッダー |
|
応答:
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の例:
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>'