You can call this operation to modify a quality of service (QoS) policy, for example, its name.

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 No ModifyQos

The operation that you want to perform.

Set the value to ModifyQos.

QosId String Yes qos-xhwhyuo43l********

The ID of the QoS policy that you want to modify.

QosName String Yes doctest

The name of the QoS policy.

RegionId String Yes cn-hangzhou

The region where the QoS policy is deployed.

QosDescription String No qosdes

The description of the QoS policy. The description must be 1 to 512 characters in length, and can contain digits, underscores (_), and hyphens (-). It must start with a letter or Chinese character.

Response parameters

Parameter Type Example Description
RequestId String EE837E9F-BD50-4C2B-9E47-260F9D848480

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=ModifyQos
&QosId=qos-xhwhyuo43l********
&QosName=doctest
&RegionId=cn-hangzhou
&<Common request parameter>

Sample success responses

XML format

<ModifyQosResponse>
	  <RequestId>F77B3F0E-CAA2-41CF-A752-4F2893C5F7F0</RequestId>
    </ModifyQosResponse>

JSON format

{
"RequestId":"F77B3F0E-CAA2-41CF-A752-4F2893C5F7F0"
}

Error codes

HttpCode Error code Error message Description
400 MissParameter.RegionId You must specify RegionId. The error message returned because the ID (RegionId) of the region is not specified.
400 MissParameter.QosId You must specify QosId. The error message returned because the ID (QosId) of the QoS policy is not specified.
400 MissParameter.Name You must specify Name. The error message returned because the name (Name) of the QoS policy is not specified.
400 InvalidParameter.Name The specified Name is invalid. The error message returned because the specified name (Name) of the QoS policy is invalid.
400 InvalidId.Qos The specified QosId is invalid. The error message returned because the specified ID (QosId) of the QoS policy is invalid.
403 InternalError An internal server error occurred. The error message returned because an internal error occurred.
400 InvalidParameter.Description The specified Description is invalid. The error message returned because the specified description (Description) of the QoS policy is invalid.

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