You can call this operation to configure the HTTP/2 protocol for a CDN domain.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | SetHttpsOptionConfig |
The operation that you want to perform. Set the value to SetHttpsOptionConfig. |
DomainName | String | Yes | xxx |
The name of the CDN domain to configure HTTP/2 for. |
Http2 | String | Yes | on |
Specifies whether to enable HTTP/2. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 6649A92B-F105-48A0-BC94-E5BB38570652 |
The ID of the request. |
Examples
Sample requests
http://cdn.aliyuncs.com/?Action=SetHttpsOptionConfig
&DomainName=xxx
&Http2=on
&<Common request parameters>
Sample success responses
XML
format
<SetHttpsOptionConfigResponse>
<RequestId>AED00EC1-32A8-4D48-BEB9-BD782AF3C6BD</RequestId>
</SetHttpsOptionConfigResponse>
JSON
format
{
"RequestId":"04F0F334-1335-436C-A1D7-6C044FE73368"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | MissingParameter | The specified value of parameter DomainName can not be empty. | The error message returned because the DomainName parameter is not specified. |
400 | HttpsNotEnabled | Please open https first. | The error message returned because the HTTPS secure acceleration feature is not enabled for the CDN domain. |
For more information about error codes, visit API Error Center.