Initiates a ZooKeeper data import task to import data from the specified URL into the ZooKeeper cluster.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:ImportZookeeperData |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
No |
The instance ID. |
mse_prepaid_public_cn-u0t2xzvxa06 |
| FileUrl |
string |
No |
The URL of the source data. Note
You must use a URL generated by the GetZookeeperDataImportUrl operation. |
http://xxxxxxxxxx |
| FileName |
string |
No |
The name of the file to import. |
snapshot.5 |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| RequestPars |
string |
No |
The extended request parameters in JSON format. |
{} |
| AcceptLanguage |
string |
No |
The language of the response. Valid values:
|
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
BaseResult |
||
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| Message |
string |
The response message. |
The request is processed successfully. |
| RequestId |
string |
The request ID. |
52BA6DA6-A702-4362-A32F-DFF79655**** |
| ErrorCode |
string |
The error code. |
mse-100-000 |
| HttpCode |
string |
The HTTP status code. |
202 |
| Data |
any |
The data overview. |
null |
Examples
Success response
JSON format
{
"Success": true,
"Message": "The request is processed successfully.",
"RequestId": "52BA6DA6-A702-4362-A32F-DFF79655****",
"ErrorCode": "mse-100-000",
"HttpCode": "202",
"Data": "null"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | Invalid request: %s |
| 400 | InvalidParameter | Parameter error:%s | Request parameter error: %s |
| 500 | InternalError | Console error. Try again later:%s | Console error. Try again later: %s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | You do not have the permission to use this interface:%s |
| 404 | NotFound | Not found:%s | The resource does not exist:%s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.