Skip to main content
2.0
本製品の最新リリースがご利用いただけます。
日本語は機械翻訳による参考訳です。内容に矛盾や不一致があった場合には、英語の内容が優先されます。

Digital Advisor REST API を使用して顧客の消費詳細を取得します

この API は、指定された顧客 ID に関連付けられているすべてのサブスクリプションの現在の消費量の詳細を取得します。

リクエスト:

方法

GET

終点

https://api.activeiq.netapp.com/v1/keystone/customer/consumption-details

パラメータ

  • タイプ: 「顧客」

  • id: <顧客ID>

ヘッダー

  • 受け入れる: application/json

  • 認証トークン: <アクセスキー>

応答: 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

終点

https://api.activeiq.netapp.com/v1/keystone/customer/historical-consumption-details

パラメータ

  • タイプ: 「顧客」

  • id: <顧客ID>

  • from_date_utc: <開始日(RFC3339形式)>

  • to_date_utc: <終了日(RFC3339形式)>

ヘッダー

  • 受け入れる: application/json

  • 認証トークン: <アクセスキー>

応答:

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>'