Publish service

Last updated: 2020-02-21 16:19:42

PDF

Interface description

This API (ReleaseService) is used for publish service.
After the service of the API gateway is created, the consumer can only call it after publish takes effect in a certain environment. This API is used to transfer publish services to the environment, such as release environment.

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 ID to be served by publish
EnvironmentName Yes Boolean The name of the environment to be used by publish. Three environments are currently supported. Test: test, advance: prepub, online: release
ReleaseDesc Yes String The description of publish this time

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. Return the specific cause of the business error when a Success, error is returned on success.
Message String Module error message description, related to interface
ReleaseTime Timestamp Service publish time, which can be rolled back later. Expressed according to the ISO8601 standard, and using UTC time. Format: YYYY-MM-DDThh:mm:ssZ
ReleaseDesc String Remarks on publish Enter

Example

https://apigateway.api.qcloud.com/v2/index.php?
&<Common request parameters>
&Action=ReleaseService
&serviceId=service=XX
&environmentName=Online
&releaseDesc=Publishing description

The returned results are as below:

{
    "code": "0",
    "message": "",
    "codeDesc": "Success",
    "releaseTime": "2017-08-07T00:00:00Z",
    "releaseDesc": 1234
}