This controller is responsible for obtaining resources from cloud providers based the plan generated by the planner
code | condition |
---|---|
401 | Bad credentials |
media type | data type |
---|---|
application/json | string (JSON) |
application/xml | string (XML) |
DELETE /user/v1.0/provisioner/all Accept: application/json
HTTP/1.1 204 Looks Good
Content-Type: application/json
...
Gets the IDs of all the stored ProvisionRequest
code | condition |
---|---|
401 | Bad credentials |
media type | data type | description |
---|---|---|
application/json | array of string (JSON) | a list of IDs |
application/xml | list of string (XML) |
GET /user/v1.0/provisioner/ids Accept: application/json
HTTP/1.1 200 Looks Good
Content-Type: application/json
...
Provision the resources specified by a plan.
media type | data type |
---|---|
application/json | ProvisionRequest (JSON) |
application/xml | provisionRequest (XML) |
code | condition |
---|---|
401 | Bad credentials |
media type | data type | description |
---|---|---|
application/json | string (JSON) | The ID of the provisioned ProvisionRequest |
application/xml | string (XML) |
POST /user/v1.0/provisioner/provision
Content-Type: application/json
Accept: application/json
{
"planID" : "ASedsfd46b4fDFd83ba1q",
"userKeyPairIDs" : [ "ASedsfd46b4fFd344a1A", "..." ],
"deployerKeyPairIDs" : [ "...", "..." ],
"cloudCredentialsIDs" : [ "58e3946e0fb4f562d84ba1ad", "..." ],
"keyValue" : {
"property1" : { },
"property2" : { }
},
"owner" : "user1",
"id" : "58e3946e0fb4f562d84ba1ad",
"timestamp" : 12345
}
HTTP/1.1 201 Looks Good
Content-Type: application/json
...
code | condition |
---|---|
401 | Bad credentials |
media type | data type |
---|---|
application/json | ProvisionRequest (JSON) |
application/xml | provisionRequest (XML) |
GET /user/v1.0/provisioner/sample Accept: application/json
HTTP/1.1 200 Looks Good
Content-Type: application/json
{
"planID" : "ASedsfd46b4fDFd83ba1q",
"userKeyPairIDs" : [ "ASedsfd46b4fFd344a1A", "..." ],
"deployerKeyPairIDs" : [ "...", "..." ],
"cloudCredentialsIDs" : [ "58e3946e0fb4f562d84ba1ad", "..." ],
"keyValue" : {
"property1" : { },
"property2" : { }
},
"owner" : "user1",
"id" : "58e3946e0fb4f562d84ba1ad",
"timestamp" : 12345
}
Deletes the ProvisionRequest
name | type | description |
---|---|---|
id | path |
code | condition |
---|---|
401 | Bad credentials |
media type | data type | description |
---|---|---|
application/json | string (JSON) | the ID of the deleted ProvisionRequest |
application/xml | string (XML) |
DELETE /user/v1.0/provisioner/{id} Accept: application/json
HTTP/1.1 204 Looks Good
Content-Type: application/json
...
Gets the ProvisionRequest
name | type | description |
---|---|---|
id | path |
code | condition |
---|---|
401 | Bad credentials |
media type | data type | description |
---|---|---|
application/json | ProvisionResponse (JSON) | the requested ProvisionRequest |
application/xml | provisionResponse (XML) |
GET /user/v1.0/provisioner/{id} Accept: application/json
HTTP/1.1 200 Looks Good
Content-Type: application/json
{
"cloudKeyPairIDs" : [ "...", "..." ],
"deployParameters" : [ {
"role" : "slave",
"user" : "vm_user",
"IP" : "52.73.245.157"
}, {
"role" : "...",
"user" : "...",
"IP" : "..."
} ],
"planID" : "ASedsfd46b4fDFd83ba1q",
"userKeyPairIDs" : [ "ASedsfd46b4fFd344a1A", "..." ],
"deployerKeyPairIDs" : [ "...", "..." ],
"cloudCredentialsIDs" : [ "58e3946e0fb4f562d84ba1ad", "..." ],
"keyValue" : {
"property1" : { },
"property2" : { }
},
"owner" : "user1",
"id" : "58e3946e0fb4f562d84ba1ad",
"timestamp" : 12345
}