Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

The cloud command component provides a profile for authenticating and accessing your object storage  on the cloud provider.

For creating cloud profile of amazon s3type  region must also be specified.


Usage

create cloud 	[label=]<name> [s3type=aws|amazon|azure|google] accesskey=<ID:Secret> \
				[region=<name>] [baseurl=<base-url>]

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>]


Examples

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=list
mayacli create cloud proj-devops bucket=testbucket
mayacli show cloud proj-devops bucket=testbucket type=size
mayacli delete cloud proj-devops bucket=testbucket


Output

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


  • No labels