Create stack
Parameters | Type | Required | Details |
vendor | string | no | Reserved namespace. Default value is always aws. Other supported values in Enterprise edition API are: - OpenStack, - AliCloud, - SBCloud, - K5Cloud. |
cred | string | yes | The credential id to which Cloud vendor this stack should be deployed to. You need to set this value in Save Credential API first. |
region | string | yes | Eg. |
configurations | json | yes | [see below] |
Configuration | Type | Required | Details |
architecture | string | yes | Specify |
type | string | yes | The server type, eg: |
image | string | no | The docker registry path. You can either:
- specify the full path, eg: |
dockerHubUsername | string | no | Specify your username of the docker Hub if this is a private repository. |
dockerHubPassword | string | no | Specify your password of the docker Hub if this is a private repository. |
min | int | no | The minimum instances in an autoscaling group if your |
max | int | no | The maximum instances in an autoscaling group if your |
spotRange | int | no | AWS Only. The percentage of which spot instances should be deployed within your autoscaling group range, set it between |
nickname | string | no | |
code | string | no | A git repository URI, eg: |
gitReference | string | no | A git repository branch tag, default value is |
gitPrivateKey | string | no | The private key for pulling your code if the repository is a private repo. |
database | array | no | [see below] |
elasticache | array | no | [see below] |
database | Type | Required | Details |
Engine | string | yes | Specify either |
DBtype | string | yes | Eg. |
DBStorage | string | yes | Storage size in GB, between 5 to 6144 |
ReadReplica1 | string | no |
|
ReadReplica2 | string | no | [same as above] |
ReadReplica3 | string | no | [same as above] |
ReadReplica4 | string | no | [same as above] |
ReadReplica5 | string | no | [same as above] |
elasticache | Type | Required | Details |
ElastiCacheEngine | string | yes | Specify either |
ElastiCacheNodeType | string | yes | Eg. |
ElastiCacheNodes | string | yes | -Redis, Specify the number of Nodes between 1 to 6. One of them is the primary node, the others are the number of replicas. -Memcached, Specify the number of Nodes between 1 to 20 |
Request Header:
Request body:
Response Body:
The stack creation usually takes 5 to 30 minutes to complete depends on your infrastructure's complexity. You can either log in to admin UI interface to see the stack creation progress, or make request to describe stack API.
In case if the response return a CREATE-FAILED result, you may want to check your Cloud vendor's account to see if you've reached your account limit. Eg. there are a maxium of 20 VPCs per region per AWS account.
Last updated