Uploading stemcells
Uploads the stemcell to OpsManager and ensures the stemcell is valid.
Request
URI
POST
https://{api_host}/api/v0/stemcells
COPY
Request Body
File of type(s) multipart/form-data
Optional
{
"stemcell[file]": "string",
"stemcell[floating]": false
}
string
stemcell[file]
Optional
Stemcell file
boolean
stemcell[floating]
Optional
Constraints: default: true
When set to true
, OpsManager automatically assigns the new stemcell to all compatible products.
Responses
200
OK
Returns PostStemcellResponse of type(s) application/json
{
"stemcell": {
"infrastructure": "string",
"hypervisor": "string",
"os": "string",
"version": "string",
"file": "string",
"name": "string"
},
"existing": "string"
}
stemcell
Optional
stemcell
string
existing
Optional
If the stemcell already exists, this key is set to true
.
Code Samples
COPY
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: multipart/form-data' -d '{}' https://{api_host}/api/v0/stemcells
Stemcells Operations
POST
Uploading stemcells