mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-06-20 10:22:22 +08:00
504 lines
16 KiB
YAML
504 lines
16 KiB
YAML
swagger: "2.0"
|
|
info:
|
|
title: "OneCloud API"
|
|
version: "1.0"
|
|
termsOfService: ""
|
|
contact:
|
|
email: zhouyousong@yunion.cn
|
|
license:
|
|
name: "Apache 2.0"
|
|
url: "http://www.apache.org/licenses/LICENSE-2.0.html"
|
|
|
|
host: "10.168.222.136:8889"
|
|
basePath: "/"
|
|
|
|
schemes:
|
|
- https
|
|
- http
|
|
consumes:
|
|
- application/json
|
|
produces:
|
|
- application/json
|
|
|
|
securityDefinitions:
|
|
keystone:
|
|
type: apiKey
|
|
in: header
|
|
name: X-Auth-Token
|
|
security:
|
|
- keystone: []
|
|
|
|
paths:
|
|
/v2.0/tokens:
|
|
$ref: "./identity/auth_v2.yaml"
|
|
/v2.0/tokens/{token}:
|
|
$ref: "./identity/verify_v2.yaml"
|
|
/v3/auth/tokens:
|
|
$ref: "./identity/auth_v3.yaml"
|
|
|
|
/storages:
|
|
$ref: "./storage/storages.yaml"
|
|
/storages/{storageId}:
|
|
$ref: "./storage/storage.yaml"
|
|
/storages/{storageId}/enable:
|
|
$ref: "./storage/storage.yaml#/enable"
|
|
/storages/{storageId}/disable:
|
|
$ref: "./storage/storage.yaml#/disable"
|
|
/storages/{storageId}/online:
|
|
$ref: "./storage/storage.yaml#/online"
|
|
/storages/{storageId}/offline:
|
|
$ref: "./storage/storage.yaml#/offline"
|
|
|
|
/disks:
|
|
$ref: "./disk/disks.yaml"
|
|
/disks/{diskId}:
|
|
$ref: "./disk/disk.yaml"
|
|
/disks/{diskId}/resize:
|
|
$ref: "./disk/resize.yaml"
|
|
/disks/{diskId}/save:
|
|
$ref: "./disk/save.yaml"
|
|
/disks/{diskId}/private:
|
|
$ref: "./disk/private.yaml"
|
|
/disks/{diskId}/public:
|
|
$ref: "./disk/public.yaml"
|
|
/disks/{diskId}/purge:
|
|
$ref: "./disk/purge.yaml"
|
|
/disks/{diskId}/reset:
|
|
$ref: "./disk/reset.yaml"
|
|
/disks/{diskId}/create-snapshot:
|
|
$ref: "./disk/create-snapshot.yaml"
|
|
|
|
/hosts:
|
|
$ref: "./host/hosts.yaml"
|
|
/hosts/{hostId}:
|
|
$ref: "./host/host.yaml"
|
|
/hosts/{hostId}/ping:
|
|
$ref: "./host/ping.yaml"
|
|
/hosts/{hostId}/enable:
|
|
$ref: "./host/enable.yaml"
|
|
/hosts/{hostId}/disable:
|
|
$ref: "./host/disable.yaml"
|
|
/hosts/{hostId}/syncstatus:
|
|
$ref: "./host/syncstatus.yaml"
|
|
/hosts/{hostId}/prepare:
|
|
$ref: "./host/prepare.yaml"
|
|
/hosts/{hostId}/ipmi:
|
|
$ref: "./host/ipmi.yaml"
|
|
/hosts/{hostId}/convert-hypervisor:
|
|
$ref: "./host/convert-hypervisor.yaml"
|
|
/hosts/{hostId}/undo-convert:
|
|
$ref: "./host/undo-convert.yaml"
|
|
/hosts/{hostId}/maintenance:
|
|
$ref: "./host/maintenance.yaml"
|
|
/hosts/{hostId}/unmaintenance:
|
|
$ref: "./host/unmaintenance.yaml"
|
|
/hosts/{hostId}/stop:
|
|
$ref: "./host/stop.yaml"
|
|
/hosts/{hostId}/start:
|
|
$ref: "./host/start.yaml"
|
|
/hosts/{hostId}/reset:
|
|
$ref: "./host/reset.yaml"
|
|
# /hosts/{hostId}/add-netif:
|
|
# $ref: "./host/add-netif.yaml"
|
|
# /hosts/{hostId}/remove-netif:
|
|
# $ref: "./host/remove-netif.yaml"
|
|
# /hosts/{hostId}/enable-netif:
|
|
# $ref: "./host/enable-netif.yaml"
|
|
# /hosts/{hostId}/disable-netif:
|
|
# $ref: "./host/disable-netif.yaml"
|
|
# /hosts/{hostId}/remove-all-netifs:
|
|
# $ref: "./host/remove-all-netifs.yaml"
|
|
/hosts/{hostId}/undo-prepaid-recycle:
|
|
$ref: "./host/undo-prepaid-recycle.yaml"
|
|
/hosts/{hostId}/renew-prepaid-recycle:
|
|
$ref: "./host/renew-prepaid-recycle.yaml"
|
|
/hosts/{hostId}/spec:
|
|
$ref: "./host/spec.yaml"
|
|
|
|
/hoststorages:
|
|
$ref: "./hoststorage/hoststorage.yaml"
|
|
/hosts/{hostId}/storages/{storageId}:
|
|
$ref: "./hoststorage/hoststorages.yaml"
|
|
|
|
/networks:
|
|
$ref: "./network/networks.yaml"
|
|
/networks/{networkId}:
|
|
$ref: "./network/network.yaml"
|
|
/networks/{networkId}/private:
|
|
$ref: "./network/network.yaml#/private"
|
|
/networks/{networkId}/public:
|
|
$ref: "./network/network.yaml#/public"
|
|
/networks/{networkId}/split:
|
|
$ref: "./network/network.yaml#/split"
|
|
/networks/{networkId}/merge:
|
|
$ref: "./network/network.yaml#/merge"
|
|
/networks/{networkId}/reserve-ip:
|
|
$ref: "./network/network.yaml#/reserve-ip"
|
|
/networks/{networkId}/release-reserve-ip:
|
|
$ref: "./network/network.yaml#/release-reserve-ip"
|
|
/networks/{networkId}/networkinterface:
|
|
$ref: "./network/networkinterface.yaml"
|
|
|
|
/servers:
|
|
$ref: "./instance/instances.yaml"
|
|
/servers/{instanceId}/add-secgroup:
|
|
$ref: "./instance/add-secgroup.yaml"
|
|
/servers/{instanceId}/assign-secgroup:
|
|
$ref: "./instance/assign-secgroup.yaml"
|
|
/servers/{instanceId}/associate-eip:
|
|
$ref: "./instance/associate-eip.yaml"
|
|
/servers/{instanceId}/attachdisk:
|
|
$ref: "./instance/attachdisk.yaml"
|
|
/servers/{instanceId}/attach-isolate-device:
|
|
$ref: "./instance/attach-isolate-device.yaml"
|
|
/servers/{instanceId}/attachnetwork:
|
|
$ref: "./instance/attachnetwork.yaml"
|
|
/servers/{instanceId}/cancel-delete:
|
|
$ref: "./instance/cancel-delete.yaml"
|
|
/servers/{instanceId}/change-bandwidth:
|
|
$ref: "./instance/change-bandwidth.yaml"
|
|
/servers/{instanceId}/change-config:
|
|
$ref: "./instance/change-bandwidth.yaml"
|
|
/servers/{instanceId}/change-ip-addr:
|
|
$ref: "./instance/change-ip-addr.yaml"
|
|
/servers/{instanceId}/create-backup:
|
|
$ref: "./instance/create-backup.yaml"
|
|
/servers/{instanceId}/createdisk:
|
|
$ref: "./instance/createdisk.yaml"
|
|
/servers/{instanceId}/create-eip:
|
|
$ref: "./instance/create-eip.yaml"
|
|
/servers/{instanceId}/del-extra-option:
|
|
$ref: "./instance/del-extra-option.yaml"
|
|
/servers/{instanceId}/delete-backup:
|
|
$ref: "./instance/delete-backup.yaml"
|
|
/servers/{instanceId}/deploy:
|
|
$ref: "./instance/deploy.yaml"
|
|
/servers/{instanceId}/detachdisk:
|
|
$ref: "./instance/detachdisk.yaml"
|
|
/servers/{instanceId}/detach-isolate-device:
|
|
$ref: "./instance/detach-isolate-device.yaml"
|
|
/servers/{instanceId}/detachnetwork:
|
|
$ref: "./instance/detachnetwork.yaml"
|
|
/servers/{instanceId}/dissociate-eip:
|
|
$ref: "./instance/dissociate-eip.yaml"
|
|
/servers/{instanceId}/ejectiso:
|
|
$ref: "./instance/ejectiso.yaml"
|
|
/servers/{instanceId}/insertiso:
|
|
$ref: "./instance/insertiso.yaml"
|
|
/servers/{instanceId}/live-migrate:
|
|
$ref: "./instance/live-migrate.yaml"
|
|
/servers/{instanceId}/migrate:
|
|
$ref: "./instance/migrate.yaml"
|
|
/servers/{instanceId}/monitor:
|
|
$ref: "./instance/monitor.yaml"
|
|
/servers/{instanceId}/purge:
|
|
$ref: "./instance/purge.yaml"
|
|
/servers/{instanceId}/rebuild-root:
|
|
$ref: "./instance/rebuild-root.yaml"
|
|
/servers/{instanceId}/renew:
|
|
$ref: "./instance/renew.yaml"
|
|
/servers/{instanceId}/reset:
|
|
$ref: "./instance/reset.yaml"
|
|
/servers/{instanceId}/restart:
|
|
$ref: "./instance/restart.yaml"
|
|
/servers/{instanceId}/revoke-secgroup:
|
|
$ref: "./instance/revoke-secgroup.yaml"
|
|
/servers/{instanceId}/save-image:
|
|
$ref: "./instance/save-image.yaml"
|
|
/servers/{instanceId}/send-keys:
|
|
$ref: "./instance/send-keys.yaml"
|
|
/servers/{instanceId}/set-extra-option:
|
|
$ref: "./instance/set-extra-option.yaml"
|
|
/servers/{instanceId}/set-secgroup:
|
|
$ref: "./instance/set-secgroup.yaml"
|
|
/servers/{instanceId}:
|
|
$ref: "./instance/instance.yaml"
|
|
/servers/{instanceId}/start:
|
|
$ref: "./instance/start.yaml"
|
|
/servers/{instanceId}/status:
|
|
$ref: "./instance/status.yaml"
|
|
/servers/{instanceId}/stop:
|
|
$ref: "./instance/stop.yaml"
|
|
/servers/{instanceId}/suspend:
|
|
$ref: "./instance/suspend.yaml"
|
|
/servers/{instanceId}/switch-to-backup:
|
|
$ref: "./instance/switch-to-backup.yaml"
|
|
/servers/{instanceId}/sync:
|
|
$ref: "./instance/sync.yaml"
|
|
/servers/{instanceId}/syncstatus:
|
|
$ref: "./instance/syncstatus.yaml"
|
|
/servers/{instanceId}/user-data:
|
|
$ref: "./instance/user-data.yaml"
|
|
/servers/{instanceId}/vnc:
|
|
$ref: "./instance/vnc.yaml"
|
|
|
|
/images:
|
|
$ref: "./image/images.yaml"
|
|
/images/{imageId}:
|
|
$ref: "./image/image.yaml"
|
|
/images/{imageId}/mark-standard:
|
|
$ref: "./image/image-standard.yaml"
|
|
|
|
/natgateways:
|
|
$ref: "./natgateway/natgateways.yaml"
|
|
/natgateways/{natgatewayId}:
|
|
$ref: "./natgateway/natgateway.yaml"
|
|
/natdentries:
|
|
$ref: "./natgateway/dnatentries.yaml"
|
|
/natdentries/{dnatentryId}:
|
|
$ref: "./natgateway/dnatentry.yaml"
|
|
/natsentries:
|
|
$ref: "./natgateway/snatentries.yaml"
|
|
/natsentries/{snatentryId}:
|
|
$ref: "./natgateway/snatentry.yaml"
|
|
|
|
/loadbalancers:
|
|
$ref: "./loadbalancer/loadbalancers.yaml"
|
|
/loadbalancers/{loadbalancerId}:
|
|
$ref: "./loadbalancer/loadbalancer.yaml"
|
|
|
|
/cached_loadbalancer_acls:
|
|
$ref: "./loadbalancer/loadbalancercachedacl.yaml"
|
|
/cached_loadbalancer_acls/{loadbalancerlistenerId}:
|
|
$ref: "./loadbalancer/loadbalancercachedacls.yaml"
|
|
|
|
/cached_loadbalancercertificates:
|
|
$ref: "./loadbalancer/loadbalancercachedcertificate.yaml"
|
|
/cached_loadbalancercertificates/{loadbalancerlistenerId}:
|
|
$ref: "./loadbalancer/loadbalancercachedcertificates.yaml"
|
|
|
|
/loadbalancerlisteners:
|
|
$ref: "./loadbalancer/loadbalancerlisteners.yaml"
|
|
/loadbalancerlisteners/{loadbalancerlistenerId}:
|
|
$ref: "./loadbalancer/loadbalancerlistener.yaml"
|
|
|
|
/loadbalancerbackendgroups:
|
|
$ref: "./loadbalancer/loadbalancerbackendgroups.yaml"
|
|
/loadbalancerbackendgroups/{loadbalancerbackendgroupId}:
|
|
$ref: "./loadbalancer/loadbalancerbackendgroup.yaml"
|
|
|
|
/loadbalancerbackends:
|
|
$ref: "./loadbalancer/loadbalancerbackends.yaml"
|
|
/loadbalancerbackends/{loadbalancerbackendId}:
|
|
$ref: "./loadbalancer/loadbalancerbackend.yaml"
|
|
|
|
/loadbalancerclusters:
|
|
$ref: "./loadbalancer/loadbalancerclusters.yaml"
|
|
/loadbalancerclusters/{loadbalancerClusterId}:
|
|
$ref: "./loadbalancer/loadbalancercluster.yaml"
|
|
|
|
/loadbalanceragents:
|
|
$ref: "./loadbalancer/loadbalanceragents.yaml"
|
|
/loadbalanceragents/{loadbalancerAgentId}:
|
|
$ref: "./loadbalancer/loadbalanceragent.yaml"
|
|
/loadbalanceragents/{loadbalancerAgentId}/params-patch:
|
|
$ref: "./loadbalancer/loadbalanceragent-params-patch.yaml"
|
|
/loadbalanceragents/{loadbalancerAgentId}/deploy:
|
|
$ref: "./loadbalancer/loadbalanceragent-deploy.yaml"
|
|
/loadbalanceragents/{loadbalancerAgentId}/undeploy:
|
|
$ref: "./loadbalancer/loadbalanceragent-undeploy.yaml"
|
|
|
|
/identity_providers:
|
|
$ref: "./identity/identity_providers.yaml"
|
|
/identity_providers/{idp_id}:
|
|
$ref: "./identity/identity_provider.yaml"
|
|
|
|
/domains:
|
|
$ref: "./identity/domains.yaml"
|
|
/domains/{domain_id}:
|
|
$ref: "./identity/domain.yaml"
|
|
|
|
/users:
|
|
$ref: "./identity/users.yaml"
|
|
/users/{user_id}:
|
|
$ref: "./identity/user.yaml"
|
|
|
|
/groups:
|
|
$ref: "./identity/groups.yaml"
|
|
/groups/{group_id}:
|
|
$ref: "./identity/group.yaml"
|
|
/groups/{group_id}/users/{user_id}:
|
|
$ref: "./identity/groupuser.yaml"
|
|
|
|
/projects:
|
|
$ref: "./identity/projects.yaml"
|
|
/projects/{project_id}:
|
|
$ref: "./identity/project.yaml"
|
|
|
|
/roles:
|
|
$ref: "./identity/roles.yaml"
|
|
/roles/{role_id}:
|
|
$ref: "./identity/role.yaml"
|
|
/projects/{project_id}/users/{user_id}/roles/{role_id}:
|
|
$ref: "./identity/projectuserrole.yaml"
|
|
/projects/{project_id}/groups/{group_id}/roles/{role_id}:
|
|
$ref: "./identity/projectgrouprole.yaml"
|
|
|
|
/policies:
|
|
$ref: "./identity/policies.yaml"
|
|
/policies/{policy_id}:
|
|
$ref: "./identity/policy.yaml"
|
|
|
|
/credentials:
|
|
$ref: "./identity/credentials.yaml"
|
|
|
|
/role_assignments:
|
|
$ref: "./identity/roleassignments.yaml"
|
|
|
|
/regions:
|
|
$ref: "./identity/regions.yaml"
|
|
/regions/{region_id}:
|
|
$ref: "./identity/region.yaml"
|
|
|
|
/services:
|
|
$ref: "./identity/services.yaml"
|
|
/services/{service_id}:
|
|
$ref: "./identity/service.yaml"
|
|
|
|
/endpoints:
|
|
$ref: "./identity/endpoints.yaml"
|
|
/endpoints/{endpoint_id}:
|
|
$ref: "./identity/endpoint.yaml"
|
|
|
|
/quotas:
|
|
$ref: "./quotas/quotas.yaml"
|
|
/quotas/{project_id}:
|
|
$ref: "./quotas/projectquotas.yaml"
|
|
/quotas/projects/{project_id}:
|
|
$ref: "./quotas/projectquotas.yaml"
|
|
/quotas/domains/{domain_id}:
|
|
$ref: "./quotas/domainquotas.yaml"
|
|
/quotas/projects:
|
|
$ref: "./quotas/projectquotalist.yaml"
|
|
/quotas/domains:
|
|
$ref: "./quotas/quotalist.yaml"
|
|
|
|
/serverskus:
|
|
$ref: "./serversku/serverskus.yaml"
|
|
/serverskus/{serverskuId}:
|
|
$ref: "./serversku/serversku.yaml"
|
|
/serverskus/{serverskuId}/enable:
|
|
$ref: "./serversku/enable.yaml"
|
|
/serverskus/{serverskuId}/disable:
|
|
$ref: "./serversku/disable.yaml"
|
|
|
|
/secgroups:
|
|
$ref: "./secgroup/secgroups.yaml"
|
|
/secgroups/{secgroupId}:
|
|
$ref: "./secgroup/secgroup.yaml"
|
|
/secgroups/{secgroupId}/clone:
|
|
$ref: "./secgroup/clone.yaml"
|
|
/secgroups/{secgroupId}/union:
|
|
$ref: "./secgroup/union.yaml"
|
|
/secgroups/{secgroupId}/add-rule:
|
|
$ref: "./secgroup/add-rule.yaml"
|
|
/secgroups/{secgroupId}/public:
|
|
$ref: "./secgroup/public.yaml"
|
|
/secgroups/{secgroupId}/private:
|
|
$ref: "./secgroup/private.yaml"
|
|
/secgrouprules:
|
|
$ref: "./secgrouprule/secgrouprules.yaml"
|
|
/secgrouprules/{secgroupruleId}:
|
|
$ref: "./secgrouprule/secgrouprule.yaml"
|
|
|
|
/keypairs:
|
|
$ref: "./keypair/keypairs.yaml"
|
|
/keypairs/{keypairId}:
|
|
$ref: "./keypair/keypair.yaml"
|
|
|
|
/elasticips:
|
|
$ref: "./elasticip/elasticips.yaml"
|
|
/elasticips/{elasticipId}:
|
|
$ref: "./elasticip/elasticip.yaml"
|
|
/elasticips/{elasticipId}/associate:
|
|
$ref: "./elasticip/associate.yaml"
|
|
/elasticips/{elasticipId}/dissociate:
|
|
$ref: "./elasticip/dissociate.yaml"
|
|
/elasticips/{elasticipId}/change-bandwidth:
|
|
$ref: "./elasticip/change-bandwidth.yaml"
|
|
/elasticips/{elasticipId}/purge:
|
|
$ref: "./elasticip/purge.yaml"
|
|
/elasticips/{elasticipId}/sync:
|
|
$ref: "./elasticip/sync.yaml"
|
|
|
|
/networkinterfaces:
|
|
$ref: "./networkinterface/networkinterfaces.yaml"
|
|
/networkinterfaces/{networkinterfaceId}:
|
|
$ref: "./networkinterface/networkinterface.yaml"
|
|
/networkinterfaces/{networkinterfaceId}/networks:
|
|
$ref: "./networkinterface/networks.yaml"
|
|
|
|
|
|
/buckets:
|
|
$ref: "./bucket/buckets.yaml"
|
|
/buckets/{bucketName}:
|
|
$ref: "./bucket/bucket.yaml"
|
|
/buckets/{bucketName}/objects:
|
|
$ref: "./bucket/listobjects.yaml"
|
|
/buckets/{bucketName}/delete:
|
|
$ref: "./bucket/deleteobjects.yaml"
|
|
/buckets/{bucketName}/makedir:
|
|
$ref: "./bucket/makedir.yaml"
|
|
/buckets/{bucketName}/upload:
|
|
$ref: "./bucket/uploadobject.yaml"
|
|
/buckets/{bucketName}/tempurl:
|
|
$ref: "./bucket/tempurl.yaml"
|
|
|
|
/ansibleplaybooks:
|
|
$ref: "./ansibleplaybook/ansibleplaybooks.yaml"
|
|
/ansibleplaybooks/{ansibleplaybookId}:
|
|
$ref: "./ansibleplaybook/ansibleplaybook.yaml"
|
|
/ansibleplaybooks/{ansibleplaybookId}/run:
|
|
$ref: "./ansibleplaybook/ansibleplaybook-run.yaml"
|
|
/ansibleplaybooks/{ansibleplaybookId}/stop:
|
|
$ref: "./ansibleplaybook/ansibleplaybook-stop.yaml"
|
|
/dbinstances:
|
|
$ref: "./dbinstance/dbinstances.yaml"
|
|
/dbinstances/{dbinstanceId}:
|
|
$ref: "./dbinstance/dbinstance.yaml"
|
|
/dbinstances/{dbinstanceId}/networks:
|
|
$ref: "./dbinstance/dbinstancenetwork.yaml"
|
|
|
|
/dbinstancenetworks:
|
|
$ref: "./dbinstance/dbinstancenetworks.yaml"
|
|
|
|
/dbinstanceparameters:
|
|
$ref: "./dbinstance/dbinstanceparameters.yaml"
|
|
/dbinstanceparameters/{parameterId}:
|
|
$ref: "./dbinstance/dbinstanceparameter.yaml"
|
|
|
|
/dbinstancedatabases:
|
|
$ref: "./dbinstance/dbinstancedatabases.yaml"
|
|
/dbinstancedatabases/{databaseId}:
|
|
$ref: "./dbinstance/dbinstancedatabase.yaml"
|
|
|
|
/dbinstancebackups:
|
|
$ref: "./dbinstance/dbinstancebackups.yaml"
|
|
/dbinstancebackups/{backupId}:
|
|
$ref: "./dbinstance/dbinstancebackup.yaml"
|
|
|
|
/dbinstanceaccounts:
|
|
$ref: "./dbinstance/dbinstanceaccounts.yaml"
|
|
/dbinstanceaccounts/{accountId}:
|
|
$ref: "./dbinstance/dbinstanceaccount.yaml"
|
|
|
|
|
|
/cloudaccounts:
|
|
$ref: "./cloudaccount/cloudaccounts.yaml"
|
|
/cloudaccounts/{cloudaccountId}:
|
|
$ref: "./cloudaccount/cloudaccount.yaml"
|
|
/cloudaccounts/{cloudaccountId}/change-project:
|
|
$ref: "./cloudaccount/change-project.yaml"
|
|
/cloudaccounts/{cloudaccountId}/disable:
|
|
$ref: "./cloudaccount/disable.yaml"
|
|
/cloudaccounts/{cloudaccountId}/enable:
|
|
$ref: "./cloudaccount/enable.yaml"
|
|
/cloudaccounts/{cloudaccountId}/sync:
|
|
$ref: "./cloudaccount/sync.yaml"
|
|
/cloudaccounts/{cloudaccountId}/update-credential:
|
|
$ref: "./cloudaccount/update-credential.yaml"
|
|
/cloudaccounts/{cloudaccountId}/enable-auto-sync:
|
|
$ref: "./cloudaccount/enable-auto-sync.yaml"
|
|
/cloudaccounts/{cloudaccountId}/disable-auto-sync:
|
|
$ref: "./cloudaccount/disable-auto-sync.yaml"
|