lscloudaccountusage

Use the lscloudaccountusage command to list usage information about configured cloud storage accounts.

Syntax

Read syntax diagramSkip visual syntax diagram lscloudaccountusage -nohdr-delimdelimitercloud_account_idcloud_account_name

Parameters

-nohdr
(Optional) By default, headings are displayed for each column of data in a concise style view, and for each item of data in a detailed style view. The -nohdr parameter suppresses the display of these headings.
Note: If there is no data to be displayed, headings are not displayed.
-delim delimiter
(Optional) By default in a concise view, all columns of data are space-separated. The width of each column is set to the maximum width of each item of data. In a detailed view, each item of data has its own row, and if the headers are displayed, the data is separated from the header by a space. The -delim parameter overrides this behavior. Valid input for the -delim parameter is a 1-byte character. If you enter -delim : on the command line, the colon character (:) separates all items of data in a concise view; for example, the spacing of columns does not occur. In a detailed view, the data is separated from its header by the specified delimiter.
cloud_account_id | cloud_account_name
(Optional) Specifies the cloud account to list details for. The ID value must be a number and the name value must be an alphanumeric string.

Description

This command displays usage information about configured cloud storage accounts. The information involves chargeable resource usage.

This table provides the attribute values that can be displayed as output view data.
Table 1. lscloudaccountusage output
Attribute Description
id Indicates the ID for the cloud account. The value must be a number 0 - 4294967295.
name Indicates the name for the cloud account. The value must be an alphanumeric string.
date Indicates the date for the system data that is displayed. Each row shows usage of one day. The value must be in YYYYMMDD format. This value is computed relative to the current configured system date. The date in the very first entry must equate to the current date.

If you manually change the system date, the changes are not reflected in the output for the date field until midnight (the time 00:00). If you change your system date got to accommodate time zone changes, it is reflected in the output instantly. After midnight, any subsequent entry is for the next 24-hour period.

upload_data_mb Indicates the uploaded data for one day. The value must be a number 0 - 18446744073709551615.
download_data_mb Indicates the downloaded data for one day. The value must be a number 0 - 18446744073709551615.
storage_consumed_gb Indicates the volume of data that is stored in this cloud account. The value must be a number 0 - 18446744073709551615.
Note: For a detailed view, there are 180 rows. Each row has information corresponding to one full day, and every field reflects activity for that day except for the storage_consumed_gb, which is cumulative. The most recent entry reflects the current day.

An invocation example

lscloudaccountusage

The resulting output:

id    name              date           upload_data_mb  download_data_mb     storage_consumed_gb              
0     cloudaccount0     20151023         194560         900                 6700
1     cloudaccount1     20151023         204800         1500                10700

An invocation example

lscloudaccountusage 0

The resulting output:


id                  name                        date             upload_data_mb  download_data_mb    storage_consumed_gb  
0                   cloudaccount0               20151023         194560          900                 6687
0                   cloudaccount0               20151022         3584000         150                 6495
0                   cloudaccount0               20151021         1024            17152               3010