Policy configuration

Policy configuration

Configuration

The following is an overview of all available policies in Cloudkitty. For a sample configuration file, refer to policy.yaml.

cloudkitty

context_is_admin
Default:role:admin

(no description provided)

admin_or_owner
Default:is_admin:True or tenant:%(tenant_id)s

(no description provided)

default
Default:<empty string>

(no description provided)

collector:list_mappings
Default:

role:admin

Operations:
  • LIST /v1/collector/mappings

Return the list of every services mapped to a collector.

collector:get_mapping
Default:

role:admin

Operations:
  • GET /v1/collector/mappings/{service_id}

Return a service to collector mapping.

collector:manage_mapping
Default:

role:admin

Operations:
  • POST /v1/collector/mappings
  • DELETE /v1/collector/mappings/{service_id}

Manage a service to collector mapping.

collector:get_state
Default:

role:admin

Operations:
  • GET /v1/collector/states/{collector_id}

Query the enable state of a collector.

collector:update_state
Default:

role:admin

Operations:
  • PUT /v1/collector/states/{collector_id}

Set the enable state of a collector.

info:list_services_info
Default:

<empty string>

Operations:
  • LIST /v1/info/services

List available services information in Cloudkitty.

info:get_service_info
Default:

<empty string>

Operations:
  • GET /v1/info/services/{metric_id}

Get specified service information.

info:list_metrics_info
Default:

<empty string>

Operations:
  • LIST /v1/info/metrics

List available metrics information in Cloudkitty.

info:get_metric_info
Default:

<empty string>

Operations:
  • GET /v1/info/metrics/{metric_id}

Get specified metric information.

info:get_config
Default:

<empty string>

Operations:
  • GET /v1/info/config

Get current configuration in Cloudkitty.

rating:list_modules
Default:

role:admin

Operations:
  • LIST /v1/rating/modules

Reture the list of loaded modules in Cloudkitty.

rating:get_module
Default:

role:admin

Operations:
  • GET /v1/rating/modules/{module_id}

Get specified module.

rating:update_module
Default:

role:admin

Operations:
  • PUT /v1/rating/modules/{module_id}

Change the state and priority of a module.

rating:quote
Default:

<empty string>

Operations:
  • POST /v1/rating/quote

Get an instant quote based on multiple resource descriptions.

rating:module_config
Default:

role:admin

Operations:
  • GET /v1/rating/reload_modules

Trigger a rating module list reload.

report:list_tenants
Default:

role:admin

Operations:
  • GET /v1/report/tenants

Return the list of rated tenants.

report:get_summary
Default:

rule:admin_or_owner

Operations:
  • GET /v1/report/summary

Return the summary to pay for a given period.

report:get_total
Default:

rule:admin_or_owner

Operations:
  • GET /v1/report/total

Return the amount to pay for a given period.

storage:list_data_frames
Default:

<empty string>

Operations:
  • GET /v1/storage/dataframes

Return a list of rated resources for a time period and a tenant.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.