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_adminDefault: role:admin(no description provided)
admin_or_ownerDefault: is_admin:True or tenant:%(tenant_id)s(no description provided)
defaultDefault: <empty string> (no description provided)
collector:list_mappingsDefault: role:adminOperations: - LIST
/v1/collector/mappings
Return the list of every services mapped to a collector.
- LIST
collector:get_mappingDefault: role:adminOperations: - GET
/v1/collector/mappings/{service_id}
Return a service to collector mapping.
- GET
collector:manage_mappingDefault: role:adminOperations: - POST
/v1/collector/mappings - DELETE
/v1/collector/mappings/{service_id}
Manage a service to collector mapping.
- POST
collector:get_stateDefault: role:adminOperations: - GET
/v1/collector/states/{collector_id}
Query the enable state of a collector.
- GET
collector:update_stateDefault: role:adminOperations: - PUT
/v1/collector/states/{collector_id}
Set the enable state of a collector.
- PUT
info:list_services_infoDefault: <empty string>
Operations: - LIST
/v1/info/services
List available services information in Cloudkitty.
- LIST
info:get_service_infoDefault: <empty string>
Operations: - GET
/v1/info/services/{metric_id}
Get specified service information.
- GET
info:list_metrics_infoDefault: <empty string>
Operations: - LIST
/v1/info/metrics
List available metrics information in Cloudkitty.
- LIST
info:get_metric_infoDefault: <empty string>
Operations: - GET
/v1/info/metrics/{metric_id}
Get specified metric information.
- GET
info:get_configDefault: <empty string>
Operations: - GET
/v1/info/config
Get current configuration in Cloudkitty.
- GET
rating:list_modulesDefault: role:adminOperations: - LIST
/v1/rating/modules
Reture the list of loaded modules in Cloudkitty.
- LIST
rating:get_moduleDefault: role:adminOperations: - GET
/v1/rating/modules/{module_id}
Get specified module.
- GET
rating:update_moduleDefault: role:adminOperations: - PUT
/v1/rating/modules/{module_id}
Change the state and priority of a module.
- PUT
rating:quoteDefault: <empty string>
Operations: - POST
/v1/rating/quote
Get an instant quote based on multiple resource descriptions.
- POST
rating:module_configDefault: role:adminOperations: - GET
/v1/rating/reload_modules
Trigger a rating module list reload.
- GET
report:list_tenantsDefault: role:adminOperations: - GET
/v1/report/tenants
Return the list of rated tenants.
- GET
report:get_summaryDefault: rule:admin_or_ownerOperations: - GET
/v1/report/summary
Return the summary to pay for a given period.
- GET
report:get_totalDefault: rule:admin_or_ownerOperations: - GET
/v1/report/total
Return the amount to pay for a given period.
- GET
storage:list_data_framesDefault: rule:admin_or_ownerOperations: - GET
/v1/storage/dataframes
Return a list of rated resources for a time period and a tenant.
- GET
dataframes:addDefault: role:adminOperations: - POST
/v2/dataframes
Add one or several DataFrames
- POST
dataframes:getDefault: rule:admin_or_ownerOperations: - GET
/v2/dataframes
Get DataFrames
- GET
scope:get_stateDefault: role:adminOperations: - GET
/v2/scope
Get the state of one or several scopes
- GET
scope:reset_stateDefault: role:adminOperations: - PUT
/v2/scope
Reset the state of one or several scopes
- PUT
summary:get_summaryDefault: rule:admin_or_ownerOperations: - GET
/v2/summary
Get a rating summary
- GET