Compute Management/Cluster Related Interfaces
POSTCluster Related InterfacesSince 0.6SynchronousAuth Required
Create Cluster
Create Cluster
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.
zoneUuidStringRequiredData Center UUID
nameStringRequiredResource name
descriptionStringResource description
hypervisorTypeStringRequiredHypervisor type
typeStringReserved field. Do not use.
resourceUuidStringWhen resourceUuid is not null, the virtualization platform uses this value as the UUID of the resource being created; Otherwise, the virtualization platform automatically generates a UUID
architectureStringNo description provided.
tagUuidsList标签UUID。
systemTagsListSystem tag
userTagsListUser tag
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.
