Domain name for API request: config.intl.tencentcloudapi.com.
This API is used to edit a conformance pack.
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: UpdateCompliancePack. |
| Version | Yes | String | Common Params. The value used for this API: 2022-08-02. |
| Region | No | String | Common Params. This parameter is not required. |
| CompliancePackName | Yes | String | Compliance package name. |
| RiskLevel | Yes | Integer | Risk level. |
| CompliancePackId | Yes | String | Compliance package ID. |
| ConfigRules.N | Yes | Array of CompliancePackRule | Compliance package rules. |
| Description | No | String | Description. |
| Parameter Name | Type | Description |
|---|---|---|
| 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: UpdateCompliancePack
<Common request parameters>
{
"CompliancePackId": "cp-xzfz0vu007feuhwi8auv",
"CompliancePackName": "Compliance1",
"RiskLevel": 1,
"Description": "Security compliance",
"ConfigRules": [
{
"Identifier": "cam-user-group-bound",
"RuleName": "A CAM sub-user must be associated with a user group.",
"Description": "If a user in CAM is bound with at least one user group, the rule is complied with."
"RiskLevel": 3,
"ConfigRuleId": "cr-13vkg9c31dixgabkepxe",
"InputParameter": []
}
]
}
{
"Response": {
"RequestId": "da85d5e2-4432-4f02-9863-0ab07adeff33"
}
}
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 |
|---|---|
| FailedOperation.CompliancePackIsNotExist | The compliance package does not exist. |
| FailedOperation.NotAllowOperateControlCenterGovernancePackage | No operations allowed on compliance packages in the control center. |
| InvalidParameter | Parameter error. |
| ResourceNotFound.CompliancePackIsNotExist | The compliance package does not exist. |
| ResourceNotFound.RuleIsNotExist | The rule does not exist. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan