Interface Account.Service
- All Superinterfaces:
Maskable
,ResultLimitable
,Service
- Enclosing class:
- Account
@ApiService("SoftLayer_Network_Storage_Hub_Cleversafe_Account") public static interface Account.Service extends Service
This class provides an interface for the management of IBM Cloud Object Storage Accounts and Credentials.
-
Method Summary
Modifier and Type Method Description Account.ServiceAsync
asAsync()
Get an async version of this serviceList<Credential>
credentialCreate()
Create credentials for an IBM Cloud Object Storage AccountBoolean
credentialDelete(Credential credential)
Delete a credentialAccount
getAccount()
SoftLayer account to which an IBM Cloud Object Storage account belongs to.List<Account>
getAllObjects()
Item
getBillingItem()
An associated parent billing item which is active.List<Bucket>
getBuckets()
Get bucketsItem
getCancelledBillingItem()
An associated parent billing item which has been cancelled.Long
getCapacityUsage()
Returns the capacity usage for an IBM Cloud Object Storage account.List<String>
getCloudObjectStorageMetrics(String start, String end, String storageLocation, String storageClass, String metrics)
Makes a request to Cloud Object Storage metricsAPI service and when successful, returns an associative array with two elements:
if 200:
[, ]
if not 200:
[, ]
{ "start": "", "errors": [], "end": " ", "resource_type": "account", "warnings": [], "resources": [{"metrics" : [{"name": "retrieval", "value": " "}]}] }
Notes: 1) When no data is found for a particular triplet (resource_id, storage_location, storage_class) a JSON element is inserted to the warnings Array.Long
getCredentialLimit()
Returns credential limits for this IBM Cloud Object Storage account.List<Credential>
getCredentials()
Credentials used for generating an AWS signature.List<Endpoint>
getEndpoints(Long accountId)
Returns a collection of endpoint URLs available to this IBM Cloud Object Storage account.List<Endpoint>
getEndpointsWithRefetch(Long accountId, Boolean refetch)
Returns a collection of endpoint URLs available to this IBM Cloud Object Storage account.Object
getMetricTrackingObject()
Provides an interface to various metrics relating to the usage of an IBM Cloud Object Storage account.Account
getObject()
String
getUuid()
Unique identifier for an IBM Cloud Object Storage account.void
setMask(Account.Mask mask)
Account.Mask
withMask()
Use the existing mask on this service or create it if not presentAccount.Mask
withNewMask()
Overwrite the existing mask on this service with a new one and return itMethods inherited from interface com.softlayer.api.ResultLimitable
getLastResponseTotalItemCount, getResultLimit, setResultLimit
-
Method Details
-
asAsync
Account.ServiceAsync asAsync()Description copied from interface:Service
Get an async version of this service -
withNewMask
Account.Mask withNewMask()Description copied from interface:Maskable
Overwrite the existing mask on this service with a new one and return it- Specified by:
withNewMask
in interfaceMaskable
-
withMask
Account.Mask withMask()Description copied from interface:Maskable
Use the existing mask on this service or create it if not present -
setMask
-
credentialCreate
Create credentials for an IBM Cloud Object Storage Account -
credentialDelete
Delete a credential -
getAllObjects
-
getBuckets
Get buckets -
getCapacityUsage
Returns the capacity usage for an IBM Cloud Object Storage account. -
getCloudObjectStorageMetrics
@ApiMethod(instanceRequired=true) List<String> getCloudObjectStorageMetrics(String start, String end, String storageLocation, String storageClass, String metrics)Makes a request to Cloud Object Storage metricsAPI service and when successful, returns an associative array with two elements:
if 200:
[, ]
if not 200:
[, ]
{ "start": "", "errors": [], "end": " ", "resource_type": "account", "warnings": [], "resources": [{"metrics" : [{"name": "retrieval", "value": " "}]}] }
Notes: 1) When no data is found for a particular triplet (resource_id, storage_location, storage_class) a JSON element is inserted to the warnings Array. 2) If all queried triplets find data, only the resources Array will be populated, errors and warnings will remain empty.
-
getCredentialLimit
Returns credential limits for this IBM Cloud Object Storage account. -
getEndpoints
Returns a collection of endpoint URLs available to this IBM Cloud Object Storage account. -
getEndpointsWithRefetch
@ApiMethod(instanceRequired=true) List<Endpoint> getEndpointsWithRefetch(Long accountId, Boolean refetch)Returns a collection of endpoint URLs available to this IBM Cloud Object Storage account. -
getObject
-
getAccount
SoftLayer account to which an IBM Cloud Object Storage account belongs to. -
getBillingItem
An associated parent billing item which is active. Includes billing items which are scheduled to be cancelled in the future. -
getCancelledBillingItem
An associated parent billing item which has been cancelled. -
getCredentials
Credentials used for generating an AWS signature. Max of 2. -
getMetricTrackingObject
Provides an interface to various metrics relating to the usage of an IBM Cloud Object Storage account. -
getUuid
Unique identifier for an IBM Cloud Object Storage account.
-