Use lcb to list all OSS on CloudBox buckets in your Alibaba Cloud account.
Prerequisites
Before you begin, ensure that you have:
The
oss-cloudbox:*permission attached to your RAM user. For setup instructions, see Attach a custom policy to a RAM user.ossutil 1.6.16 or later. Earlier versions require you to update the binary name based on your operating system. For details, see ossutil command reference.
Command syntax
ossutil lcb [--sign-version <value>] [--region <value>] [--cloudbox-id <value>]Parameters
| Parameter | Description | Example |
|---|---|---|
--sign-version | Signature algorithm version. Must be set to v4. | v4 |
--region | The region supported by the OSS on CloudBox bucket. | cn-hangzhou |
--cloudbox-id | The ID of the OSS on CloudBox bucket. | cb-f8z7yvzgwfkl9q0h**** |
Examples
List all OSS on CloudBox buckets
ossutil lcb --sign-version v4 --region cn-hangzhou --cloudbox-id cb-f8z7yvzgwfkl9q0h****The output lists each CloudBox bucket as a numbered entry:
No :0
Id :cb-f8z7yvzgwfkl9q0h****
Name :oss-cn-heyuan-cloudbox-a
Owner :1************4
Region :oss-cn-heyuan
ControlEndpoint:cb-f8z7yvzgwfkl9q0h****.cn-heyuan.oss-cloudbox-control.aliyuncs.com
DataEndpoint :cb-f8z7yvzgwfkl9q0h****.cn-heyuan.oss-cloudbox.aliyuncs.com
----------------------------------------------------------------------
No :1
Id :cb-wz9conqz5shwj945****
Name :oss-cn-shenzhen-cloudbox-b
Owner :1************4
Region :oss-cn-shenzhen
ControlEndpoint:cb-wz9conqz5shwj945****.cn-shenzhen.oss-cloudbox-control.aliyuncs.com
DataEndpoint :cb-wz9conqz5shwj945****.cn-shenzhen.oss-cloudbox.aliyuncs.com
----------------------------------------------------------------------
0.495359(s) elapsedEach entry contains the following fields:
| Field | Description |
|---|---|
No | Sequence number of the entry in the list |
Id | CloudBox ID |
Name | CloudBox bucket name |
Owner | Alibaba Cloud account ID |
Region | Region where the bucket resides |
ControlEndpoint | Control endpoint of the CloudBox |
DataEndpoint | Data endpoint of the CloudBox |
List buckets from another Alibaba Cloud account
Use -i and -k to specify the AccessKey ID and AccessKey secret of a different account:
ossutil lcb --sign-version v4 --region cn-heyuan --cloudbox-id cb-u8s7yvzgwfkl9q0h**** -i yourAccessKeyID -k yourAccessKeySecretCommon options
For a full list of common options (such as -i, -k, and endpoint configuration), see Common options.