You can call this operation to configure the HTTP/2 protocol for a CDN domain.


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 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:

  • on
  • off

Response parameters

Parameter Type Example Description
RequestId String 6649A92B-F105-48A0-BC94-E5BB38570652

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format


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.