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

Deploying an Auto-scaling Policy via REST API

Overview

DescriptionUsed to deploy an auto-scaling policy definition
URLadmin/policy/autoscale
HTTP MethodPOST
Request/Response Formatapplication/json

Sample request

{
  "id": "autoscale-policy-1",
  "loadThresholds": {
    "requestsInFlight": {
      "average": 50
    },
    "memoryConsumption": {
      "average": 70
    },
    "loadAverage": {
      "average": 100
    }
  }
}

For information on the parameter definitions, see the Sample Auto-scaling Policy Definition.

Example

Use case: Deploy an auto-scaling 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/autoscale

Sample response

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