All Products
Search
Document Center

Security Center:ModifyPostPayModuleSwitch

Last Updated:Jul 09, 2026

Enables or disables pay-as-you-go billing for a specified feature.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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:

  • Key:
    • VUL: vulnerability fix module

    • CSPM: Cloud Security Posture Management (CSPM) module

    • AGENTLESS: agentless detection module

    • SERVERLESS: serverless security module

    • CTDR: threat detection 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 indicates disabled. 1 indicates enabled.

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}

PostPaidHostAutoBind

integer

No

Specifies whether to automatically bind newly added assets for host and container protection. Valid values:

  • 0: Disabled.

  • 1: Enabled.

1

PostPaidHostAutoBindVersion

integer

No

The version to which newly added assets are automatically bound for host and container protection. Valid values:

  • 1: Free Edition.

  • 3: Enterprise Edition.

  • 5: Advanced Edition.

  • 6: Anti-virus Edition.

  • 7: Ultimate Edition.

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.

Vul

integer

No

The vulnerability fix module. Valid values:

  • 0: Disabled.

  • 1: Enabled.

1

Cspm

integer

No

The cloud security configuration check module. Valid values:

  • 0: Disabled.

  • 1: Enabled.

1

Agentless

integer

No

The agentless detection module. Valid values:

  • 0: Disabled.

  • 1: Enabled.

1

Serverless

integer

No

The serverless security module. Valid values:

  • 0: Disabled.

  • 1: Enabled.

1

Ctdr

integer

No

The threat detection and response module. Valid values:

  • 0: Disabled.

  • 1: Enabled.

1

CtdrStorage

integer

No

The log management module. Valid values:

  • 0: Disabled.

  • 1: Enabled.

1

Sdk

integer

No

The malicious file detection SDK module. Valid values:

  • 0: Disabled.

  • 1: Enabled.

1

Rasp

integer

No

The application protection module. Valid values:

  • 0: Disabled.

  • 1: Enabled.

1

PostHost

integer

No

The host and container security module. Valid values:

  • 0: Disabled.

  • 1: Enabled.

1

WebLock

integer

No

The file tamper-proofing module. Valid values:

  • 0: Disabled.

  • 1: Enabled.

1

AntiRansomware

integer

No

The anti-ransomware module. Valid values:

  • 0: Disabled.

  • 1: Enabled.

1

BasicService

integer

No

The basic service module. Valid values:

  • 0: Shutdown.

  • 1: Enabling status.

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 state only when all other modules are in the shutdown state.

1

AiDigital

integer

No

The AI digital human module.

1

Response elements

Element

Type

Description

Example

object

BaseResult

Success

boolean

Indicates whether the call was successful. Valid values:

  • true: The call was successful.

  • false: The call failed.

true

Code

string

The result code. A value of 200 indicates success. Any other value indicates failure. You can use this field to determine the cause of the failure.

200

Message

string

The returned message.

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

HttpStatusCode

integer

The HTTP status code of the request.

200

Examples

Success response

JSON format

{
  "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.
500 ServerError ServerError
403 NoPermission caller has no permission

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.