Available in VPC
Get detailed inspection results for each instance for an inspection item. You can check whether detailed inspection results for each instance of the inspection item are provided in Get inspection item.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | /api/v1/categories/{categoryCode}/checkitems/{itemCode}/result-detail |
Request headers
For information about the headers common to all Cloud Advisor APIs, see Cloud Advisor request headers.
Request path parameters
You can use the following path parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
categoryCode |
String | Required | Inspection category code
|
itemCode |
String | Required | Inspection item code
|
A 404 error will occur if you request an inspection item (itemCode
) that does not belong to an inspection category (categoryCode
).
Request query parameters
You can use the following query parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
display |
String | Optional | Query target instance
|
page |
Integer | Required | Page number
|
size |
Integer | Required | Number of items per page
|
Included instances or excluded instances can be set using the following APIs.
- Set included instances: Set detailed inclusion for inspection results
- Set excluded instances: Set detailed exclusion for inspection results
Request example
The request example is as follows:
curl --location --request GET 'https://cloud-advisor.apigw.ntruss.com/api/v1/categories/{categoryCode}/checkitems/{itemCode}/result-detail?display=all&page=1&size=5' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
result |
String | - | API processing result
|
contents |
Object | - | Checklist |
contents.itemCode |
String | - | Inspection item code |
meta |
Object | - | Metadata for paging processing |
meta.totalPage |
Integer | - | Total number of pages |
meta.currentPage |
Integer | - | Current page number |
meta.size |
Integer | - | Number of items per page |
data |
Array | - | Detailed inspection results for each instance for an inspection item: ResultTableRow |
ResultTableRow
The following describes ResultTableRow
.
Field | Type | Required | Description |
---|---|---|---|
memberNo |
Integer | - | Account member ID |
instanceNo |
Integer | - | Instance number |
itemSid |
Integer | - | Inspection item ID
|
instanceKey |
Integer | - | Unique instance key |
status |
String | - | Inspection result notification level
|
The table above describes the fields commonly provided for each instance. For detailed field information provided for each instance, see tableHeaderInfo
in the Get inspection result details response result.
Response status codes
For response status codes common to all Cloud Advisor APIs, see Cloud Advisor response status codes.
Response example
The response example is as follows:
{
"result": "SUCCESS",
"contents": {
"itemCode": "SUB_ACCOUNT_USE",
"meta": {
"totalPage": 1,
"currentPage": 1,
"size": 5
},
"data": [
{
"memberNo": 2*****2,
"instanceNo": 0,
"itemSid": 2,
"instanceKey": "2*****2",
"status": "GREEN"
}
]
}
}