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
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ResourceGroupId | string | No | 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 |
Domain | string | Yes | 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 |
Enable | integer | Yes | Specifies whether to enable HTTP/2. Valid values:
| 1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E"
}
Error codes
For a list of error codes, visit the Service error codes.