Domain name for API request: config.intl.tencentcloudapi.com.
This API is used to add rule remediation settings.
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: CreateRemediation. |
| Version | Yes | String | Common Params. The value used for this API: 2022-08-02. |
| Region | No | String | Common Params. This parameter is not required. |
| RuleId | Yes | String | Rule ID. |
| RemediationType | Yes | String | Remediation type. Valid values: SCF (serverless cloud function, custom remediation). |
| RemediationTemplateId | Yes | String | Remediation template ID. |
| InvokeType | Yes | String | Remediation execution mode. |
| SourceType | No | String | Template source for executing remediation. Valid values: |
| Parameter Name | Type | Description |
|---|---|---|
| RemediationId | String | Remediation setting ID. |
| 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: CreateRemediation
<Common request parameters>
{
"RuleId": "cr-oPTxveTx0NbmcNmDNoQG",
"RemediationType": "SCF",
"RemediationTemplateId": "qcs::scf:ap-guangzhou:100000005287:namespace/test/functions/aaa",
"InvokeType": "MANUAL_EXECUTION",
"SourceType": "CUSTOM"
}
{
"Response": {
"RemediationId": "crr-lKj43O4nbSD78XYlvGS9",
"RequestId": "4c9384a0-e80c-4af0-a84c-8682527c86a0"
}
}
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. |
| LimitExceeded.RemediationMaxNum | Created repair settings exceed the upper limit. |
フィードバック