存储管理/数据存储相关接口/本地存储相关接口
POSTLocal Storage Related Interfaces起始版本 0.6同步需要认证
添加本地存储为数据存储
添加本地存储为数据存储
调试可用性
在线调试
使用当前认证信息和示例参数提交 Mock 请求。
请求参数
请求体字段
urlString必填本地存储路径。
nameString必填资源名称。
descriptionString资源的详细描述。
typeString类型。
zoneUuidString必填数据center UUID。
响应状态
请求地址
POST/zstack/v1/primary-storage/local-storage
/zstack/v1/primary-storage/local-storage
请求示例
curl -X POST 'http://{host}/zstack/v1/primary-storage/local-storage' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"url":"<url>","name":"<name>","description":"<description>","type":"<type>","zoneUuid":"<zoneUuid>","resourceUuid":"<resourceUuid>","systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
响应示例
200{ "inventory": { "name": "PS1", "url": "/Cloud_ps", "type": "LocalStorage", "state": "Enabled", "status": "Connected", "attachedClusterUuids": [ "562116d368c8467c95c53321757538dc" ] } }变更历史
此 API 暂无变更历史记录。
