How Do I Obtain Required Permissions for the Source and Destination Platform Accounts?
Source Permissions
The following uses an OBS bucket on HUAWEI CLOUD as the source bucket. If your source bucket is on the other cloud service platform, contact engineers of the cloud service platform.
- Listing all buckets
- Obtaining bucket location
- Listing objects
- Obtaining object metadata
- Obtaining object content
You can use either of the following methods to obtain required permissions for the source platform account:
- Using system-defined policy OBS Administrator.
For details, see Creating a User Group and Assigning Permissions.
- Creating a custom policy
- Log in to HUAWEI CLOUD and click Console in the upper right corner.
- On the management console, hover the mouse pointer over the username in the upper right corner, and choose Identity and Access Management from the drop-down list.
- In the navigation pane on the left, choose Permissions.
- Click Create Custom Policy in the upper right corner.
The Create Custom Policy page is displayed.
- Specify a policy name, and set Scope to Global services and Policy View to JSON.
- Copy the following content to the box next to Policy Content and click OK.
{ "Version": "1.1", "Statement": [ { "Action": [ "obs:bucket:ListAllMyBuckets", "obs:bucket:GetBucketLocation", "obs:bucket:ListBucket", "obs:object:GetObject" ], "Resource": [ "obs:*:*:bucket:*", "obs:*:*:object:*" ], "Effect": "Allow" } ] }
Destination Permissions
- Listing all buckets
- Obtaining bucket location
- Listing objects
- Obtaining object metadata
- Obtaining object content
- Listing uploaded parts
- Restoring archive objects
- Use system-defined policy OBS Administrator.
For details, see Creating a User Group and Assigning Permissions.
- Creating a custom policy.
- Log in to HUAWEI CLOUD and click Console in the upper right corner.
- On the management console, hover the mouse pointer over the username in the upper right corner, and choose Identity and Access Management from the drop-down list.
- In the navigation pane on the left, choose Permissions.
- Click Create Custom Policy in the upper right corner.
The Create Custom Policy page is displayed.
- Specify a policy name, and set Scope to Global services and Policy View to JSON.
- Copy the following content to the box next to Policy Content and click OK.
{ "Version": "1.1", "Statement": [ { "Action": [ "obs:bucket:ListBucket", "obs:object:PutObject", "obs:object:RestoreObject", "obs:object:GetObject", "obs:bucket:GetBucketLocation", "obs:object:ListMultipartUploadParts" ], "Resource": [ "obs:*:*:bucket:*", "obs:*:*:object:*" ], "Effect": "Allow" }, { "Action": [ "obs:bucket:ListBucketMultipartUploads" ], "Resource": [ "obs:*:*:bucket:*" ], "Effect": "Allow" }, { "Action": [ "obs:bucket:ListAllMyBuckets" ], "Effect": "Allow" } ] }
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.