全部文档
当前文档

暂无内容

如果没有找到您期望的内容,请尝试其他搜索词

文档中心

备份-手动备份

接口说明

指定备份维度,创建手动备份。

请求参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数
参数名称
类型
必填
描述
Action String
公共参数,本接口取值:CreateBackup。
Version String
公共参数,本接口取值:2023-10-10。
InstanceId String

实例id

BackupName String

备份名称

DBCollection Object[]

备份collection信息

若要全部备份,则可以不填;
若要指定备份,则手动具体指定。
DbName String

db名称

Description String

描述

Collections String[]

collection列表

返回参数

参数名称
类型
描述
RequestId String
示例值:9d6bb839-acec-47b3-b330-985779ba84e0
Code String
示例值:0
Message String
示例值:success
Data Object
id String

备份id

示例值:72122248-e707-49a9-9fd2-cd3b2d7df84f
name String

备份名称

示例值:biubiu-02
state String

备份状态

示例值:NEW
method String

备份方式(手动/自动)

示例值:manual
dimension String

备份维度

示例值:collections
size Int

备份大小

示例值:0
retention_days Int

备份保留天数

示例值:0
created_at String

备份创建时间

示例值:2025-01-10T16:00:26.796221
collection_backups String[]

备份细节

请求示例

curl -X POST
'http://milvus.api.ksyun.com/?Action=CreateBackup&Version=2023-10-10'
-H 'authorization: xxx, SignedHeaders=content-type;host;x-amz-date, Signature=xxx'
-H 'cache-control: no-cache'
-H 'content-type: application/json'
-H 'host: milvus.api.ksyun.com'
-H 'x-amz-date: 20170720T022802Z'
-d '{"InstanceId":"xxx","BackupName":"xxx","DBCollection":[{"DbName":"xxx"},{"Description":"xxx"},{"Collections":["xxx"]}]}'

返回示例

JSON格式

{
"RequestId":"9d6bb839-acec-47b3-b330-985779ba84e0",
"Code":"0",
"Message":"success",
"Data":{
"id":"72122248-e707-49a9-9fd2-cd3b2d7df84f",
"name":"biubiu-02",
"state":"NEW",
"method":"manual",
"dimension":"collections",
"size":0,
"retention_days":0,
"created_at":"2025-01-10T16:00:26.796221",
"collection_backups":[
]
}
}

错误码

以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码

错误码
错误信息
Http状态码
描述
InvalidParameter无效参数400无效参数
纯净模式常规模式

纯净模式

点击可全屏预览文档内容