All Products
Search
Document Center

:ModifyOnDemaondDefenseStatus

Last Updated:Jun 09, 2023

Modifies the protection status of an on-demand instance.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the on-demand instance.

NoteYou can call the DescribeOnDemandInstance operation to query the IDs of all on-demand instances.
ddosbgp-cn-z2q1qzxb****
DefenseStatusstringYes

The protection status of the on-demand instance. Valid values:

  • Defense: enables the on-demand instance.
  • UnDefense: disables the on-demand instance.
Defense
RegionIdstringNo

The region ID of the on-demand instance.

NoteYou can call the DescribeRegions operation to query the most recent region list.
cn-zhangjiakou

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

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

4C467B38-3910-447D-87BC-AC049166F216

Examples

Sample success responses

JSONformat

{
  "RequestId": "4C467B38-3910-447D-87BC-AC049166F216"
}

Error codes

For a list of error codes, visit the Service error codes.