获取上传数据文件的URL,用户能通过此URL上传Zookeeper待导入的数据文件。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
mse:GetZookeeperDataImportUrl |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| InstanceId |
string |
否 |
实例 ID。 |
mse_prepaid_public_cn-zvp2xzzkk06 |
| ContentType |
string |
否 |
文件类型。 |
zip |
| AcceptLanguage |
string |
否 |
返回信息的语言类型:
|
zh |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
RestResult |
||
| RequestId |
string |
请求 ID。 |
E4E2058F-C524-5C29-9BC7-5874EA8D7CE2 |
| Success |
boolean |
请求结果,取值如下:
|
true |
| Code |
integer |
Code 仅仅用来和 success 同步。 |
200 |
| ErrorCode |
string |
错误码。 |
mse-100-000 |
| HttpStatusCode |
integer |
HTTP 状态码。 |
200 |
| Message |
string |
返回信息。 |
请求处理成功 |
| DynamicCode |
string |
动态错误信息中的占位符。 |
code |
| DynamicMessage |
string |
动态错误信息,用于替换返回参数 ErrMessage 错误信息中的**%s**。 说明
如果 ErrMessage 返回The Value of Input Parameter %s is not valid,且 DynamicMessage 返回 DtsJobId,则代表所传入的请求参数 DtsJobId 不合法。 |
You are not authorized to perform this operation. |
| Data |
object |
返回数据。 |
|
| Url |
string |
文件上传地址。 |
http://xxxxxxxxx |
| MaxSize |
string |
允许上传文件的最大大小(单位 MB)。 |
250000 |
示例
正常返回示例
JSON格式
{
"RequestId": "E4E2058F-C524-5C29-9BC7-5874EA8D7CE2",
"Success": true,
"Code": 200,
"ErrorCode": "mse-100-000",
"HttpStatusCode": 200,
"Message": "请求处理成功",
"DynamicCode": "code",
"DynamicMessage": "You are not authorized to perform this operation.",
"Data": {
"Url": "http://xxxxxxxxx",
"MaxSize": "250000"
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | 非法请求: %s |
| 400 | InvalidParameter | Parameter error:%s | 请求参数错误:%s |
| 500 | InternalError | Console error. Try again later:%s | 控制台错误.稍后重试:%s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | 没有权限使用此接口:%s |
| 404 | NotFound | Not found:%s | 资源不存在:%s |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。