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

Compare with Current View Page History

« Previous Version 25 Next »

Work In Progress!

These docs are still work in progress and will be made available soon!

The following sections illustrate the REST APIs that are used in Apache Stratos 4.1.0:

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 TypeResource PathDescription
Tenant

/tenant

Add a tenant.
/tenant Update a tenant.
/tenant/activate/<TENANT_DOMAIN> Activate a tenant.
/tenant/deactivate/<TENANT_DOMAIN> Deactivate a tenant.
/tenant/<TENANT_DOMAIN> Retrieve tenant details.
/tenant/search/<TENANT_DOMAIN> Search for tenants.

/tenant/list

List all the tenants.
/tenant/<TENANT_DOMAIN>   Delete a tenant.
Partition

/policy/deployment/partition

Deploy a partition.

/partition

List all the partitions.
Auto-scaling policy

/policy/autoscale

Deploy an auto-scaling policy.

/policy/autoscale

List the auto-scaling policies.

Deployment policy

/policy/deployment

Deploy a deployment policy.

/policy/deployment

List deployment policies.
Cartridge

/cartridge/definition

Deploy a cartridge.
/cartridge/definition/<CARTRIDGE_TYPE> Undeploy a cartridge.
/cartridge/list List all the available cartridges (single tenant and multi-tenant).
/cartridge/list/subscribed List all the subscribed cartridges.
/cartridge/info/<CARTRIDGE_ALIAS> Used to retrieve information on a cartridge that is already subscribed to by a user.
Cluster/cluster/clusterId/<CLUSTER_ID> Retrieve cluster details of a specific cluster.
GitHub

/reponotification

Set a Webhook in GitHub.
/cartridge/syncSynchronize the GIT repository for subscribed cartridges.
Service group/group/definition Deploy a service group.
/group/definition/<GROUP_DEFINITION_NAME>Listing all service groups.
/group/definition/<GROUP_DEFINITION_NAME> Undeploy a service group.
Application/application/definition Deploy an application.
/application/definition/<APP_ID> Undeploy an application.
  • No labels