Changing the Passwords of the Source and Destination Databases in Batches
Function
This API is used to change the passwords of the source and destination databases after a task is started.
Debugging
You can debug the API in API Explorer to support automatic authentication. API Explorer can automatically generate and debug example SDK code.
Constraints
- This API can be called only when the task is in the STARTJOBING, STARTJOB_FAILED, FULL_TRANSFER_STARTED, FULL_TRANSFER_FAILED, FULL_TRANSFER_COMPLETE, INCRE_TRANSFER_STARTED, INCRE_TRANSFER_FAILED or PAUSING state.
- In the dual-active DR scenario, the parent task cannot call the API.
URI
PUT /v3/{project_id}/jobs/batch-modify-pwd
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID of a tenant in a region. For details about how to obtain the project ID, see Obtaining a Project ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
Content-Type |
Yes |
String |
The content type. The default value is application/json. |
X-Auth-Token |
Yes |
String |
User token obtained from IAM. |
X-Language |
No |
String |
Request language type Default value: en-us Values:
|
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
jobs |
Yes |
Array of objects |
List of database passwords to be changed in batches. For details, see Table 4. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
db_password |
Yes |
String |
Database password. |
end_point_type |
Yes |
String |
Type. so indicates the source database. ta indicates the destination database. Values:
|
job_id |
Yes |
String |
Task ID. |
kerberos |
No |
Object |
Information required for Kerberos authentication. For details, see Table 5. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
count |
Integer |
Total number. |
results |
Array of objects |
List of tasks that are modified in batches. For details, see Table 7. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Task ID. |
status |
String |
Status Values:
|
end_point_type |
String |
Type. so indicates the source database. ta indicates the destination database. |
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
Example Request
Changing the passwords of the source and destination databases of specified tasks in batches
https://{endpoint}/v3/054ba152d480d55b2f5dc0069e7ddef0/jobs/batch-modify-pwd { "jobs" : [ { "db_password" : "********", "end_point_type" : "so", "job_id" : "25df459d-a37c-41b9-bc2b-8c00ba32jb52" }, { "db_password" : "********", "end_point_type" : "ta", "job_id" : "25df459d-a37c-41b9-bc2b-8c00ba32jb52" } ] }
Example Response
Status code: 200
OK
{ "results" : [ { "id" : "8d0e8e36-a618-490d-8a46-8c61ac9jb502", "status" : "success", "end_point_type" : "so" }, { "id" : "8d0e8e36-a618-490d-8a46-8c61ac9jb502", "status" : "success", "end_point_type" : "ta" } ], "count" : 2 }
Status Code
Status Code |
Description |
---|---|
200 |
OK |
400 |
Bad Request |
Error Code
For details, see Error Code.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot