Rolls back the configurations of the staging environment.

Note The maximum number of times that each user can call this operation per second is 30.

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 software development kits (SDKs).

Request parameters

Parameter Type Required Example Description
Action String Yes RollbackStagingConfig

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

DomainName String Yes example.com

The accelerated domain name. You can specify only one domain name.

FunctionName String Yes aliauth

The name of the feature.

The following table describes the fields of the FunctionName parameter.

Field

Description

referer_white_list_set

Configures a referer whitelist that provides hotlinking protection.

referer_black_list_set

Configures a referer blacklist that provides hotlinking protection.

filetype_based_ttl_set

Sets a file expiration rule.

path_based_ttl_set

Sets a directory expiration rule.

oss_auth

Specifies the Object Storage Bucket (OSS) bucket that requires access authentication.

ip_black_list_set

Configures an IP blacklist.

ip_white_list_set

Configures an IP whitelist.

error_page

Redirects requests from an error page to a specified page.

tesla

Configures the HTML optimization feature.

set_req_host_header

Modifies custom headers in requests before they are redirected to the origin server.

set_hashkey_args

Retains URL parameters.

aliauth

Configures Alibaba authentication.

set_resp_header

Sets a response header. To verify this setting, you can check the response messages in a browser.

https_force

Redirects requests from HTTP URLs to HTTPS URLs.

http_force

Redirects requests from HTTPS URLs to HTTP URLs.

https_option

Sets the basic parameters of HTTPS.

forward_scheme

Configures the static origin protocol policy.

dynamic

Configures Dynamic Route for CDN (DCDN) settings.

set_req_header

Specifies custom headers in requests before they are redirected to the origin server.

l2_oss_key

Retrieves content from private OSS buckets.

range

Supports back-to-origin based on HTTP range requests.

video_seek

Supports video seeking.

set_hashkey_args

Excludes specified URL parameters.

https_tls_version

Specifies the TLS protocol version.

HSTS

Supports HTTP Strict Transport Security (HSTS).

filetype_force_ttl_code

Specifies an expiration rule for file status codes.

path_force_ttl_code

Specifies an expiration rule for directory status codes.

gzip

Configures the Gzip compression feature.

tesla

Configures the HTML optimization feature.

https_origin_sni

Configures an origin Server Name Indication (SNI).

limit_rate

Configures traffic throttling for individual requests.

brotli

Configures Brotli compression.

ali_ua

Configures access control based on the user-agent header.

set_l2_req_header

Customizes the headers of requests sent to L2 nodes.

host_redirect

Configures the rewrite feature.

quic

Sets basic parameters of Quick UDP Internet Connection (QUIC).

forward_timeout

Specifies the timeout period of requests that are redirected to the origin server.

ali_video_split

Configures the audio extraction feature.

ipv6

Configures IPv6.

back_to_origin_argument_rewrite

Rewrites parameters in requests before they are redirected to the origin server.

back_to_origin_url_rewrite

Rewrites parameters in back-to-origin URLs.

edge_function

Configures EdgeScript functions.

Response parameters

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

The ID of the request.

Examples

Sample requests

http(s)://cdn.aliyuncs.com/?Action=RollbackStagingConfig
&DomainName=example.com
&FunctionName=aliauth
&<Common request parameters>

Sample success responses

XML format

<RollbackStagingConfigResponse>
      <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
</RollbackStagingConfigResponse>

JSON format

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

Error codes

For a list of error codes, visit the API Error Center.