All Products
Search
Document Center

Security Center:ModifyPostPayModuleSwitch

Last Updated:Oct 26, 2026

Enables or disables the pay-as-you-go billing method for specified features.

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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 the pay-as-you-go modules. The value is a JSON string. Valid values:

  • Key:
    • VUL: Vulnerability fixing module

    • CSPM: Cloud Security Posture Management module

    • AGENTLESS: Agentless detection module

    • SERVERLESS: Serverless security module

    • CTDR: Cloud 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, and 1 indicates enabled.

Note

The values of modules that are not specified remain unchanged.

Important This parameter has the same meaning as the PostPayModuleSwitchObj parameter. 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. You can use different tokens for different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.

02fb3da4-130e-11e9-8e44-0016e04115b

PostPaidHostAutoBind

integer

No

Specifies whether to automatically bind new assets to the host and container protection feature. Valid values:

  • 0: disabled

  • 1: enabled

1

PostPaidHostAutoBindVersion

integer

No

The edition to which new assets are automatically bound for host and container protection. Valid values:

  • 1: Free Edition

  • 3: Enterprise Edition

  • 5: Premium Edition

  • 6: Anti-virus Edition

  • 7: Ultimate Edition

3

PostPayModuleSwitchObj

object

No

The switch status of the pay-as-you-go modules.

Important This parameter has the same meaning as the PostPayModuleSwitch parameter. If both parameters are specified, the value of PostPayModuleSwitch takes precedence.

Agentless

integer

No

The Agentless detection module. Valid values:

  • 0: disabled

  • 1: enabled

1

AiDigital

integer

No

The AI digitalization feature.

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: disabled

  • 1: enabled

Important The switch for the basic service module cannot be manually modified. This module is enabled when any other module is enabled, and disabled when all other modules are disabled.

1

Cspm

integer

No

The Cloud Security Posture Management module. Valid values:

  • 0: disabled

  • 1: enabled

1

Ctdr

integer

No

The Cloud 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

PostHost

integer

No

The host and container security module. Valid values:

  • 0: disabled

  • 1: enabled

1

Rasp

integer

No

The application protection module. Valid values:

  • 0: disabled

  • 1: enabled

1

Sdk

integer

No

The malicious file detection SDK module. Valid values:

  • 0: disabled

  • 1: enabled

1

Serverless

integer

No

The Serverless security module. Valid values:

  • 0: disabled

  • 1: enabled

1

Vul

integer

No

The vulnerability fixing module. Valid values:

  • 0: disabled

  • 1: enabled

1

WebLock

integer

No

The file tamper-proofing module. Valid values:

  • 0: disabled

  • 1: enabled

1

EdrModuleSwitch

object

No

The switch configuration for the EDR module.

AutoBind

integer

No

Specifies whether to enable automatic binding of new assets to the EDR module. Valid values: 0: disabled. 1: enabled.

0

EDR_HOST_USAGE

integer

No

The authorized quota for EDR hosts.

2

DryRun

boolean

No

Specifies whether to only precheck the request. Valid values:

  • true: Only prechecks the request and does not perform the actual operation.

  • false: Performs the actual operation.

Response elements

Element

Type

Description

Example

object

BaseResult

Code

string

The result code. A value of 200 indicates success, whereas any other value indicates failure. You can use this field to identify the cause of the failure.

200

HttpStatusCode

integer

The HTTP status code of the request result.

200

Message

string

The message returned for the request result.

successful

RequestId

string

The ID of the request, which is a unique identifier generated by Alibaba Cloud for the request. You can use this ID to troubleshoot and locate issues.

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

Success

boolean

The result status of the operation call. Valid values:

  • true: The call was successful.

  • false: The call failed.

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.