You can run the lcb command to list the cloud boxes that are associated with the current Alibaba Cloud account.
Command syntax
./ossutil64 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 encryption algorithm. Set the value to v4. |
--region | The regions supported by the cloud box. |
--cloudbox-id | The ID of the cloud box. |
Examples
The following sample code provides an example on how to list the cloud boxes that are associated with the current Alibaba Cloud account:
./ossutil64 lcb --sign-version v4 --region cn-hangzhou --cloudbox-id cb-f8z7yvzgwfkl9q0h****
The following 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 use ossutil to switch to a cloud box that belongs to another Alibaba Cloud account, you can 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 the information about the cloud boxes that belong to another Alibaba Cloud account:
./ossutil64 lcb --sign-version v4 --region cn-heyuan --cloudbox-id cb-u8s7yvzgwfkl9q0h**** -i LTAI4Fw2NbDUCV8zYUzA**** -k 67DLVBkH7EamOjy2W5RVAHUY9H****
For more information about other options that you can use for the appendfromfile command, see Common options.