Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

DescriptionUsed to deploy a partition in Apache Stratos
URLadmin/policy/deployment/partition
HTTP MethodPOST
Request/Response Formatapplication/json

Sample request payload

Excerpt
Code Block
{
"partition":
{
    "id": "P1",
    "provider": "ec2",
    "property": [
        {
        "name": "region",
        "value": "ap-southeast-1"
      },
      {
        "name": "zone",
        "value": "ap-southeast-1a"
      }
    ]
   }
}

Parameter definition

ParameterDescriptionRequiredDefault valueExample Value
id
ID corresponding to the partition. This should be a unique value.yesnoP1
provider
The name of the IaaS provideryesnoec2, openstack,vcloud
property

The IaaS provider properties are listed as name value pairs.

In any IaaS region property is required. noEC2 - region, zone and region
Openstack - region, host and zone

Example

Use case: Add a partition file. The example request is as follows:

...