Digital Advisor REST API를 사용하여 고객 소비 세부 정보를 확인하십시오
이 API는 지정된 CustomerID와 연결된 모든 구독에 대한 현재 소비 정보를 검색합니다.
-
요청: *
* 방법 * |
가져오기 |
* 끝점 * |
|
* 매개변수 * |
|
* 머리글 * |
|
-
응답: * 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는 지정된 시간 범위에 따라 지정된 CustomerID와 연결된 모든 구독에 대한 기간별 소비 정보를 검색합니다.
-
요청: *
* 방법 * |
가져오기 |
* 끝점 * |
|
* 매개변수 * |
|
* 머리글 * |
|
-
응답: *
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>'