CenturyLinkCloud / clc-java-sdk

Apache License 2.0
6 stars 4 forks source link

Implement Execute Package for V2 API #205

Open khomco opened 8 years ago

khomco commented 8 years ago

Please implement the Execute Package API call.

From the API Docs (https://www.ctl.io/api-docs/v2/#server-actions-execute-package):

POST https://api.ctl.io/v2/operations/{accountAlias}/servers/executePackage

Example Request

{
    "servers": [
        "wa1aliaswb01"
    ],
    "package": {
        "packageId": "86567681-c79c-1234-a530-850708435c23",
        "parameters": {
            "AB.HelloWorld.Variable": "someValue"
        }
    }
}

Example Response

[
  {
    "server":"wa1aliaswb01",
    "isQueued":true,
    "links":[
      {
        "rel":"status",
        "href":"/v2/operations/alias/status/wa1-12345",
        "id":"wa1-12345"
      }
    ]
  }
]