lcb, lcb
You can run the lcb command to list CloudBox information associated with the current Alibaba Cloud account.
Usage notes
-
To list CloudBox information, you must have the
oss-cloudbox:*permission. For instructions, see Grant a custom policy. -
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 CloudBox. |
|
--cloudbox-id |
The ID of the CloudBox. |
Examples
The following example lists CloudBox information associated with 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 example shows how to obtain CloudBox information associated with another Alibaba Cloud account:
ossutil lcb --sign-version v4 --region cn-heyuan --cloudbox-id cb-u8s7yvzgwfkl9q0h**** -i LTAI**************** -k yourAccessKeySecret