All Products
Search
Document Center

Object Storage Service:lcb, lcb

Last Updated:Apr 02, 2025

You can run the lcb command to list the OSS on CloudBox buckets within the current Alibaba Cloud account.

Usage notes

  • To list OSS on CloudBox buckets, you must have the oss-cloudbox:* permission. For more information, see Attach a custom policy to a RAM user.

  • For ossutil 1.6.16 and later, you can directly use ossutil as the binary name in the command line. You do not need to update the binary name based on the operating system. For ossutil whose version is earlier than 1.6.16, you need to refresh the binary name based on the operating system. For more information, see ossutil command reference.

Command syntax

ossutil lcb [--sign-version <value>][--region <value>][--cloudbox-id <value>]

The following table describes the parameters in the syntax.

Parameter

Description

--sign-version

The version of the signature algorithm. Set the parameter to v4.

--region

The region supported by the OSS on CloudBox bucket.

--cloudbox-id

The ID of the OSS on CloudBox bucket.

Examples

The following sample code provides an example on how to list the OSS on CloudBox buckets within the current Alibaba Cloud account:

ossutil lcb --sign-version v4 --region cn-hangzhou --cloudbox-id cb-f8z7yvzgwfkl9q0h****

The following sample output is returned:

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) elapsed

Common options

If you want to use ossutil to switch to another Alibaba Cloud account, use the -i option to specify the AccessKey ID of the specified account and use the -k option to specify the AccessKey secret of the specified account.

The following sample code provides an example on how to obtain information about the OSS on CloudBox buckets that belong to another Alibaba Cloud account:

ossutil lcb --sign-version v4 --region cn-heyuan --cloudbox-id cb-u8s7yvzgwfkl9q0h**** -i yourAccessKeyID -k yourAccessKeySecret

For more information about common options, see Common options.