Specifies the scheduling mode for on-demand instances.
Debugging
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:
|
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. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=SetInstanceModeOnDemand
&InstanceIdList.1=ddosbgp-cn-z2q1qzxb****
&Mode=netflow-auto
&<Common request parameters>
Sample success responses
XML
format
<SetInstanceModeOnDemandREsponse>
<RequestId>BD06F539-2FBE-450D-9391-7EFF787128F5</RequestId>
</SetInstanceModeOnDemandREsponse>
JSON
format
{
"RequestId": "BD06F539-2FBE-450D-9391-7EFF787128F5"
}
Error codes
For a list of error codes, visit the API Error Center.