The following sections illustrate the REST APIs that are used in Apache Stratos:
It is recommended to save the request in a separate file. Thereafter, the path of the request file should be referred to in the REST API command.
For example:
-d @'<PATH-TO-deploymentpolicy.json
>'
Operation Type | URL | Description |
---|---|---|
Tenant operations | Used to add a tenant | |
Used to list all the tenants | ||
Partition operations | Used to deploy a partition | |
Used to list all the partitions | ||
Auto-scaling policy operations | Used to deploy an auto-scaling policy definition | |
Used to list the auto-scaling policies | ||
Deployment policy operations | Used to deploy a deployment policy definition | |
Used to list deployment policies | ||
Multi-tenant service cluster deployment | Used to deploy a multi-tenant service cluster | |
/admin/service/definition/<SERVICE_TYPE> | Used to undeploy a multi-tenant service cluster | |
Cartridge operations | Used to deploy a cartridge definition | |
/admin/cartridge/definition/<CARTRIDGE_TYPE> | Used to undeploy a cartridge definition | |
/admin/cartridge/list | Used to list all the available cartridges (single tenant and multi-tenant) | |
Used to subscribe to a cartridge | ||
/admin/cartridge/list/subscribed | Used to list all the subscribed cartridges | |
/admin/cartridge/info/<CARTRIDGE_ALIAS> | Used to retrieve information on a cartridge that is already subscribed to by a user | |
/admin/cluster/clusterId/<CLUSTER_ID> | Used to retrieve cluster details of a specific cluster | |
/admin/cartridge/unsubscribe | Used to unsubscribe from a cartridge | |
/admin/cartridge/sync | Used to manually synchronize the GIT repository for subscribed cartridges |