Examples

Retrieve information about Base URLĀ“s

PS C:\Users\Karsten> Get-ECSbaseurl

name                                    link                                    id
----                                    ----                                    --
ECS                                     @{rel=self; href=/object/baseurl/urn... urn:ObjectBaseUrl:05a9d891-3740-49d1...
DefaultBaseUrl                          @{rel=self; href=/object/baseurl/urn... urn:ObjectBaseUrl:31501a97-e68c-4684...
myS3url                                 @{rel=self; href=/object/baseurl/urn... urn:ObjectBaseUrl:c1aee094-52de-4142...

to retrieve the local connected vdc, use Get-ECSlocalvdc

PS C:\Users\Karsten> Get-ECSlocalvdc

name                  : VDCmunich
id                    : urn:storageos:VirtualDataCenterData:2e30ccb8-ccf5-4166-a11d-1e17f92667c6
link                  : @{rel=self; href=/object/vdcs/vdc/VDCmunich}
inactive              : False
global                :
remote                :
vdc                   :
vdcId                 : urn:storageos:VirtualDataCenterData:2e30ccb8-ccf5-4166-a11d-1e17f92667c6
vdcName               : VDCmunich
interVdcEndPoints     : 10.64.253.161,10.64.253.162,10.64.253.163,10.64.253.164
interVdcCmdEndPoints  : 10.64.253.161,10.64.253.162,10.64.253.163,10.64.253.164
secretKeys            : DCqfSoqAqe4ecIBFoKXy
permanentlyFailed     : False
local                 : True
is_encryption_enabled : True

to get a list of namespaces

PS C:\Users\Karsten> Get-ECSnamespaces

Namespace                                                   name
---------                                                   ----
ans                                                         ans
ben_namespace                                               ben_namespace
centera_7e3e0aae-1dd2-11b2-b226-c645ba3ca1ea                centera_7e3e0aae-1dd2-11b2-b226-c645ba3ca1ea
centrastar51                                                centrastar51
cloudboost                                                  cloudboost
cloudpools                                                  cloudpools
compliance1                                                 compliance1
cynthia                                                     cynthia
dps_ns                                                      dps_ns
hadoop                                                      hadoop
hdfs_ns                                                     hdfs_ns
isilon                                                      isilon
lecorcns                                                    lecorcns
lsc                                                         lsc
mikkelbernhof                                               mikkelbernhof
nehrman_ns                                                  nehrman_ns
nfs_ns                                                      nfs_ns
nsale                                                       nsale
nsca                                                        nsca
paris                                                       paris
torsten1                                                    torsten1
vdacosta_ns                                                 vdacosta_ns
wien                                                        wien
zivits3local                                                zivits3local

create a bucket with New-ECSBucket

PS C:\Users\Karsten> New-ECSBucket -BucketName ecshell11 -namespace lsc -head_type s3

Bucketname                                                  BucketID
----------                                                  --------
ecshell11                                                   lsc.ecshell11


create multiple buckets

PS C:\Users\Karsten> foreach ($n in 1..10) {New-ECSBucket -BucketName ecshell$n -namespace lsc -head_type s3 }

Bucketname                                                  BucketID
----------                                                  --------
ecshell1                                                    lsc.ecshell1
ecshell2                                                    lsc.ecshell2
ecshell3                                                    lsc.ecshell3
ecshell4                                                    lsc.ecshell4
ecshell5                                                    lsc.ecshell5
ecshell6                                                    lsc.ecshell6
ecshell7                                                    lsc.ecshell7
ecshell8                                                    lsc.ecshell8
ecshell9                                                    lsc.ecshell9
ecshell10                                                   lsc.ecshell10

remove buckets using Remove-ECSBucket

PS C:\Users\Karsten> Remove-ECSBucket -Bucketname ecshell11 -Namespace lsc

commit bucket deletion
this will delete bucket ecshell11 from namespace lsc
[N] No  [Y] Yes  [?] Help (default is "N"): y

bucket ecshell11 removed from namespace lsc

the above command requires confirmation. if to dlete multiple buckets without confirmation, use:

PS C:\Users\Karsten> Get-ECSBuckets -Namespace lsc | where Bucketname -match ecshell | Remove-ECSBucket -Confirm:$false

bucket ecshell1 removed from namespace lsc

bucket ecshell10 removed from namespace lsc

bucket ecshell2 removed from namespace lsc

bucket ecshell3 removed from namespace lsc

bucket ecshell4 removed from namespace lsc

bucket ecshell5 removed from namespace lsc

bucket ecshell6 removed from namespace lsc

bucket ecshell7 removed from namespace lsc

bucket ecshell8 removed from namespace lsc

bucket ecshell9 removed from namespace lsc

get a list of currently available commands

Add-ECSBucketMetadata                                       Add-ECSBucketTags
Connect-ECSSystem                                           Disconnect-ECSSystem
Find-ECSCommodityDataStore                                  Get-ECSalerts
Get-ECSauditevents                                          Get-ECSbaseurl
Get-ECSbaseurldetail                                        Get-ECSBucketACL
Get-ECSBucketACLGroups                                      Get-ECSBucketACLPermissions
Get-ECSBucketInfo                                           Get-ECSBucketLock
Get-ECSBucketQuota                                          Get-ECSBucketRetention
Get-ECSBuckets                                              Get-ECSBucketSearchMetadata
Get-ECScapacity                                             Get-ECScertificate
Get-ECSCommodityDataStore                                   Get-ECSDataStoreBulk
Get-ECSDataStores                                           Get-ECSDiskDashboard
Get-ECSlicense                                              Get-ECSlocalvdc
Get-ECSlocalvdcSecretKey                                    Get-ECSLocalzoneDashboard
Get-ECSManagementUser                                       Get-ECSnamespaces
Get-ECSNodeDashboard                                        Get-ECSnodes
Get-ECSObjectuserInfo                                       Get-ECSObjectusers
Get-ECSObjectUserSecretKeys                                 Get-ECSProcessDashboard
Get-ECSproperties                                           Get-ECSReplicationGroupLinksDashboard
Get-ECSReplicationGroupsDashboard                           Get-ECSStoragepool
Get-ECSStoragePoolsDashboard                                Get-ECSvdc
Get-ECSvdcs                                                 Get-ECSWebException
Get-ECSWhoAmI                                               Get-ECSyesno
Lock-ECSObjectuser                                          New-ECSbaseurl
New-ECSBucket                                               New-ECSManagementUser
New-ECSObjectUser                                           New-ECSStoragepool
Remove-ECSbaseurl                                           Remove-ECSBucket
Remove-ECSBucketMetadata                                    Remove-ECSBucketQuota
Remove-ECSBucketSearchMetadata                              Remove-ECSBucketTags
Remove-ECSDataStore                                         Remove-ECSManagementUser
Remove-ECSObjectUserSecretKeys                              Set-ECSbaseurl
Set-ECSBucketDefaultGroupPermissions                        Set-ECSBucketLock
Set-ECSBucketMetadata                                       Set-ECSBucketOwner
Set-ECSBucketQuota                                          Set-ECSBucketRetention
Set-ECSBucketStale                                          Set-ECSBucketTags
Set-ECScertificate                                          Set-ECSManagementUser
Set-ECSObjectUserSecretKeys                                 Set-ECSvdc
Unblock-ECSCerts