0.0.7 • Published 6 years ago

qcloud-apigateway v0.0.7

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

qcloud-apigateway

Qcloud API Gateway api

Undocumented apis spy from qcloud web console

Build Status

Usage

npm i qcloud-apigateway

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' } ] }
*/

API

FIELDTYPEDESCRIPTIONREMARK
#createService
*protocolhttp | https | http&https
serviceNamestringService name is NOT unique. If leave blank server will generate a random one.max 50, a-z, A-Z, 0-9, _
serviceDescstring
#describeServicesStatus
limitnumber0 - 100
offsetnumber0 - INFINITY
searchIdstringSearch by service id.Starts with service-
searchNamestringSearch by service name.Starts with service-
@return
totalCountnumber
serviceStatusSet[]
serviceStatusSet[].serviceIdstring
serviceStatusSet[].serviceNamestring
serviceStatusSet[].serviceDescstring
serviceStatusSet[].protocolhttp | https | http&https
serviceStatusSet[].subDomainstring
serviceStatusSet[].vailableEnvironments[]
0.0.7

6 years ago

0.0.6

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago