Modifies a quintuple rule of a Quality of Service (QoS) policy.

Debug

Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
QosId String Yes qos-djhgg***********

The instance ID of the QoS policy.

QosPolicyId String Yes qospy-427m9fo6wkh*********

The ID of the quintuple rule.

RegionId String Yes cn-hangzhou

The ID of the region to which the QoS policy belongs.

Action String No ModifyQosPolicy

The name of this action.

Value: ModifyQosPolicy.

Description String No Quintuple rule

The description of the quintuple rule.

DestCidr String No 10.10.20.9/12

The destination CIDR block.

DestPortRange String No 80/80

The destination port range.

EndTime String No 2019-09-14T16:41:33+0800

The expiration time of the quintuple rule.

IpProtocol String No tcp

The transport layer protocol.

Priority Integer No 3

The priority of the quintuple rule. A smaller value indicates a higher priority. If the priorities of two rules are the same, the rule issued earlier is applied first.

Value range: 1 to 7

SourceCidr String No 10.10.10.9/24

The source CIDR block.

SourcePortRange String No 80/80

The source port range.

StartTime String No 2019-07-14T16:41:33+0800

The time when the quintuple rule takes effect.

Response parameters

Parameter Type Example value Description
RequestId String 551CD836-9E46-4F2C-A167-B4363180A647

The ID of the request.

Examples

Request example


http(s)://[Endpoint]/? Action=ModifyQosPolicy
&QosId=qos-djhgg***********
&QosPolicyId=qospy-427m9fo6wkh*********
&RegionId=cn-hangzhou
&<CommonParameters>

Response example

XML format

<ModifyQosPolicyResponse>
	  <RequestId>551CD836-9E46-4F2C-A167-B4363180A647</RequestId>
    </ModifyQosPolicyResponse>

JSON format

{
	"RequestId":"551CD836-9E46-4F2C-A167-B4363180A647"
}

Errors

HTTP status code Error code Error message Description
400 MissParameter.RegionId You must specify RegionId. You must specify the RegionId.
400 MissParameter.QosId You must specify QosId. You must specify the QosId.
400 MissParameter.QosPolicyId You must specify QosPolicyId. You must specify the QosPolicyId.
400 InvalidParameter.Description The specified Description is invalid. The specified Description is invalid.
400 InvalidParameter.Priority The specified Priority is invalid. The specified Priority is invalid.
400 InvalidParameter.SourcePortRange The specified SourcePortRange is invalid. The specified SourcePortRange is invalid.
400 InvalidParameter.DestCidr The specified DestCidr is invalid. The specified DestCidr is invalid.
400 InvalidParameter.DestPortRange The specified DestPortRange is invalid. The specified DestPortRange is invalid.
400 InvalidParameter.SourceCidr The specified SourceCidr is invalid. The specified SourceCidr is invalid.
400 InvalidParameter.StartTime The specified StartTime is invalid. The specified StartTime is invalid.
400 InvalidParameter.EndTime The specified EndTime is invalid. The specified EndTime is invalid.
400 InvalidTimeRangeCompare The specified end time is earlier than the start time. Please check your input. The specified EndTime is earlier than the StartTime.
400 InvalidId.QOSPY The specified QosPolicyId is invalid. The specified QosPolicyId is invalid.
403 InternalError An internal server error occurred. An internal error occurred.
400 InvalidId.Qos The specified QosId is invalid. The specified QosId is invalid.
400 NotSupportedProtocol The specified protocol of the QoS policy is not supported. The specified protocol is not supported.
403 InvalidPortRange The specified port range is invalid. The specified port range is invalid.

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