Help & DocumentationAPIsAPI GatewayUsage Plan APIsService level usage plan downgrade

Service level usage plan downgrade

Last updated: 2020-02-21 16:41:43

Interface description

This API (DemoteServiceUsagePlan) is used to downgrade the usage plan of a service in an environment to API.
If the service needs authentication throttling to take effect, you need to bind the usage plan to this service. This API is used to query all usage plans bound to a service.
This operation is not allowed if there is no API in the service.
If there is no publish in the current environment, this operation is not allowed.

Input Parameter

The following request parameter list only lists the API request parameters. For other parameters, please see Common Request Parameters .

Parameter name Required Type Description
ServiceId Yes String The only service to be queried is Id.
Environment Yes String Environment name.
UsagePlanId Yes String Use the plan ID.

Output Parameter

Parameter name Type Description
Code Int Common error code, 0 indicates success, other values indicate failure. For more information, please see the error code page Common error code .
CodeDesc String Error code on the business side. If a Success, error is returned on success, the cause of the business error is returned.
Message String Module error message description, related to the interface.

&<Common request parameters>

The returned results are as below: