Specifies the scheduling mode for on-demand instances.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes SetInstanceModeOnDemand

The operation that you want to perform. Set the value to SetInstanceModeOnDemand.

InstanceIdList.N RepeatList Yes ddosbgp-cn-z2q1qzxb****

The ID of on-demand instance N.

Note You can call the DescribeOnDemandInstance operation to query the IDs of all on-demand instances.
Mode String Yes netflow-auto

The scheduling mode of the on-demand instance. Valid values:

  • manual: manual scheduling
  • netflow-auto: automatic scheduling
RegionId String No cn-zhangjiakou

The region ID of the on-demand instance.

Note You can call the DescribeRegions operation to query all regions supported by Anti-DDoS Origin.

All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.

For more information about sample requests, see the "Examples" section of this topic.

Response parameters

Parameter Type Example Description
RequestId String BD06F539-2FBE-450D-9391-7EFF787128F5

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "BD06F539-2FBE-450D-9391-7EFF787128F5"

Error codes

For a list of error codes, visit the API Error Center.