Merge "Introduce scope_types in server diagnostics"

This commit is contained in:
Zuul 2020-04-02 18:30:26 +00:00 committed by Gerrit Code Review
commit 4961ceec74
1 changed files with 6 additions and 5 deletions

View File

@ -23,15 +23,16 @@ BASE_POLICY_NAME = 'os_compute_api:os-server-diagnostics'
server_diagnostics_policies = [
policy.DocumentedRuleDefault(
BASE_POLICY_NAME,
base.RULE_ADMIN_API,
"Show the usage data for a server",
[
name=BASE_POLICY_NAME,
check_str=base.RULE_ADMIN_API,
description="Show the usage data for a server",
operations=[
{
'method': 'GET',
'path': '/servers/{server_id}/diagnostics'
}
]),
],
scope_types=['system', 'project']),
]