tencent cloud

APIs

UpdateConfigRule

Baixar
Modo Foco
Tamanho da Fonte
Última atualização: 2026-10-19 15:47:23

1. API Description

Domain name for API request: config.intl.tencentcloudapi.com.

This API is used to edit a rule.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

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: UpdateConfigRule.
Version Yes String Common Params. The value used for this API: 2022-08-02.
Region No String Common Params. This parameter is not required.
TriggerType.N Yes Array of TriggerType

Trigger types, supporting up to two types.

RiskLevel Yes Integer

Risk level. Valid values:
1: high-risk
2: medium-risk
3: low risk

RuleId Yes String

Rule ID.

RuleName No String

rule name

InputParameter.N No Array of InputParameter

Input parameters.

Description No String

Description.

RegionsScope.N No Array of String

Rule evaluation region scope. The rule only applies to resources in specified regions. Supported regions are those returned by config:ListResourceRegions.

TagsScope.N No Array of Tag

Rule evaluation tag scope. The rule only applies to resources bound with specified tags.

ExcludeResourceIdsScope.N No Array of String

The rule is invalid for the specified resource ID, meaning that evaluation will not be performed on this resource.

3. Output Parameters

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.

4. Example

Example1 Edit Rule

Edit Rule

Input Example

POST / HTTP/1.1
Host: config.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: UpdateConfigRule
<Common request parameters>

{
    "RuleId": "cr-bdunf5kx3aywn0ac5bkk",
"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,
    "TriggerType": [
        {
            "MessageType": "ScheduledNotification",
            "MaximumExecutionFrequency": "TwentyFour_Hours"
        }
    ],
    "InputParameter": []
}

Output Example

{
    "Response": {
        "RequestId": "da85d5e2-4432-4f02-9863-0ab07adeff33"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

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.NotAllowOperateControlCenterGovernancePackageRule No operations allowed on compliance package rules in the control center
InvalidParameter Parameter error.
ResourceNotFound.RuleIsNotExist The rule does not exist.

Ajuda e Suporte

Esta página foi útil?

comentários