หน้านี้ยังไม่พร้อมใช้งานในภาษาท้องถิ่นของคุณ เรากำลังพยายามอย่างหนักเพื่อเพิ่มเวอร์ชันภาษาอื่น ๆ เพิ่มเติม ขอบคุณสำหรับการสนับสนุนเสมอมา
- What's New
- Function Overview
- Service Overview
- Getting Started
- User Guide
-
Best Practices
- Overview
- Automatically Checking for and Retrying Failed Migration Tasks
- Best Practices for Service Cutover
- Special Migration Scenarios
-
Migration from Other Clouds to Huawei Cloud
- Migrating Data Between Huawei Cloud OBS Buckets
- Migrating Data from Huawei Cloud PFS to Huawei Cloud OBS or Between PFS Systems
- Migrating Data from Alibaba Cloud OSS to Huawei Cloud OBS
- Migrating Data from Tencent Cloud COS to Huawei Cloud OBS
- Migrating Data from UCloud US3 to Huawei Cloud OBS
- Migrating Data from Kingsoft Cloud KS3 to Huawei Cloud OBS
- Migrating Data from QingCloud QingStor to Huawei Cloud OBS
- Migrating Data from Google Cloud Storage to Huawei Cloud OBS
- Migrating Data from Amazon S3 to Huawei Cloud OBS
- Migrating Data from Azure Blob Storage to Huawei Cloud OBS
- Migrating Data from HTTP/HTTPS Sources to Huawei Cloud OBS
- Configuring Synchronization Requests on Source Platforms
-
Migrating Archived Data
- Migrating Archived Data in Huawei Cloud OBS
- Migrating Archived Data in Alibaba Cloud OSS
- Migrating Archived Data in Tencent Cloud COS
- Migrating Archived Data in Kingsoft Cloud KS3
- Migrating Archived Data in UCloud US3
- Migrating Archived Data in Amazon S3
- Migrating Archived Data in Azure Blob Storage
- Other Migration Scenarios
- Change History
-
API Reference
- Before You Start
- API Overview
- Calling APIs
- Getting Started
- APIs V2 (Recommended)
-
Out-of-Date APIs
- Querying the API Version
- Creating a Migration Task
- Deleting a Migration Task
- Restarting a Migration Task
- Stopping a Migration Task
- Modifying a Traffic Limiting Rule
- Querying All Migration Tasks of a Tenant
- Querying the Total Number of Migration Tasks of a Tenant
- Querying Migration Tasks by Task IDs
- Querying Quotas of a Tenant
- Appendix
- Change History
- SDK Reference
-
FAQs
- Question Summary
-
Product Consulting
- When Do I Need to Perform Pre-migration Evaluation Before Creating Migration Tasks?
- How Do I Migrate OBS Bucket Data from One Region to Another?
- How Do I Migrate the OBS Bucket Data from One Account to Another?
- How Do I Migrate Data from Multiple Source Buckets to a Single OBS Bucket on Huawei Cloud?
- How Do I Migrate Data in the Root Directory?
- How Does Migration Affect My Source Data? What Are the Impacts on Migration If the Source Data Changes?
- How Do I Change the Storage Path of a Migrated Object?
- How Does OMS Ensure Data Consistency If Data Is Continuously Written to OBS?
- How Do I Obtain Required Permissions for the Source and Destination Platform Accounts?
- How Do I Review the Objects Migrated in a Migration Task?
- How Do I Review the Objects Migrated in a Migration Task Group?
- How Do I Review the Objects Migrated in a Synchronization Task?
- Can I Migrate Data in a Specified Period Using a Synchronization Task?
- Can OMS Only Migrate the Data Generated After a Specified Time?
- Can OMS Filter the Data to Be Migrated by Suffix?
- Does OMS Support Batch Bucket Migration?
- What Is the Storage Class of Archive Data Migrated to the Archive Destination Bucket?
- What Are the Application Scenarios of Migration Tasks and Migration Task Groups?
- If I Delete an Object from the Source Bucket, Will the Corresponding Object in the Destination Bucket Be Deleted?
- How Does OMS Ensure Data Consistency Between the Source and Destination Buckets?
- Why Is the Total Number or Size of Objects in the Destination Bucket Inconsistent with Those in the Source Bucket After the Migration?
- How Does Migration Affect Data in the Destination Bucket?
- Why Are the Migration Progress and the Transmitted Data Volume 0 After the Migration Is Complete?
- How Do I Choose Storage Classes?
-
Migration Constraints
- What Are the Constraints on Migrating Data to a Parallel File System with OMS?
- What Are the Restrictions on Migrating Data in a Parallel File System?
- How Do I Fix the Error "Destination bucket must be in the same region as OMS. Select a bucket that is located in region xxx, or change the OMS region to xxx" When I Create a Migration Task?
- How Do I Migrate Data from a Cloud Platform Not Supported by OMS?
-
Migration Duration
- How Can I Learn the Speed of a Migration Task?
- Why Is the Migration Progress Not Changing Even Though the Transferred Volume Is Increasing?
- Why Is the Migration Speed Slow Sometimes?
- What Can I Do If the Migration Speed Is Slow and a Large Number of Objects Failed to Be Migrated During a Cross-Region Migration on Huawei Cloud?
-
Exception Recovery
- What Can I Do If Migration Tasks Fail To Be Created After Evaluation?
- What Can I Do If the Migration Fails Because the Frequency of Accessing the Source Object Storage Exceeded the Upper Limit?
- What Can I Do If a Migration Task Fails?
- What Can I Do If a Migration Task Group Fails to Be Executed?
- What Can I Do If SMN Is Not Working Properly?
- What Can I Do If a Migration Task Fails Due to Inconsistent Encryption Status?
- What Can I Do If the Migration Task Failed Due to an Archive Data Read Failure?
- What Problems May I Encounter If CDN Is Enabled at the Source?
- What Do I Do If All Objects Whose Names Contain Slashes (/) Fail to be Migrated from Alibaba Cloud?
- How Do I Resolve the Error "Failed to access the object. Make sure that the object exists and you have the rights to access" When I Enter Object Prefixes?
- What Can I Do If Consistency Checks Fail During the Migration of Data in a Parallel File System?
- What Can I Do If the Migration Failed Because the Objects Cannot Be Downloaded from the Source Bucket?
- What Can I Do If a Migration Task Failed Due to Transmission Interruptions?
- Change History
- Videos
- General Reference
Copied.
Updating Tasks in Batches
Function
This API is used to update migration tasks in batches. You can update all migration tasks in a migration task group or update migration tasks with specified IDs.
Calling Method
For details, see Calling APIs.
URI
POST /v2/{project_id}/tasks/batch-update
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
The project ID. Minimum length: 1 character Maximum length: 1,024 characters |
Request
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
The IAM token authentication. Ensure that the project ID contained in the token matches the project ID in the request URI. Minimum length: 1 character Maximum length: 16,384 characters |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
group_id |
No |
String |
The ID of the migration task group. All tasks in the task group will be updated. Either group_id or ids must be specified. Minimum length: 1 character Maximum length: 36 characters |
ids |
No |
Array of longs |
The migration task ID array, including IDs of all tasks to be updated in batches. Either group_id or ids must be specified. Minimum value: 0 Maximum value: 9223372036854775807 Array length: 0 to 20 |
bandwidth_policy |
Yes |
Array of BandwidthPolicyDto objects |
The traffic limiting rules. Each element in the array corresponds to the maximum bandwidth in a time period. A maximum of five periods are allowed, and the periods cannot overlap. Array length: 0 to 5 |
task_priority |
No |
String |
The task priority. There are three priority levels: high, medium, and low. This parameter takes effects only for tasks in waiting, paused, and failed statuses. The value can be: |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
end |
Yes |
String |
The end time of the traffic limiting rule. The format is hh:mm, for example, 12:03. |
max_bandwidth |
Yes |
Long |
The maximum traffic bandwidth allowed in the specified time period. The unit is byte/s. The value ranges from 1,048,576 bytes/s (equivalent to 1 MB/s) to 209,715,200 bytes/s (equivalent to 200 MB/s). Minimum value: 1048576 Maximum value: 209715200 |
start |
Yes |
String |
The start time of the traffic limiting rule. The format is hh:mm, for example, 12:03. |
Response
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_msg |
String |
The error message. |
error_code |
String |
The error code. |
Example Request
-
This example updates the traffic limiting rules for tasks in the task group with ID xxxxxxxx by setting start to 00:01, end to 23:59, and max_bandwidth to 50000000.
/v2/{project_id}/tasks/batch-update { "group_id" : "xxxxxxxx", "bandwidth_policy" : [ { "start" : "00:01", "end" : "23:59", "max_bandwidth" : 50000000 } ] }
-
This example updates the traffic limiting rules for tasks with IDs 111 and 222 by setting start to 00:01, end to 23:59, and max_bandwidth to 50000000.
/v2/{project_id}/tasks/batch-update { "ids" : [ 111, 222 ], "bandwidth_policy" : [ { "start" : "00:01", "end" : "23:59", "max_bandwidth" : 50000000 } ] }
Example Response
None
Status Codes
Status Code |
Description |
---|---|
200 |
OK. Batch update succeeded. |
400 |
Bad request. Invalid parameters. |
Error Codes
For details, see Error Codes.
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