Querying the Security Check Report Information of a Cluster
Function
This API is used to query the security check report information of a cluster.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.
URI
GET /v5/{project_id}/security-check/containers/cluster-reports/{report_id}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Definition Project ID, which is used to specify the project that an asset belongs to. After the project ID is configured, you can query assets in the project using the project ID. For details about how to obtain it, see Obtaining a Project ID. Constraints N/A Range The value can contain 1 to 256 characters. Default Value N/A |
| report_id | Yes | String | Definition ID of the cluster security check report. Constraints N/A Range Length: 1 to 64 characters Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| enterprise_project_id | No | String | Definition Enterprise project ID, which is used to filter assets in different enterprise projects. For details, see Obtaining an Enterprise Project ID. To query assets in all enterprise projects, set this parameter to all_granted_eps. Constraints You need to set this parameter only after the enterprise project function is enabled. Range The value can contain 1 to 256 characters. Default Value 0: default enterprise project. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| x-language | No | String | language |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| scan_time | Long | Definition Evaluated on Range N/A |
| cluster_id | String | Definition Cluster ID. Range N/A |
| cluster_name | String | Definition Cluster Name Range N/A |
| cluster_category | String | Definition Cluster type. Range |
| local_image_vul_num | Integer | Definition Number of local image vulnerabilities Range N/A |
| risk_config_num | Integer | Definition Number of baseline risks Range N/A |
| privileged_container_num | Integer | Definition Number of privileged containers Range N/A |
| pod_num | Integer | Definition Number of pods Range N/A |
| host_num | Integer | Definition Number of nodes. Range N/A |
| container_num | Integer | Definition Containers Range N/A |
| port_num | Integer | Definition Port Quantity Range N/A |
| process_num | Integer | Definition Number of processes. Range N/A |
| app_num | Integer | Definition Pieces of software. Range N/A |
| local_image_vul_list | Array of ClusterSecurityCheckLocalImageVulInfo objects | Definition Local image vulnerabilities Range N/A |
| baseline_detection_list | Array of ClusterSecurityCheckBaseLineDetectionInfo objects | Definition Baseline check item list. Range N/A |
| privileged_container_list | Array of ClusterSecurityCheckPrivilegedContainerInfo objects | Definition Privileged container list. Range N/A |
| port_list | Array of ClusterSecurityCheckPortInfo objects | Definition Port list. Range N/A |
| app_list | Array of ClusterSecurityCheckAppInfo objects | Definition Software list. Range N/A |
| process_list | Array of ClusterSecurityCheckProcessInfo objects | Definition Processes Range N/A |
| Parameter | Type | Description |
|---|---|---|
| local_image_name | String | Definition Local image name Range N/A |
| local_image_version | String | Definition Local image version Range N/A |
| local_image_size | Long | Definition Local image size Range N/A |
| vul_name | String | Definition Vulnerability name. Range N/A |
| app_name | String | Definition Software name Range N/A |
| app_version | String | Definition Software version Range N/A |
| severity_level | String | Definition Vulnerability risk level Range |
| solution | String | Definition Solution to fix the vulnerability. Range N/A |
| vul_description | String | Definition Vulnerability description. Range N/A |
| Parameter | Type | Description |
|---|---|---|
| severity | String | Definition Baseline risk level. Range |
| check_name | String | Definition Baseline Name Range N/A |
| check_type | String | Definition Baseline Type Range N/A |
| standard | String | Definition Standard type. Range |
| check_rule_num | Integer | Definition Check Items Range N/A |
| failed_rule_num | Integer | Definition Number of risk items. Range N/A |
| check_type_desc | String | Definition Baseline description Range N/A |
| baseline_item_list | Array of ClusterSecurityCheckBaselineItemInfo objects | Definition Baseline check item list. Range N/A |
| Parameter | Type | Description |
|---|---|---|
| severity | String | Definition Specifies the risk level of a check item. Range |
| check_item | String | Definition Check Item Range N/A |
| check_description | String | Definition Check Item Description Range N/A |
| check_remediation | String | Definition Suggestion Range N/A |
| Parameter | Type | Description |
|---|---|---|
| container_name | String | Definition Container name Range N/A |
| container_id | String | Definition Container ID Range N/A |
| container_status | String | Definition Container status. Range |
| pod_name | String | Definition Pod name. Range N/A |
| host_name | String | Definition Node name. Range N/A |
| private_ip | String | Definition Private IP address. Range N/A |
| public_ip | String | Definition EIP. Range N/A |
| event_abstract | String | Definition Event summary Range N/A |
| Parameter | Type | Description |
|---|---|---|
| port | Integer | Definition Port number. Range N/A |
| container_id | String | Definition Container ID Range N/A |
| container_name | String | Definition Container name Range N/A |
| pod_name | String | Definition Pod name Range N/A |
| host_name | String | Definition Node name. Range N/A |
| private_ip | String | Definition Private IP address. Range N/A |
| public_ip | String | Definition EIP. Range N/A |
| path | String | Definition Program file Range N/A |
| pid | Integer | Definition Process ID Range N/A |
| laddr | String | Definition Listening IP address. Range N/A |
| Parameter | Type | Description |
|---|---|---|
| app_name | String | Definition Software name Range N/A |
| app_version | String | Definition Software version Range N/A |
| container_id | String | Definition Container ID Range N/A |
| container_name | String | Definition Container name. Range N/A |
| host_name | String | Definition Node name. Range N/A |
| private_ip | String | Definition Private IP address. Range N/A |
| public_ip | String | Definition EIP. Range N/A |
| update_time | Long | Definition Update time. Range N/A |
| recent_scan_time | Long | Definition Last scan time. Range N/A |
| Parameter | Type | Description |
|---|---|---|
| container_id | String | Definition Container ID Range N/A |
| container_name | String | Definition Container name Range N/A |
| host_name | String | Definition Node name. Range N/A |
| private_ip | String | Definition Private IP address. Range N/A |
| public_ip | String | Definition EIP. Range N/A |
| start_time | Long | Definition Start time. Range N/A |
| pid | Integer | Definition Process ID Range N/A |
| permission | String | Definition File permissions Range N/A |
| user_name | String | Definition User who starts the execution. Range N/A |
| launch_params | String | Definition Startup parameter. Range N/A |
| hash | String | Definition File hashes. Range N/A |
Example Requests
None
Example Responses
Status code: 200
Request succeeded.
{
"scan_time" : 1745051197000,
"cluster_id" : "27716-6331ef-02c62-11958-f55d39",
"cluster_name" : "test-cluster",
"cluster_category" : "CCE",
"local_image_vul_num" : 1,
"risk_config_num" : 1,
"privileged_container_num" : 1,
"pod_num" : 1,
"host_num" : 1,
"container_num" : 1,
"port_num" : 1,
"process_num" : 1,
"app_num" : 1,
"local_image_vul_list" : [ {
"local_image_name" : "test-image",
"local_image_version" : "1.0.0",
"local_image_size" : 10,
"vul_name" : "test-vul",
"app_name" : "test-app",
"app_version" : "1.0.0",
"severity_level" : "Low",
"solution" : "solution",
"vul_description" : "description"
} ],
"baseline_detection_list" : [ ],
"privileged_container_list" : [ ],
"port_list" : [ ],
"app_list" : [ ],
"process_list" : [ ]
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Request succeeded. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot