Deletes the scheduling rule of an on-demand instance.

Debugging

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 DeleteSchedruleOnDemand

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

InstanceId String Yes ddosbgp-cn-z2q1qzxb****

The ID of the on-demand instance.

Note You can call the DescribeOnDemandInstance operation to query the IDs of all on-demand instances.
RuleName String Yes testrule

The name of the scheduling rule that you want to delete.

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=DeleteSchedruleOnDemand
&InstanceId=ddosbgp-cn-z2q1qzxb****
&RuleName=testrule
&<Common request parameters>

Sample success responses

XML format

<DeleteSchedruleOnDemandResponse>
      <RequestId>BD06F539-2FBE-450D-9391-7EFF787128F5</RequestId>
</DeleteSchedruleOnDemandResponse>

JSON format

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

Error codes

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