You can call this operation to set the virtual waiting room feature for a CDN domain. This operation is available only for CDN domains of the DCDN business type.

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 SetWaitingRoomConfig

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

AllowPct Integer Yes 30

The maximum percentage of the origin requests that are allowed. Valid values: 0 to 100.

DomainName String Yes example.com

The name of the CDN domain to set the virtual waiting room feature for.

GapTime Integer Yes 20

The length of the time to skip the queue after users exit the queue. Unit: seconds.

MaxTimeWait Integer Yes 30

The maximum length of time that users need to wait in the queue. Unit: seconds.

WaitUri String Yes xxx

The regular expression that is used to match URI strings for which the virtual waiting room feature is enabled.

WaitUrl String Yes WaitUrl

The URL of the waiting page.

Response parameters

Parameter Type Example Description
RequestId String 04F0F334-1335-436C-A1D7-6C044FE73368

The ID of the request.

Examples

Sample requests

http://cdn.aliyuncs.com/?Action=SetWaitingRoomConfig
&DomainName=xxx
&WaitUri=xxx
&AllowPct=30
MaxTimeWait=20
&GapTime=30
&WaitUrl=xxx
&<Common request parameters>

Sample success responses

XML format

<SetWaitingRoomConfigResponse>
      <RequestId>AED00EC1-32A8-4D48-BEB9-BD782AF3C6BD</RequestId>
</SetWaitingRoomConfigResponse>

JSON format

{
	"RequestId":"04F0F334-1335-436C-A1D7-6C044FE73368"
}

Error codes

For more information about error codes, visit API Error Center.