8 Star 41 Fork 48

EdgeGallery / docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
apm-swagger-openapi.yaml 17.67 KB
一键复制 编辑 原始数据 按行查看 历史
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761
openapi: 3.0.1
info:
title: APPLICATION PACKAGE MANAGER REST API
description: APPLICATION PACKAGE MANAGER REST API
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
version: 1.0.0
servers:
- url: //127.0.0.1:30202/
tags:
- name: APM api system
description: Apm Handler
paths:
/apm/v1/apps/info/appstores/{appstore_ip}:
get:
tags:
- APM api system
summary: Retrieves all application packages info from app store
operationId: getAllAppPackageInfoFromAppStoreUsingGET
parameters:
- name: access_token
in: header
description: access_token
required: true
schema:
type: string
- name: appstore_ip
in: path
description: appstore ip
required: true
schema:
type: string
responses:
200:
description: OK
content:
application/json:
schema:
type: array
items:
type: object
properties: {}
401:
description: Unauthorized
content: {}
403:
description: Forbidden
content: {}
404:
description: Not Found
content: {}
deprecated: false
/apm/v1/apps/sync:
post:
tags:
- APM api system
summary: Sync application packages
operationId: syncApplicationPackagesUsingPOST
parameters:
- name: access_token
in: header
description: access_token
required: true
schema:
type: string
requestBody:
description: sync app package info
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/SyncAppPackageDto'
required: false
responses:
200:
description: OK
content:
application/json:
schema:
type: array
items:
type: object
properties: {}
201:
description: Created
content: {}
401:
description: Unauthorized
content: {}
403:
description: Forbidden
content: {}
404:
description: Not Found
content: {}
deprecated: false
x-codegen-request-body-name: syncAppPackageDtos
/apm/v1/apps/syncstatus:
get:
tags:
- APM api system
summary: Retrieves all application packages sync status
operationId: getAllAppPackageSyncStatusUsingGET
parameters:
- name: access_token
in: header
description: access_token
required: true
schema:
type: string
responses:
200:
description: OK
content:
application/json:
schema:
type: array
items:
type: object
properties: {}
401:
description: Unauthorized
content: {}
403:
description: Forbidden
content: {}
404:
description: Not Found
content: {}
deprecated: false
/apm/v1/apps/{app_id}/packages/{package_id}/syncstatus:
get:
tags:
- APM api system
summary: Retrieve application packages sync status
operationId: getAllAppPackageSyncStatusUsingGET_1
parameters:
- name: access_token
in: header
description: access_token
required: true
schema:
type: string
- name: app_id
in: path
description: app id
required: true
schema:
type: string
- name: package_id
in: path
description: app package id
required: true
schema:
type: string
responses:
200:
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/AppPackageSyncStatusDto'
401:
description: Unauthorized
content: {}
403:
description: Forbidden
content: {}
404:
description: Not Found
content: {}
deprecated: false
/apm/v1/health:
get:
tags:
- APM api system
summary: Queries liveness and readiness
operationId: healthCheckUsingGET
responses:
200:
description: OK
content:
text/plain:
schema:
type: string
401:
description: Unauthorized
content: {}
403:
description: Forbidden
content: {}
404:
description: Not Found
content: {}
deprecated: false
/apm/v1/tenants/{tenant_id}/packages:
get:
tags:
- APM api system
summary: Retrieves all application packages
operationId: getAllAppPackageInfoUsingGET
parameters:
- name: tenant_id
in: path
description: tenant id
required: true
schema:
type: string
responses:
200:
description: OK
content:
application/json:
schema:
type: array
items:
type: object
properties: {}
401:
description: Unauthorized
content: {}
403:
description: Forbidden
content: {}
404:
description: Not Found
content: {}
deprecated: false
post:
tags:
- APM api system
summary: Onboard application package
operationId: onBoardAppPackageUsingPOST
parameters:
- name: access_token
in: header
description: access_token
required: true
schema:
type: string
- name: tenant_id
in: path
description: tenant id
required: true
schema:
type: string
requestBody:
description: app package info
content:
application/json:
schema:
$ref: '#/components/schemas/AppPackageDto'
required: false
responses:
200:
description: OK
content:
application/json:
schema:
type: object
201:
description: Created
content: {}
401:
description: Unauthorized
content: {}
403:
description: Forbidden
content: {}
404:
description: Not Found
content: {}
deprecated: false
x-codegen-request-body-name: appPackageDto
/apm/v1/tenants/{tenant_id}/packages/upload:
post:
tags:
- APM api system
summary: Onboard application package
operationId: onBoardApplicationUsingPOST
parameters:
- name: access_token
in: header
description: access_token
required: true
schema:
type: string
- name: tenant_id
in: path
description: tenant id
required: true
schema:
type: string
requestBody:
content:
multipart/form-data:
schema:
required:
- appPackageName
- appPackageVersion
- hostList
properties:
appPackageName:
description: appPackageName
appPackageVersion:
description: appPackageVersion
file:
type: string
description: app package
format: binary
hostList:
description: hostList
required: true
responses:
200:
description: OK
content:
application/json:
schema:
type: object
201:
description: Created
content: {}
401:
description: Unauthorized
content: {}
403:
description: Forbidden
content: {}
404:
description: Not Found
content: {}
deprecated: false
/apm/v1/tenants/{tenant_id}/packages/{app_package_id}:
get:
tags:
- APM api system
summary: Retrieves application package information
operationId: getAppPackageInfoUsingGET
parameters:
- name: app_package_id
in: path
description: app package id
required: true
schema:
type: string
- name: tenant_id
in: path
description: tenant id
required: true
schema:
type: string
responses:
200:
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/AppPackageDto'
401:
description: Unauthorized
content: {}
403:
description: Forbidden
content: {}
404:
description: Not Found
content: {}
deprecated: false
delete:
tags:
- APM api system
summary: Deletes application package
operationId: deleteAppPackageUsingDELETE
parameters:
- name: app_package_id
in: path
description: app package id
required: true
schema:
type: string
- name: tenant_id
in: path
description: tenant id
required: true
schema:
type: string
responses:
200:
description: OK
content:
text/plain:
schema:
type: string
204:
description: No Content
content: {}
401:
description: Unauthorized
content: {}
403:
description: Forbidden
content: {}
deprecated: false
/apm/v1/tenants/{tenant_id}/packages/{app_package_id}/download:
get:
tags:
- APM api system
summary: Download application package CSAR
operationId: downloadAppPackageUsingGET
parameters:
- name: app_package_id
in: path
description: app package id
required: true
schema:
type: string
- name: tenant_id
in: path
description: tenant id
required: true
schema:
type: string
responses:
200:
description: OK
content:
application/octet-stream:
schema:
$ref: '#/components/schemas/InputStreamResource'
401:
description: Unauthorized
content: {}
403:
description: Forbidden
content: {}
404:
description: Not Found
content: {}
deprecated: false
/apm/v1/tenants/{tenant_id}/packages/{app_package_id}/hosts/{host_ip}:
delete:
tags:
- APM api system
summary: Deletes an application packages
operationId: deleteAppPackageInHostUsingDELETE
parameters:
- name: app_package_id
in: path
description: app package id
required: true
schema:
type: string
- name: host_ip
in: path
description: host ip
required: true
schema:
type: string
- name: tenant_id
in: path
description: tenant id
required: true
schema:
type: string
responses:
200:
description: OK
content:
text/plain:
schema:
type: string
204:
description: No Content
content: {}
401:
description: Unauthorized
content: {}
403:
description: Forbidden
content: {}
deprecated: false
components:
schemas:
AppPackageDto:
title: AppPackageDto
type: object
properties:
appIconUrl:
type: string
appId:
type: string
appPkgAffinity:
type: string
appPkgDesc:
type: string
appPkgId:
type: string
appPkgName:
type: string
appPkgPath:
type: string
appPkgVersion:
type: string
appProvider:
type: string
createdTime:
type: string
mecHostInfo:
type: array
items:
$ref: '#/components/schemas/MecHostDto'
modifiedTime:
type: string
AppPackageInfoDto:
title: AppPackageInfoDto
type: object
properties:
affinity:
type: string
appId:
type: string
contact:
type: string
createTime:
type: string
details:
type: string
format:
type: string
industry:
type: string
name:
type: string
packageId:
type: string
provider:
type: string
shortDesc:
type: string
size:
type: string
status:
type: string
testTaskId:
type: string
type:
type: string
userId:
type: string
userName:
type: string
version:
type: string
AppPackageSyncStatusDto:
title: AppPackageSyncStatusDto
type: object
properties:
appId:
type: string
name:
type: string
operationalInfo:
type: string
packageId:
type: string
syncStatus:
type: string
File:
title: File
type: object
properties:
absolute:
type: boolean
absoluteFile:
$ref: '#/components/schemas/File'
absolutePath:
type: string
canonicalFile:
$ref: '#/components/schemas/File'
canonicalPath:
type: string
directory:
type: boolean
executable:
type: boolean
file:
type: boolean
freeSpace:
type: integer
format: int64
hidden:
type: boolean
lastModified:
type: integer
format: int64
name:
type: string
parent:
type: string
parentFile:
$ref: '#/components/schemas/File'
path:
type: string
readable:
type: boolean
totalSpace:
type: integer
format: int64
usableSpace:
type: integer
format: int64
writable:
type: boolean
InputStream:
title: InputStream
type: object
InputStreamResource:
title: InputStreamResource
type: object
properties:
description:
type: string
file:
$ref: '#/components/schemas/File'
filename:
type: string
inputStream:
$ref: '#/components/schemas/InputStream'
open:
type: boolean
readable:
type: boolean
uri:
$ref: '#/components/schemas/URI'
url:
$ref: '#/components/schemas/URL'
Map«string,string»:
title: Map«string,string»
type: object
additionalProperties:
type: string
MecHostDto:
title: MecHostDto
type: object
properties:
error:
type: string
hostIp:
type: string
status:
type: string
Resource:
title: Resource
type: object
properties:
description:
type: string
file:
$ref: '#/components/schemas/File'
filename:
type: string
inputStream:
$ref: '#/components/schemas/InputStream'
open:
type: boolean
readable:
type: boolean
uri:
$ref: '#/components/schemas/URI'
url:
$ref: '#/components/schemas/URL'
SyncAppPackageDto:
title: SyncAppPackageDto
type: object
properties:
appId:
type: string
appstoreIp:
type: string
packageId:
type: string
URI:
title: URI
type: object
properties:
absolute:
type: boolean
authority:
type: string
fragment:
type: string
host:
type: string
opaque:
type: boolean
path:
type: string
port:
type: integer
format: int32
query:
type: string
rawAuthority:
type: string
rawFragment:
type: string
rawPath:
type: string
rawQuery:
type: string
rawSchemeSpecificPart:
type: string
rawUserInfo:
type: string
scheme:
type: string
schemeSpecificPart:
type: string
userInfo:
type: string
URL:
title: URL
type: object
properties:
authority:
type: string
content:
type: object
properties: {}
defaultPort:
type: integer
format: int32
deserializedFields:
$ref: '#/components/schemas/URLStreamHandler'
file:
type: string
host:
type: string
path:
type: string
port:
type: integer
format: int32
protocol:
type: string
query:
type: string
ref:
type: string
serializedHashCode:
type: integer
format: int32
userInfo:
type: string
URLStreamHandler:
title: URLStreamHandler
type: object
1
https://gitee.com/edgegallery/docs.git
git@gitee.com:edgegallery/docs.git
edgegallery
docs
docs
master

搜索帮助