Enables or disables pay-as-you-go billing for a specified feature.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ModifyPostPayModuleSwitch |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PostPayInstanceId |
string |
No |
The pay-as-you-go instance ID. This parameter is required. Note
Invoke the DescribeVersionConfig operation to obtain this parameter. |
postpay-sas-** |
| PostPayModuleSwitch |
string |
No |
The switch status of pay-as-you-go modules in JSON string format. Valid values:
Note
Modules for which no value is specified remain unchanged. Important This parameter has the same meaning as PostPayModuleSwitchObj. If both parameters are specified, the value of PostPayModuleSwitch takes precedence. |
{"VUL":1,"CSPM":0} |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. Use a different token for each request. Only ASCII characters are supported. The token can be up to 64 characters in length. |
|
| PostPaidHostAutoBind |
integer |
No |
Specifies whether to automatically bind new assets for host and container protection. Valid values:
|
1 |
| PostPaidHostAutoBindVersion |
integer |
No |
The edition to which new assets are automatically bound for host and container protection. Valid values:
|
3 |
| PostPayModuleSwitchObj |
object |
No |
The pay-as-you-go module switch. Important This parameter has the same meaning as PostPayModuleSwitch. If both parameters are specified, the value of PostPayModuleSwitch takes precedence. |
|
| Agentless |
integer |
No |
The agentless detection module. Valid values:
|
1 |
| AiDigital |
integer |
No |
The AI digital human module. |
1 |
| AntiRansomware |
integer |
No |
The anti-ransomware module. Valid values:
|
1 |
| BasicService |
integer |
No |
The basic service module. Valid values:
Important The basic service module switch cannot be manually modified. This module is in the enabling status when any other module is enabled, and is in the shutdown status only when all other modules are disabled. |
1 |
| Cspm |
integer |
No |
The cloud security configuration check module. Valid values:
|
1 |
| Ctdr |
integer |
No |
The threat detection and response module. Valid values:
|
1 |
| CtdrStorage |
integer |
No |
The log management module. Valid values:
|
1 |
| PostHost |
integer |
No |
The host and container security module. Valid values:
|
1 |
| Rasp |
integer |
No |
The application protection module. Valid values:
|
1 |
| Sdk |
integer |
No |
The malicious file detection SDK module. Valid values:
|
1 |
| Serverless |
integer |
No |
The serverless security module. Valid values:
|
1 |
| Vul |
integer |
No |
The vulnerability management module. Valid values:
|
1 |
| WebLock |
integer |
No |
The file tamper-proofing module. Valid values:
|
1 |
| EdrModuleSwitch |
object |
No |
||
| AutoBind |
integer |
No |
||
| EDR_HOST_USAGE |
integer |
No |
||
|
No |
Specifies whether to perform a dry run. Valid values: true: performs a check without executing the operation. false: executes the operation. Default value: false. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
BaseResult |
||
| Code |
string |
The result code. A value of 200 indicates success. Other values indicate failure. Use this field to determine the cause of failure. |
200 |
| HttpStatusCode |
integer |
The HTTP status code of the request. |
200 |
| Message |
string |
The message returned for the request. |
successful |
| RequestId |
string |
The request ID, which is a unique identifier generated by Alibaba Cloud for the request. You can use this ID to troubleshoot issues. |
ACF97412-FD09-4D1F-994F-34DF12BREF20 |
| Success |
boolean |
Indicates whether the call was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"Code": "200",
"HttpStatusCode": 200,
"Message": "successful",
"RequestId": "ACF97412-FD09-4D1F-994F-34DF12BREF20",
"Success": true
}
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. |
| 400 | IdempotentParameterMismatch | 相同的 ClientToken 被用于不同的请求参数。 | |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
| 409 | IdempotentRequestInProgress | 使用相同 ClientToken 的请求正在处理中。 |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.