Creates a scenario-specific custom policy.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CreateSceneDefensePolicy |
The operation that you want to perform. Set the value to CreateSceneDefensePolicy. |
EndTime | Long | Yes | 1586016000000 |
The time when the policy expires. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC. |
Name | String | Yes | testpolicy |
The name of the policy. |
StartTime | Long | Yes | 1585670400000 |
The time when the policy starts to take effect. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC. |
Template | String | Yes | promotion |
The template of the policy. Valid values:
|
RegionId | String | No | cn-hangzhou |
The region ID of the instance. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | F65DF043-E0EB-4796-9467-23DDCDF92C1D |
The ID of the request. |
Success | Boolean | true |
Indicates whether the request is successful. Valid values:
|
Examples
Sample requests
http(s)://[Endpoint]/?Action=CreateSceneDefensePolicy
&EndTime=1586016000000
&Name=testpolicy
&StartTime=1585670400000
&Template=promotion
&<Common request parameters>
Sample success responses
XML
format
<CreateSceneDefensePolicyResponse>
<RequestId>F65DF043-E0EB-4796-9467-23DDCDF92C1D</RequestId>
<Success>true</Success>
</CreateSceneDefensePolicyResponse>
JSON
format
{
"RequestId": "F65DF043-E0EB-4796-9467-23DDCDF92C1D",
"Success": true
}
Error codes
For a list of error codes, visit the API Error Center.