All Products
Search
Document Center

Anti-DDoS:ModifyHttp2Enable

Last Updated:Apr 24, 2024

Enables or disables HTTP/2 for the forwarding rule of a website.

Operation description

Note This operation is suitable only for Anti-DDoS Pro.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ResourceGroupIdstringNo

The ID of the resource group to which the instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group.

default
DomainstringYes

The domain name of the website.

Note A forwarding rule must be configured for the domain name, and the domain name must be associated with an instance that uses the Enhanced function plan. You can call the DescribeDomains operation to query all domain names.
www.aliyun.com
EnableintegerYes

Specifies whether to enable HTTP/2. Valid values:

  • 0: disables HTTP/2.
  • 1: enables HTTP/2.
1

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E

Examples

Sample success responses

JSONformat

{
  "RequestId": "C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E"
}

Error codes

For a list of error codes, visit the Service error codes.