接口地址:/webapi/repository/create
请求方式:PUT
请求数据类型:application/x-www-form-urlencoded,application/json
响应数据类型:*/*
接口描述:
新建存储仓
请求示例:
{
"name": "",
"repositoryTypeId": 0,
"repositoryDeviceTypeId": 0,
"clientId": 0,
"fullPath": "",
"enableSizeThreshold": 0,
"sizeThreshold": 0,
"requestId": "",
"path": "",
"ServiceEndpints": "",
"SSL": 0,
"AccessKeyID": "",
"SecretAccessKey": "",
"BucketName": ""
}
请求参数:
| 参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |
|---|---|---|---|---|---|
| name | 存储仓名称 | body | true | string | |
| repositoryTypeId | 存储仓类型 | body | true | integer(int32) | |
| repositoryDeviceTypeId | 存储类型 | body | true | integer(int32) | |
| clientId | 存储节点 | body | true | integer(int64) | |
| fullPath | 全路径(存储仓类型为磁盘时用) | body | true | string | |
| enableSizeThreshold | 是否开启容量阈值 | body | true | integer(int32) | |
| sizeThreshold | 容量阈值 | body body | true | integer(int32) | |
| requestId | 请求Id | body body | true | string | |
| 目录(存储仓类型为云存储/蓝光时用) | body | true | string | ||
| ServiceEndpints | Endpint(存储仓类型为云存储/蓝光时用) | body | true | string | |
| SSL | 启用SSL方式(存储仓类型为云存储/蓝光时用) | body | true | integer(int32) | |
| AccessKeyID | AccessKeyID(存储仓类型为云存储/蓝光时用) | body | true | string | |
| SecretAccessKey | SecretAccessKey(存储仓类型为云存储/蓝光时用) | body | true | string | |
| BucketName | BucketName(存储仓类型为云存储/蓝光时用) | body | true | string |
响应状态:
| 状态码 | 说明 | schema |
|---|---|---|
| 200 | OK | ResponseResultResultVo |
响应参数:
| 参数名称 | 参数说明 | 类型 | schema |
|---|---|---|---|
| message | 返回状态标记 | string | |
| statFlag | 返回状态 | integer(int32) | integer(int32) |
| dataInfo | ResultVo | ResultVo | |
| errorCode | 错误码 | integer(int32) | |
| message | 响应信息 | string | |
| dataCount | 返回数据条数 | integer(int32) | integer(int32) |
响应示例:
{
"message": "操作成功",
"statFlag": 0,
"dataInfo": {
"errorCode": 0,
"message": ""
},
"dataCount": 10
}