The cloudkitty client is the command-line interface (CLI) for the Rating service (cloudkitty) API and its extensions.
This chapter documents cloudkitty version 1.0.0
.
For help on a specific cloudkitty command, enter:
$ cloudkitty help COMMAND
usage: cloudkitty [--version] [-d] [-v] [--timeout TIMEOUT]
[--cloudkitty-url <CLOUDKITTY_URL>]
[--cloudkitty-api-version CLOUDKITTY_API_VERSION]
[--os-tenant-id <tenant-id>]
[--os-region-name <region-name>]
[--os-auth-token <auth-token>]
[--os-service-type <service-type>]
[--os-endpoint-type <endpoint-type>] [--os-cacert <cacert>]
[--os-insecure <insecure>] [--os-cert-file <cert-file>]
[--os-key-file <key-file>] [--os-cert <cert>]
[--os-key <key>] [--os-project-name <project-name>]
[--os-project-id <project-id>]
[--os-project-domain-id <project-domain-id>]
[--os-project-domain-name <project-domain-name>]
[--os-user-id <user-id>]
[--os-user-domain-id <user-domain-id>]
[--os-user-domain-name <user-domain-name>]
[--os-endpoint <endpoint>] [--os-auth-system <auth-system>]
[--os-username <username>] [--os-password <password>]
[--os-tenant-name <tenant-name>] [--os-token <token>]
[--os-auth-url <auth-url>]
<subcommand> ...
Subcommands:
info-config-get
info-service-get
module-disable
module-enable
module-list
module-set-priority
collector-mapping-create
collector-mapping-delete
collector-mapping-get
collector-mapping-list
collector-state-disable
collector-state-enable
collector-state-get
report-tenant-list
summary-get
total-get
storage-dataframe-list
hashmap-field-create
hashmap-field-delete
hashmap-field-list
hashmap-group-create
hashmap-group-delete
hashmap-group-list
hashmap-mapping-create
hashmap-mapping-delete
hashmap-mapping-list
hashmap-mapping-update
hashmap-service-create
hashmap-service-delete
hashmap-service-list
hashmap-threshold-create
hashmap-threshold-delete
hashmap-threshold-get
hashmap-threshold-group
hashmap-threshold-list
hashmap-threshold-update
pyscripts-script-create
pyscripts-script-delete
pyscripts-script-get
pyscripts-script-get-data
pyscripts-script-list
pyscripts-script-update
bash-completion
help
--version
-d, --debug
env[CLOUDKITTYCLIENT_DEBUG]
.-v, --verbose
--timeout TIMEOUT
--cloudkitty-url <CLOUDKITTY_URL>
env[CLOUDKITTY_URL]
.--cloudkitty-api-version CLOUDKITTY_API_VERSION
env[CLOUDKITTY_API_VERSION]
or 1.--os-tenant-id <tenant-id>
env[OS_TENANT_ID]
.--os-region-name <region-name>
env[OS_REGION_NAME]
.--os-auth-token <auth-token>
env[OS_AUTH_TOKEN]
.--os-service-type <service-type>
env[OS_SERVICE_TYPE]
.--os-endpoint-type <endpoint-type>
env[OS_ENDPOINT_TYPE]
.--os-cacert <cacert>
env[OS_CACERT]
.--os-insecure <insecure>
env[OS_INSECURE]
.--os-cert-file <cert-file>
env[OS_CERT_FILE]
.--os-key-file <key-file>
env[OS_KEY_FILE]
.--os-cert <cert>
env[OS_CERT]
.--os-key <key>
env[OS_KEY]
.--os-project-name <project-name>
env[OS_PROJECT_NAME]
.--os-project-id <project-id>
env[OS_PROJECT_ID]
.--os-project-domain-id <project-domain-id>
env[OS_PROJECT_DOMAIN_ID]
.--os-project-domain-name <project-domain-name>
env[OS_PROJECT_DOMAIN_NAME]
.--os-user-id <user-id>
env[OS_USER_ID]
.--os-user-domain-id <user-domain-id>
env[OS_USER_DOMAIN_ID]
.--os-user-domain-name <user-domain-name>
env[OS_USER_DOMAIN_NAME]
.--os-endpoint <endpoint>
env[OS_ENDPOINT]
.--os-auth-system <auth-system>
env[OS_AUTH_SYSTEM]
.--os-username <username>
env[OS_USERNAME]
.--os-password <password>
env[OS_PASSWORD]
.--os-tenant-name <tenant-name>
env[OS_TENANT_NAME]
.--os-token <token>
env[OS_TOKEN]
.--os-auth-url <auth-url>
env[OS_AUTH_URL]
.usage: cloudkitty collector-mapping-create -c COLLECTOR -s SERVICE
Create collector mapping.
Optional arguments:
-c COLLECTOR, --collector COLLECTOR
-s SERVICE, --service SERVICE
usage: cloudkitty collector-mapping-delete -s SERVICE
Delete collector mapping.
Optional arguments:
-s SERVICE, --service SERVICE
usage: cloudkitty collector-mapping-get -s SERVICE
Show collector mapping detail.
Optional arguments:
-s SERVICE, --service SERVICE
usage: cloudkitty collector-mapping-list [-c COLLECTOR]
List collector mapping.
Optional arguments:
-c COLLECTOR, --collector COLLECTOR
usage: cloudkitty collector-state-disable -n NAME
Disable collector state.
Optional arguments:
-n NAME, --name NAME
usage: cloudkitty collector-state-enable -n NAME
Enable collector state.
Optional arguments:
-n NAME, --name NAME
usage: cloudkitty collector-state-get -n NAME
Show collector state.
Optional arguments:
-n NAME, --name NAME
usage: cloudkitty hashmap-field-create -n NAME -s SERVICE_ID
Create a field.
Optional arguments:
-n NAME, --name NAME
-s SERVICE_ID, --service-id SERVICE_ID
usage: cloudkitty hashmap-field-delete -f FIELD_ID
Delete a field.
Optional arguments:
-f FIELD_ID, --field-id FIELD_ID
usage: cloudkitty hashmap-field-list -s SERVICE_ID
List fields.
Optional arguments:
-s SERVICE_ID, --service-id SERVICE_ID
usage: cloudkitty hashmap-group-create -n NAME
Create a group.
Optional arguments:
-n NAME, --name NAME
usage: cloudkitty hashmap-group-delete -g GROUP_ID [-r RECURSIVE]
Delete a group.
Optional arguments:
-g GROUP_ID, --group-id GROUP_ID
-r RECURSIVE, --recursive RECURSIVE
usage: cloudkitty hashmap-mapping-create [-s SERVICE_ID] [-f FIELD_ID] -c COST
[-v VALUE] [-t TYPE] [-g GROUP_ID]
[-p PROJECT_ID]
Create a mapping.
Optional arguments:
-s SERVICE_ID, --service-id SERVICE_ID
-f FIELD_ID, --field-id FIELD_ID
-c COST, --cost COST
-v VALUE, --value VALUE
-t TYPE, --type TYPE
-g GROUP_ID, --group-id GROUP_ID
-p PROJECT_ID, --project-id PROJECT_ID
usage: cloudkitty hashmap-mapping-delete -m MAPPING_ID
Delete a mapping.
Optional arguments:
-m MAPPING_ID, --mapping-id MAPPING_ID
usage: cloudkitty hashmap-mapping-list [-s SERVICE_ID] [-f FIELD_ID]
[-g GROUP_ID] [-p PROJECT_ID]
List mappings.
Optional arguments:
-s SERVICE_ID, --service-id SERVICE_ID
-f FIELD_ID, --field-id FIELD_ID
-g GROUP_ID, --group-id GROUP_ID
-p PROJECT_ID, --project-id PROJECT_ID
usage: cloudkitty hashmap-mapping-update -m MAPPING_ID [-c COST] [-v VALUE]
[-t TYPE] [-g GROUP_ID]
[-p PROJECT_ID]
Update a mapping.
Optional arguments:
-m MAPPING_ID, --mapping-id MAPPING_ID
-c COST, --cost COST
-v VALUE, --value VALUE
-t TYPE, --type TYPE
-g GROUP_ID, --group-id GROUP_ID
-p PROJECT_ID, --project-id PROJECT_ID
usage: cloudkitty hashmap-service-create -n NAME
Create a service.
Optional arguments:
-n NAME, --name NAME
usage: cloudkitty hashmap-service-delete -s SERVICE_ID
Delete a service.
Optional arguments:
-s SERVICE_ID, --service-id SERVICE_ID
usage: cloudkitty hashmap-threshold-create [-s SERVICE_ID] [-f FIELD_ID] -l
LEVEL -c COST [-t TYPE]
[-g GROUP_ID] [-p PROJECT_ID]
Create a mapping.
Optional arguments:
-s SERVICE_ID, --service-id SERVICE_ID
-f FIELD_ID, --field-id FIELD_ID
-l LEVEL, --level LEVEL
-c COST, --cost COST
-t TYPE, --type TYPE
-g GROUP_ID, --group-id GROUP_ID
-p PROJECT_ID, --project-id PROJECT_ID
usage: cloudkitty hashmap-threshold-delete -i THRESHOLD_ID
Delete a threshold.
Optional arguments:
-i THRESHOLD_ID, --threshold-id THRESHOLD_ID
usage: cloudkitty hashmap-threshold-get -i THRESHOLD_ID
Get a threshold.
Optional arguments:
-i THRESHOLD_ID, --threshold-id THRESHOLD_ID
usage: cloudkitty hashmap-threshold-group -i THRESHOLD_ID
Get a threshold group.
Optional arguments:
-i THRESHOLD_ID, --threshold-id THRESHOLD_ID
usage: cloudkitty hashmap-threshold-list [-s SERVICE_ID] [-f FIELD_ID]
[-g GROUP_ID]
[--no-group {True,False}]
[-p PROJECT_ID]
List thresholds.
Optional arguments:
-s SERVICE_ID, --service-id SERVICE_ID
-f FIELD_ID, --field-id FIELD_ID
-g GROUP_ID, --group-id GROUP_ID
--no-group {True,False}
-p PROJECT_ID, --project-id PROJECT_ID
usage: cloudkitty hashmap-threshold-update -i THRESHOLD_ID [-l LEVEL]
[-c COST] [-t TYPE] [-g GROUP_ID]
[-p PROJECT_ID]
Update a threshold.
Optional arguments:
-i THRESHOLD_ID, --threshold-id THRESHOLD_ID
-l LEVEL, --level LEVEL
-c COST, --cost COST
-t TYPE, --type TYPE
-g GROUP_ID, --group-id GROUP_ID
-p PROJECT_ID, --project-id PROJECT_ID
usage: cloudkitty info-service-get [-n NAME]
Get service info.
Optional arguments:
-n NAME, --name NAME
usage: cloudkitty module-disable -n NAME
Disable a module.
Optional arguments:
-n NAME, --name NAME
usage: cloudkitty module-enable -n NAME
Enable a module.
Optional arguments:
-n NAME, --name NAME
usage: cloudkitty module-set-priority -n NAME -p PRIORITY
Set module priority.
Optional arguments:
-n NAME, --name NAME
-p PRIORITY, --priority PRIORITY
usage: cloudkitty pyscripts-script-create -n NAME [-f FILE]
Create a script.
Optional arguments:
-n NAME, --name NAME
-f FILE, --file FILE
usage: cloudkitty pyscripts-script-delete -s SCRIPT_ID
Delete a script.
Optional arguments:
-s SCRIPT_ID, --script-id SCRIPT_ID
usage: cloudkitty pyscripts-script-get -s SCRIPT_ID
Get script.
Optional arguments:
-s SCRIPT_ID, --script-id SCRIPT_ID
usage: cloudkitty pyscripts-script-get-data -s SCRIPT_ID
Get script data.
Optional arguments:
-s SCRIPT_ID, --script-id SCRIPT_ID
usage: cloudkitty pyscripts-script-list [-d SHOW_DATA]
List scripts.
Optional arguments:
-d SHOW_DATA, --show-data SHOW_DATA
usage: cloudkitty pyscripts-script-update -s SCRIPT_ID -f FILE
Update a mapping.
Optional arguments:
-s SCRIPT_ID, --script-id SCRIPT_ID
-f FILE, --file FILE
usage: cloudkitty storage-dataframe-list [-b BEGIN] [-e END] [-t TENANT]
[-r RESOURCE_TYPE]
List dataframes.
Optional arguments:
-b BEGIN, --begin BEGIN
-e END, --end END
-t TENANT, --tenant TENANT
-r RESOURCE_TYPE, --resource-type RESOURCE_TYPE
usage: cloudkitty summary-get [-t SUMMARY_TENANT_ID] [-b BEGIN] [-e END]
[-s SERVICE] [-g GROUPBY] [-a]
Get summary report.
Optional arguments:
-t SUMMARY_TENANT_ID, --tenant-id SUMMARY_TENANT_ID
-b BEGIN, --begin BEGIN
-e END, --end END
-s SERVICE, --service SERVICE
-g GROUPBY, --groupby GROUPBY
-a, --all-tenants
usage: cloudkitty total-get [-t TOTAL_TENANT_ID] [-b BEGIN] [-e END]
[-s SERVICE] [-a]
Get total reports.
Optional arguments:
-t TOTAL_TENANT_ID, --tenant-id TOTAL_TENANT_ID
-b BEGIN, --begin BEGIN
-e END, --end END
-s SERVICE, --service SERVICE
-a, --all-tenants
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.