Sets or modifies domain name configurations in the canary release environment.
Usage note
For details about the configurations that can be modified, see the Functions section in this document.
QPS limit
A single user can perform a maximum of 30 queries per minute. Throttling is triggered when the number of calls per second exceeds the QPS limit. The throttling may affect your business. Thus, we recommend that you observe the QPS limit on this operation. For more information about what a single user means and the QPS details, see QPS limit on an API operation in ApsaraVideo Live.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | SetLiveDomainStagingConfig |
The operation that you want to perform. Set the value to SetLiveDomainStagingConfig. |
DomainName | String | Yes | example.com |
The accelerated domain name. |
Functions | String | Yes | [{"functionArgs":[{"argName":"enable","argValue":"on"},{"argName":"pri","argValue":"1"},{"argName":"rule","argValue":"xxx"}],"functionName":"edge_function"}] |
The list of features. You must specify the ConfigId parameter only when you modify Functions. For more information, see the Functions section in this document. |
RegionId | String | No | cn-shanghai |
The ID of the region. |
Functions
- Sets the configurations. Example:
[{"functionArgs":[{"argName":"enable","argValue":"on"},{"argName":"pri","argValue":"1"},{"argName":"rule","argValue":"xxx"}],"functionName":"edge_function"}]
. - Modifies the configurations. You can use ConfigId (Long type) to specify the configuration
items to be modified. Example:
[{"functionArgs":[{"argName":"enable","argValue":"on"},{"argName":"pri","argValue":"1"},{"argName":"rule","argValue":"yyy"}],"ConfigId":123456,"functionName":"edge_function"}]
.
Note: Set parameter values in the format of a string.
Feature |
Required parameter |
Optional parameter |
---|---|---|
edge_function: configures EdgeScript. |
|
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 04F0F334-1335-436C-A1D7-6C044FE73368 |
The ID of the request. |
Examples
Sample requests
http(s)://live.aliyuncs.com/?Action=SetLiveDomainStagingConfig
&DomainName=example.com
&Functions=[{"functionArgs":[{"argName":"enable","argValue":"on"},{"argName":"pri","argValue":"1"},{"argName":"rule","argValue":"xxx"}],"functionName":"edge_function"}]
&<Common request parameters>
Sample success responses
XML
format
<SetLiveDomainStagingConfigResponse>
<RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
</SetLiveDomainStagingConfigResponse>
JSON
format
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
}
Error codes
For a list of error codes, visit the API Error Center.