Skip to main content

CreateDdosPolicy

Description

No description for this api.

Request Method

POST

Request Path

/apsara/route/Ddosprivate/CreateDdosPolicy

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
PackageRateBODYintegerYesNo sample value for this parameter.early warning packet speed (unit: pps). indicates that the early warning packet speed value must be greater than 0.
HttpRateBODYintegerYesNo sample value for this parameter.alert HTTP request rate (unit: QPS). indicates that the alert HTTP request rate value must be greater than 50.
UserNameBODYstringYesNo sample value for this parameter.The user name of the operator who calls the API request is automatically obtained by the system.
regionIdBODYstringYesNo sample value for this parameter.region id
UserIdBODYlongNoNo sample value for this parameter.the user ID of the operator who called the API request is automatically obtained by the system.
ExternalServiceIPBODYstringYesNo sample value for this parameter.the IP address or IP network segment to which the DDoS protection policy is applied, in the format of x.x.x.x or x.x.x/x.
versionBODYstringNo2016-01-01version of api
FlowRateBODYintegerYesNo sample value for this parameter.warning flow rate (unit: Mbps). Description The warning flow rate value must be greater than 0.

Return data

NameTypeSample valueDescription
RequestIdstringno demo valuerequest ID.

Example

Successful Response example

{
"RequestId":"no demo value"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}