Cette page n'est pas encore disponible dans votre langue. Nous nous efforçons d'ajouter d'autres langues. Nous vous remercions de votre compréhension.
- What's New
- Function Overview
- Service Overview
- Getting Started
- User Guide
-
Best Practices
- Overview
- Automatically Checking for and Retrying Failed Migration Tasks
- Cutover Migration
- 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
-
Archive Data Migration
- 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
- API 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 Do I Migrate Incremental Source Data and How Does OMS Ensure Data Consistency?
- 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?
- Can OMS Only Migrate the Data Generated After a Specified Time?
- Can OMS Filter the Data to Be Migrated by Suffix?
- 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?
- 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 the 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?
- Migration Duration
-
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 Do I Do If SMN Does Not Work Properly?
- What Do I Do If a Migration Task Fails Due to an Inconsistent Encryption Attribute?
- 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?
Listing Buckets
Function
This API is used to list buckets.
Calling Method
For details, see Calling APIs.
URI
POST /v2/{project_id}/objectstorage/buckets
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 |
---|---|---|---|
cloud_type |
Yes |
String |
The cloud service provider. The value can be AWS, Aliyun, Qiniu, QingCloud, Tencent, Baidu, KingsoftCloud, Azure, UCloud, HuaweiCloud, Google, URLSource, or HEC. Default value: Aliyun Minimum length: 0 characters Maximum length: 100 characters |
ak |
No |
String |
The AK for accessing the source bucket. This parameter is mandatory when task_type is not url_list. Minimum length: 0 characters Maximum length: 100 characters |
sk |
No |
String |
The SK for accessing the source bucket. This parameter is mandatory when task_type is not url_list. Minimum length: 0 characters Maximum length: 100 characters |
json_auth_file |
No |
String |
The file used for Google Cloud Storage authentication. Minimum length: 0 characters Maximum length: 65,535 characters |
app_id |
No |
String |
This parameter is mandatory when cloud_type is Tencent. Minimum length: 0 characters Maximum length: 255 characters |
Response
Status code: 200
Parameter |
Type |
Description |
---|---|---|
[Array element] |
Array of strings |
The bucket list. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_msg |
String |
The error message. |
error_code |
String |
The error code. |
Example Request
This example queries the list of all buckets in an account using an AK/SK pair.
POST https://{endpoint}/v2/{project_id}/objectstorage/buckets { "cloud_type" : "HuaweiCloud", "ak" : "xxxxak", "sk" : "xxxxsk", "app_id" : "apptest123" }
Example Response
Status code: 200
The bucket list was returned.
[ "xxxx" ]
Status Codes
Status Code |
Description |
---|---|
200 |
The bucket list was returned. |
400 |
Standard error response. |
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.