Domain name for API request: config.intl.tencentcloudapi.com.
This API is used to query compliance package details.
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: DescribeCompliancePack. |
| Version | Yes | String | Common Params. The value used for this API: 2022-08-02. |
| Region | No | String | Common Params. This parameter is not required. |
| CompliancePackId | No | String | Compliance package ID. |
| Parameter Name | Type | Description |
|---|---|---|
| CompliancePackName | String | Compliance package name. |
| Description | String | Description |
| CreateTime | String | Creation time. |
| RiskLevel | Integer | Risk level |
| ConfigRules | Array of ComplianceConfigRule | Compliance package rules. |
| CompliancePackId | String | Compliance package ID. |
| Status | String | Compliance package status |
| 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: config.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeCompliancePack
<Common request parameters>
{
"CompliancePackId": "cp-1g118yvw28p142zr17kz"
}
{
"Response": {
"RequestId": "f9c86059-d081-4034-b566-05535406c231",
"CompliancePackId": "cp-xzfz0vu007feuhwi8auv",
"CompliancePackName": "Compliance1",
"ConfigRules": [
{
"ComplianceResult": "NON_COMPLIANT",
"ConfigRuleId": "cr-13vkg9c31dixgabkepxe",
"CreateByType": "user",
"Description": "If a user in CAM is bound with at least one user group, the rule is complied with."
"Identifier": "cam-user-group-bound",
"InputParameter": [],
"Labels": [
user
User group
],
"ManageInputParameter": [],
"RiskLevel": 3,
"RuleName": "A CAM sub-user must be associated with a user group."
"SourceCondition": [
{
"DesiredValue": "1",
"EmptyAs": "COMPLIANT",
"Operator": "GreaterOrEquals",
"Required": false,
"SelectPath": "$User.GroupBindNum"
}
],
"Status": "ACTIVE"
}
],
"CreateTime": "2022-11-16 14:11:48",
"Description": "Security compliance",
"RiskLevel": 1,
"Status": "ACTIVE"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| InvalidParameter | Parameter error. |
피드백