com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_link3' is unknown.
Deploying a Cartridge via REST API
Overview
Description | Used to deploy a Cartridge definition |
URL |
|
HTTP Method | POST |
Request/Response Format |
|
Sample request
Sample Cartridge Definition
{ "type":"php", "provider":"apache", "host":"stratos.org", "displayName":"PHP", "description":"PHP Cartridge", "version":"7", "defaultAutoscalingPolicy":"economyPolicy", "multiTenant":"false", "portMapping":[ { "protocol":"http", "port":"80", "proxyPort":"8280" }, { "protocol":"https", "port":"443", "proxyPort":"8243" } ], "iaasProvider":[ { "type":"ec2", "imageId":"ap-southeast-1/ami-2e0d5a7c", "maxInstanceLimit":"4", "property":[ { "name":"instanceType", "value":"m1.medium" }, { "name":"keyPair", "value":"xxxxxxxx" } ], "networkInterfaces": [ { "networkUuid": "fb9c21f4-0672-48b2-8279-77334bb63a53" }, Â { "networkUuid": "1e43f86f-4165-4f2e-8017-dd4cfb5548b0" } ], } ], "loadBalancer":{ "type":"lb", "property":{ "name":"default.load.balancer", "value":"true" } }, "persistence": { "isRequired": "true", "volume" : [ { "device": "/dev/sdc", "mappingPath": "/home/ubuntu/sdc", "size": "11", "removeOnTermination": "false" } ] } }Â
For information on the parameter definitions, see the Sample Cartridge Definition and the Sample LB Definition.
Example
Use case: Deploy a PHP Cartridge. The example request is as follows:
curl -X POST -H "Content-Type: application/json" -d @PHP-request -k -v -u admin:admin https://<SM_HOST>:9443/stratos/admin/cartridge/definition
Sample response
{ "stratosAdminResponse": { "message": "Successfully deployed cartridge definition with type php" } }Â
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.