菜单

修改副本属性

下载

接口地址:/webapi/container/{containerId}/action/modify

请求方式:POST

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

响应数据类型:*/*

接口描述:

修改容器属性

请求示例:

javascript 复制代码
{
  "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": {
    "empty": true
  },
  "storageNodeName": ""
}

请求参数:

参数名称 参数说明 请求类型 是否必须 数据类型 schema
containerId 请求containerId数据 path true integer(int32)
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
storageNodeName 存储节点名称 body false string

响应状态:

状态码 说明 schema
200 OK ResponseResultContainerResultVo

响应参数:

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

响应示例:

javascript 复制代码
{
	"message": "操作成功",
	"statFlag": 0,
	"dataInfo": {
		"errorCode": 0,
		"message": "",
		"containerId": 0
	},
	"dataCount": 10
}
分享文章
上一个
查询支持的加密厂商信息
下一个
查询作业使用的副本信息-DB类作业
最近修改: 2024-12-13