Resource Center/Hardware/Cluster Operations
POSTCluster OperationsSince 0.6SynchronousAuth Required
CreateCluster
CreateCluster
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
zoneUuidStringRequiredThe zone UUID.
nameStringRequiredThe resource name.
descriptionStringOptional. The detailed description of the resource.
hypervisorTypeStringRequiredThe hypervisor type.
typeStringOptional. The reserved field for internal use.
resourceUuidStringOptional. The resource UUID. When not null, ZStack Cloud will use this field as the UUID of the created resource. Otherwise, ZStack Cloud will automatically generate a UUID to the resource.
architectureStringOptional.
tagUuidsListOptional.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/clusters
/zstack/v1/clusters
Request Example
curl -X POST 'http://{host}/zstack/v1/clusters' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"zoneUuid":"<zoneUuid>","name":"<name>","description":"<description>","hypervisorType":"<hypervisorType>","type":"<type>","resourceUuid":"<resourceUuid>","architecture":"<architecture>","tagUuids":["<tagUuids>"]},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "name": "cluster1", "uuid": "dc7442bb39674d779d688369329ba845", "description": "test", "state": "Enabled", "hypervisorType": "KVM", "createDate": "Jun 7, 2017 9:20:31 PM", "lastOpDate": "Jun 7, 2017 9:20:31 PM", "zoneUuid": "342b68c14869412984d6327a58b18f9b", "type": "zstack" } }Change History
This API has no change history records yet.
