You can call this operation to copy the configuration of an accelerated domain name from the staging environment to the production environment.

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 PublishStagingConfigToProduction

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

DomainName String Yes example.com

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

FunctionName String Yes aliauth

The name of the feature.

The description of the feature.

Feature

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

Authenticates the access to an Object Storage Service (OSS) bucket.

ip_black_list_set

Configures an IP blacklist.

ip_white_list_set

Configures an IP whitelist.

error_page

Redirects an error page to another specified page.

tesla

Configures HTML optimization to accelerate access to pages.

set_req_host_header

Modifies the custom header of a back-to-origin request.

set_hashkey_args

Retains URL parameters.

aliauth

Enables URL authentication.

set_resp_header

Sets a response header. To verify the setting, you can check the response messages on the client (browser).

https_force

Configures HTTP-HTTPS force redirect.

http_force

Configures HTTPS-HTTP force redirect.

https_option

Sets the basic HTTPS parameters.

forward_scheme

Configures the static back-to-origin protocol policy.

green_manager

Configures illicit content moderation.

dynamic

Configures Dynamic Route for CDN (DCDN) settings.

set_req_header

Customizes the HTTP header of a back-to-origin request.

l2_oss_key

Retrieves content from private OSS buckets.

range

Configures object chunking to retrieve content from the origin based on HTTP range requests.

video_seek

Configures video seeking.

set_hashkey_args

Ignores the specified URL parameters.

https_tls_version

Specifies the TLS protocol version.

HSTS

Configures HTTP Strict Transport Security (HSTS).

filetype_force_ttl_code

Sets expiration rules for file status codes.

path_force_ttl_code

Sets expiration rules for directory status codes.

gzip

Configures intelligent compression with GNU zip (gzip).

tesla

Configures HTML optimization to accelerate access to pages.

https_origin_sni

Sets the Server Name Indication (SNI) value in a back-to-origin request.

limit_rate

Configures traffic throttling for individual requests.

brotli

Configures Brotli compression.

ali_ua

Configures user agent access control.

set_l2_req_header

Customizes the headers of requests sent to L2 nodes.

host_redirect

Configures URL rewrite.

quic

Configures Quick UDP Internet Connection (QUIC).

forward_timeout

Sets the timeout period of back-to-origin requests.

ali_video_split

Configures audio extraction.

ipv6

Configures IPv6 settings.

back_to_origin_argument_rewrite

Rewrites parameters in back-to-origin requests.

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=PublishStagingConfigToProduction
&DomainName=example.com
&FunctionName=aliauth
&<Common request parameters>

Sample success responses

XML format

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

JSON format

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

Error codes

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