All Products
Search
Document Center

Security Center:ModifyPostPayModuleSwitch

Last Updated:Jan 20, 2026
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Operate the Postpaid Module Switch

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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 Resources is 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.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:ModifyPostPayModuleSwitchupdate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
PostPayInstanceIdstringNo

Pay-as-you-go instance ID, which must be filled in.

Note Call the DescribeVersionConfig interface to obtain this parameter.
postpay-sas-**
PostPayModuleSwitchstringNo

Status of the pay-as-you-go module switch, in JsonString format. Values:

  • Key:
    • VUL: Vulnerability Repair Module
    • CSPM: Cloud Security Posture Management Module
    • AGENTLESS: Agentless Detection Module
    • SERVERLESS: Serverless Security Module
    • CTDR: Threat Analysis and Response Module
    • POST_HOST: Host and Container Security Module
    • SDK: Malicious File Detection SDK Module
    • RASP: Application Protection Module
    • CTDR_STORAGE: Log Management Module
    • ANTI_RANSOMWARE: Anti-Ransomware Management
  • Value: 0 means off, 1 means on
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}
PostPaidHostAutoBindintegerNo

Automatic binding switch for new assets in host and container protection. Values:

  • 0: Off
  • 1: On
1
PostPaidHostAutoBindVersionintegerNo

Version for automatic binding of new assets in host and container protection. Values:

  • 1: Free Edition
  • 3: Enterprise Edition
  • 5: Advanced Edition
  • 6: Antivirus Edition
  • 7: Flagship Edition
3
PostPayModuleSwitchObjobjectNo

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.

VulintegerNo

Vulnerability Repair Module. Values:

  • 0: Off
  • 1: On
1
CspmintegerNo

Cloud Security Configuration Check Module. Values:

  • 0: Off
  • 1: On
1
AgentlessintegerNo

Agentless Detection Module. Values:

  • 0: Off
  • 1: On
1
ServerlessintegerNo

Serverless Security Module. Values:

  • 0: Off
  • 1: On
1
CtdrintegerNo

Threat Analysis and Response Module. Values:

  • 0: Off
  • 1: On
1
CtdrStorageintegerNo

Log Management Module. Values:

  • 0: Off
  • 1: On
1
SdkintegerNo

Malicious File Detection SDK Module. Values:

  • 0: Off
  • 1: On
1
RaspintegerNo

Application Protection Module. Values:

  • 0: Off
  • 1: On
1
PostHostintegerNo

Host and Container Security Module. Values:

  • 0: Off
  • 1: On
1
WebLockintegerNo

File Tamper Protection Module. Values:

  • 0: Off
  • 1: On
1
AntiRansomwareintegerNo

Anti-Ransomware Module. Values:

  • 0: Off
  • 1: On
1
BasicServiceintegerNo

Basic service module. Values:

  • 0: Off
  • 1: On

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

ParameterTypeDescriptionExample
object

BaseResult

Successboolean

The result status of the API call. Values:

  • true: The API call was successful.
  • false: The API call failed.
true
Codestring

Result code, 200 indicates success. Any other value indicates failure, and the caller can use this field to determine the reason for the failure.

200
Messagestring

The response message from the request.

successful
RequestIdstring

The ID of this call request, which is a unique identifier generated by Alibaba Cloud for this request and can be used for troubleshooting and problem localization.

ACF97412-FD09-4D1F-994F-34DF12BREF20
HttpStatusCodeinteger

The HTTP status code of the request data result.

200

Examples

Sample success responses

JSONformat

{
  "Success": true,
  "Code": 200,
  "Message": "successful",
  "RequestId": "ACF97412-FD09-4D1F-994F-34DF12BREF20",
  "HttpStatusCode": 200
}

Error codes

HTTP status codeError codeError messageDescription
400PostPayInstanceNotExistpost pay instance not exist.Pay-As-You-Go instance does not exist.
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2026-01-06The Error code has changed. The request parameters of the API has changedView Change Details