Domain name for API request: csip.intl.tencentcloudapi.com.
Get the detection item list of built-in baseline classifications (parent category -> subcategory -> built-in detection item ID list) for selecting baseline detection items on the policy editing page.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: DescribeBaselineMainTaskItemList. |
| Version | Yes | String | Common Params. The value used for this API: 2022-11-21. |
| Region | No | String | Common Params. This parameter is not required. |
| MainTaskID | Yes | Integer | Baseline scan main task ID. |
| MemberId.N | No | Array of String | Group account member id |
| Limit | No | Integer | Number of records to be returned per page for paging query. Default value: 10. Maximum value: 100. |
| Offset | No | Integer | Paginated query offset. Default value: 0. |
| Parameter Name | Type | Description |
|---|---|---|
| ItemList | Array of BaselineItem | Baseline check item list. |
| TotalCount | Integer | Total number of eligible detection items. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: csip.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeBaselineMainTaskItemList
<Common request parameters>
{
"MainTaskID": 1225,
"MemberId": [
"mem-tencent-6*************29"
],
"Limit": 0,
"Offset": 10
}
{
"Response": {
"ItemList": [
{
"AffectedVersionList": [
"All Kubernetes versions"
],
"Category": {
"CheckAssetType": "CLUSTER",
"Description": "CIS Benchmarks from the Center for Internet Security (CIS) are a set of globally recognized consensus-driven best practices.",
"ID": 100000005,
"Name": "Policy"
},
"CheckObject": [
"POD"
],
"CustomItemID": 0,
"CustomValueList": [],
"DefaultValueList": [],
"Description": "hostPort directly binds a container port to a host port, bypassing network policies and isolation. Each host port can only be used by one Pod."
"FixSuggestion": "Delete the hostPort field and only retain containerPort. External exposure is implemented through a Service: ports: - containerPort: 80 # Leave hostPort unset --- apiVersion: v1 kind: Service spec: ports: - port: 80 targetPort: 80",
"ID": 10140,
"IsCustomConf": false,
"Name": "Access control for containers that minimize HostPorts usage"
"ReferenceLink": "https://kubernetes.io/docs/concepts/security/pod-security-standards/",
"RiskLevel": "MEDIUM",
"RuleID": 139,
"SupportCustomValue": false,
"SupportFix": false,
"SystemCategory": {
"CheckAssetType": "CLUSTER",
"Description": "CIS Benchmarks from the Center for Internet Security (CIS) are a set of globally recognized consensus-driven best practices.",
"ID": 100000000,
"Name": "CIS Kubernetes baseline"
},
"WebEditParam": ""
}
],
"TotalCount": 149,
"RequestId": "30cfb28c-c73b-4ca3-aa06-7ea57bb79b8a"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
There is no error code related to the API business logic. For other error codes, please see Common Error Codes.
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan