菜单

新建副本组

下载

接口地址:/webapi/containergroup/create

请求方式:PUT

请求数据类型:application/x-www-form-urlencoded,application/json

响应数据类型:*/*

接口描述:

新建容器组

请求示例:

javascript 复制代码
{
  "containerGroupName": "",
  "description": "",
  "maxStreamCount": 0,
  "requestId": "",
  "containerGroupType": 0,
  "containers": [
    {
      "enableEncrypt": 0,
      "compressed": 0,
      "deduplicated": 0,
      "retention": {
        "type": 0,
        "period": 0,
        "fulls": 0
      },
      "containerName": "",
      "repositoryId": 0,
      "sourceContainerId": 0,
      "containerPrecedence": 0,
      "encryptionFlag": 0,
      "encryptionAlgorithm": 0,
      "encryptionInfo": {}
    }
  ]
}

请求参数:

参数名称 参数说明 请求类型 是否必须 数据类型 schema
  containerGroupName 副本组名称 body false string
  description 描述 body false string
  maxStreamCount 最大流数 body false integer(int64)
  requestId 请求ID body false string
  containerGroupType 副本组类型 body false integer(int32)
  containers 副本信息 body false array ContainerForm
    enableEncrypt 是否加密 body false integer(int32)
    compressed 是否已压缩 body false integer(int32)
    deduplicated 是否已去重 body false integer(int32)
    retention body false RetentionForm RetentionForm
      type 保留类型 body false integer(int32)
      period 保留天数 body false integer(int32)
      fulls 保留恢复点 body false integer(int32)
    containerName 副本名称 body false string
    repositoryId 存储库ID body false integer(int64)
    sourceContainerId 源副本ID body false integer(int64)
    containerPrecedence body false integer(int32)
    encryptionFlag body false integer(int32)
    encryptionAlgorithm body false integer(int32)
    encryptionInfo body false object

响应状态:

状态码 说明 schema
200 OK ResponseResultContainerGroupResultVo

响应参数:

参数名称 参数说明 类型 schema
message 返回状态标记 string
statFlag 返回状态 integer(int32) integer(int32)
dataInfo ContainerGroupResultVo ContainerGroupResultVo
  errorCode 错误码 integer(int32)
  message 响应信息 string
  containerGroupId 副本组ID integer(int64)
dataCount 返回数据条数 integer(int32) integer(int32)

响应示例:

javascript 复制代码
{
	"message": "操作成功",
	"statFlag": 0,
	"dataInfo": {
		"errorCode": 0,
		"message": "",
		"containerGroupId": 0
	},
	"dataCount": 10
}
分享文章
上一个
查询副本组列表
下一个
修改副本组基本属性
最近修改: 2024-12-13