计算管理/集群相关接口
POSTCluster Related Interfaces起始版本 0.6同步需要认证
新建集群
新建集群
调试可用性
在线调试
使用当前认证信息和示例参数提交 Mock 请求。
请求参数
请求体字段
paramsObject必填请求体参数结构
zoneUuidString必填数据中心UUID
nameString必填资源名称
descriptionString资源的详细描述
hypervisorTypeString必填虚拟机管理程序类型
typeString保留域, 请不要使用
resourceUuidString当reourceUuid不等于null, 虚拟化平台使用这个值作为被创建资源的UUID; 否则虚拟化平台会自动生成一个UUID
architectureString暂无描述。
tagUuidsList标签UUID。
systemTagsList系统标签
userTagsList用户标签
响应状态
请求地址
POST/zstack/v1/clusters
/zstack/v1/clusters
请求示例
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>"]}'
响应示例
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" } }变更历史
此 API 暂无变更历史记录。
