Operate the Postpaid Module Switch
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| yundun-sas:ModifyPostPayModuleSwitch | update | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| PostPayInstanceId | string | No | Pay-as-you-go instance ID, which must be filled in. Note
Call the DescribeVersionConfig interface to obtain this parameter.
| postpay-sas-** |
| PostPayModuleSwitch | string | No | Status of the pay-as-you-go module switch, in JsonString format. Values:
Note
The values of modules not passed will not change.
Notice The meaning is the same as the PostPayModuleSwitchObj field. When both exist, the value of PostPayModuleSwitch takes precedence. | {"VUL":1,"CSPM":0} |
| PostPaidHostAutoBind | integer | No | Automatic binding switch for new assets in host and container protection. Values:
| 1 |
| PostPaidHostAutoBindVersion | integer | No | Version for automatic binding of new assets in host and container protection. Values:
| 3 |
| PostPayModuleSwitchObj | object | No | Pay-as-you-go module switch. Notice The meaning is the same as the PostPayModuleSwitch field. When both exist, the value of PostPayModuleSwitch takes precedence. | |
| Vul | integer | No | Vulnerability Repair Module. Values:
| 1 |
| Cspm | integer | No | Cloud Security Configuration Check Module. Values:
| 1 |
| Agentless | integer | No | Agentless Detection Module. Values:
| 1 |
| Serverless | integer | No | Serverless Security Module. Values:
| 1 |
| Ctdr | integer | No | Threat Analysis and Response Module. Values:
| 1 |
| CtdrStorage | integer | No | Log Management Module. Values:
| 1 |
| Sdk | integer | No | Malicious File Detection SDK Module. Values:
| 1 |
| Rasp | integer | No | Application Protection Module. Values:
| 1 |
| PostHost | integer | No | Host and Container Security Module. Values:
| 1 |
| WebLock | integer | No | File Tamper Protection Module. Values:
| 1 |
| AntiRansomware | integer | No | Anti-Ransomware Module. Values:
| 1 |
| BasicService | integer | No | Basic service module. Values:
Notice The basic service module switch does not support active modification. When other modules are on, this module is also on. If all other modules are off, then this module is off. | 1 |
Response parameters
Examples
Sample success responses
JSONformat
{
"Success": true,
"Code": 200,
"Message": "successful",
"RequestId": "ACF97412-FD09-4D1F-994F-34DF12BREF20",
"HttpStatusCode": 200
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 400 | PostPayInstanceNotExist | post pay instance not exist. | Pay-As-You-Go instance does not exist. |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
| 500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2026-01-06 | The Error code has changed. The request parameters of the API has changed | View Change Details |
