Qcloud API Gateway API
npm install qcloud-apigatewayQcloud API Gateway api
_Undocumented apis spy from qcloud web console_

npm i qcloud-apigateway
``js
const { QcloudAPIGateway } = require('qcloud-apigateway')
const ag = new QcloudAPIGateway({SecretId: 'xxx', SecretKey: 'xxx', Region: 'sh'})
ag.describeServicesStatus().then(console.log)
/*
{ totalCount: 1,
serviceStatusSet:
[ { serviceDesc: 'API Gateway example.',
protocol: 'http&https',
modifiedTime: '2018-02-05 21:48:41',
serviceId: 'service-0abc0def',
availableEnvironments: [],
serviceName: 'demo',
createdTime: '2018-02-05 21:48:41',
subDomain: 'service-0abc0def-1257654321.ap-shanghai.apigateway.myqcloud.com' } ] }
*/
`
| | FIELD | TYPE | DESCRIPTION | REMARK |
| - | --- | --- | --- | --- |
| #createService |
| | *protocol | http | https | http&https | |string
| | serviceName | | Service name is NOT unique. If leave blank server will generate a random one. | max 50, a-z, A-Z, 0-9, _ |string
| | serviceDesc | |number
| #describeServicesStatus |
| | limit | | | 0 - 100 |number
| | offset | | | 0 - INFINITY |string
| | searchId | | Search by service id. | Starts with service- |string
| | searchName | | Search by service name. | Starts with service- |number
| _@return_ |
| | totalCount | |[]
| | serviceStatusSet | |string
| | serviceStatusSet[].serviceId | |string
| | serviceStatusSet[].serviceName | |string
| | serviceStatusSet[].serviceDesc | |http | https | http&https
| | serviceStatusSet[].protocol | |string
| | serviceStatusSet[].subDomain | |[]` |
| | serviceStatusSet[].vailableEnvironments |