Get inspection item

Prev Next

Available in VPC

Get an inspection item provided by the Cloud Advisor service.

Request

This section describes the request format. The method and URI are as follows:

Method URI
GET /api/v1/categories/{categoryCode}/checkitems

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
  • SECURITY | COST
    • SECURITY: security category
    • COST: expense and high availability category

Request example

The request example is as follows:

curl --location --request GET 'https://cloud-advisor.apigw.ntruss.com/api/v1/categories/{categoryCode}/checkitems' \
--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
  • SUCCESS | FAIL
    • SUCCESS: succeeded
    • FAIL: failed
contents Array - Inspection item list
error Object - Error code and message
  • Displayed if result is FAIL
error.errorCode String - Errors
error.message String - Error message

Checklist

The following describes the inspection items.

Field Type Required Description
categoryCode String - Inspection category code
itemCode String - Inspection item code
itemName String - Inspection item name
itemDescription String - Inspection item summary information
itemDescriptionDetail String - Inspection item details
recommendation String - Inspection item recommended action
checkLogicDescription String - Inspection result notification level description
  • GREEN | YELLOW | RED
    • GREEN: status of compliance with recommended settings (normal)
    • YELLOW: status requiring action (warning)
    • RED: status requiring immediate action (dangerous)
checkResultType String - Detailed inspection result provision type by instance
  • TABLE | SAMPLE
    • TABLE: provided
    • SAMPLE: not provided (only summary of inspection results provided)
tableHeaderInfo Array - Detailed inspection result field by instance
  • tableHeaderInfo | []
    • tableHeaderInfo: if checkResultType is TABLE
    • []: if checkResultType is SAMPLE

tableHeaderInfo

The following describes tableHeaderInfo.

Field Type Required Description
key String - Unique key in table column in inspection results
label String - Name of table column in inspection results
type String - Result data type in table column in inspection results
  • Status | String | Timestamp | Number | Integer | Long | Float

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": [
        {
            "categoryCode": "SECURITY",
            "itemCode": "SUB_ACCOUNT_ACCESSKEY",
            "itemName": "Sub Account access key management",
            "itemDescription": "Check the lifetime of the access key added to the sub account.",
            "itemDescriptionDetail": "Check the access key usage date of the sub account. To enhance security, we recommend replacing the access key periodically.",
            "recommendation": "Replace the access key used by the sub account periodically so that it does not exceed 90 days.",
            "checkLogicDescription": "{{RED}}: There is an access key used by the sub account that has exceeded 730 days of use.<br>\n{{YELLOW}}: There is an access key used by the sub account that has exceeded 90 days of use.<br>\n{{GREEN}}: All access keys used by the sub account have been used within the last 90 days.<br>\n* Inspection is only performed on the access keys currently in use.",
            "checkResultType": "TABLE",
            "tableHeaderInfo": [
                {
                    "key": "status",
                    "label": "Condition",
                    "type": "Status"
                },
                {
                    "key": "loginId",
                    "label": "Login ID",
                    "type": "String"
                },
                {
                    "key": "subAccountName",
                    "label": "Sub account name",
                    "type": "String"
                },
                {
                    "key": "accessKey",
                    "label": "AccessKey",
                    "type": "String"
                },
                {
                    "key": "accessKeyUseDays",
                    "label": "AccessKey usage date",
                    "type": "Integer"
                },
                {
                    "key": "accessKeyCreateDate",
                    "label": "AccessKey creation date",
                    "type": "Timestamp"
                }
            ]
        },
        ...
}