com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_link3' is unknown.

Deploying a Deployment Policy via REST API

Overview

DescriptionUsed to deploy a deployment policy definition
URL
admin/policy/deployment
HTTP MethodPOST
Request/Response Format
application/json

Sample request

Sample Deployment Policy Definition
{
    "id":"isuruh-ec2",
    "partitionGroup":{
       "id":"ec2",
       "partitionAlgo":"one-after-another",
       "partition":[
            {
              "id":"P1",
              "partitionMax":"3",
              "partitionMin":"1"
            }
        ]
    }
}

For information on the parameter definitions, see the Sample Deployment Policy Definition.

Example

Use case: Enter a deployment policy definition. The example request is as follows:

curl -X POST -H "Content-Type: application/json" -d @request -k -v -u admin:admin https://<SM_HOST>:9443/stratos/admin/policy/deployment

Sample response

{
  "stratosAdminResponse": {
    "message": "Successfully deployed deployment policy definition with type simple"
  }
}
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.