The cloud object is used to manage Storage account command component provides a profile for authenticating and accessing your object storage on the cloud provider.
Note |
---|
For creating cloud profile of amazon s3type region must also be specified. |
Usage
Code Block |
---|
|
show cloud <name> [bucket=<name>] [type=list|size]
create cloud [label=]<name> [s3type=aws|amazon|azure|google] accesskey=<ID:Secret> \
[region=<name>] [baseurl=<base-url>]
delete
show cloud <name> [bucket=<name>] [type=list]
<name> [bucket=<name> type=size]
delete cloud <name> [bucket=<name>]
set cloud [label=]<cloudname> [accesskey=<ID:Secret> [region=<name>] [baseurl=<base-url>] |
...
Code Block |
---|
|
mayacli create cloud proj-on-aws s3type=aws region=us-west-2 accesskey=AKIAKLOMEFDXKQ:TY5LjI1NCBtZXRhZGF0YS5nb29nbGUuaW50ZXJuYWwg
mayacli create cloud proj-devops s3type=azure accesskey=testdev:FIzTY4AB3deaBcpOo1278===
mayacli show cloud proj-devops type=bucketslist
mayacli create cloud proj-devops bucket=testbucket
mayacli show cloud proj-devops bucket=testbucket type=size
mayacli delete cloud proj-devops bucket=testbucket |
...
Code Block |
---|
|
# mayacli show cloud
Name Cloud Account Location BaseURL
------------------------------ -------- -------------------- ---------- --------
proj-mayanas google GOOGG4KF2INISUODA76B https://storage.googleapis.com/
proj-on-aws aws AKIAKLOMEFDXKQSUDBOB us-west-2 https://s3-us-west-2.amazonaws.com/
azure-test azure zfstest https://zfstest.blob.core.windows.net/
# mayacli show cloud proj-mayanas type=list
Name Other
-------------------------------- --------
vmstore-devops 2018-04-02T19:07:28.208Z
mys3vol 2018-05-20T06:07:56.067Z
test-disk1 2018-05-15T21:11:40.789Z
test-disk3 2018-05-15T21:55:10.213Z
test-disk4 2018-05-15T22:04:20.773Z
# mayacli show cloud proj-mayanas bucket=test-disk4 type=size
Name Counted Size
-------------------------------- -------- --------
test-disk4 909 951058489 (0.89G)
|