You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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-deployment­policy.json >'

Operation TypeURLDescription
Tenant operations
 

/admin/tenant

Used to add a tenant

/admin/tenant/list

Used to list all the tenants
Partition operations

/admin/policy/deployment/partition

Used to deploy a partition

/admin/partition

Used to list all the partitions
Auto-scaling policy operations

/admin/policy/autoscale

Used to deploy an auto-scaling policy definition

/admin/policy/autoscale

Used to list the auto-scaling policies

Deployment policy operations

/admin/policy/deployment

Used to deploy a deployment policy definition

/admin/policy/deployment

Used to list deployment policies
Multi-tenant service cluster deployment

/admin/service/definition

Used to deploy a multi-tenant service cluster
/admin/service/definition/<SERVICE_TYPE> Used to undeploy a multi-tenant service cluster
Cartridge operations

/admin/cartridge/definition

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)

/admin/cartridge/subscribe

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
  • No labels