Merge "Add description to policies in suspend_server.py"
This commit is contained in:
@@ -22,12 +22,26 @@ POLICY_ROOT = 'os_compute_api:os-suspend-server:%s'
|
||||
|
||||
|
||||
suspend_server_policies = [
|
||||
policy.RuleDefault(
|
||||
name=POLICY_ROOT % 'resume',
|
||||
check_str=base.RULE_ADMIN_OR_OWNER),
|
||||
policy.RuleDefault(
|
||||
name=POLICY_ROOT % 'suspend',
|
||||
check_str=base.RULE_ADMIN_OR_OWNER),
|
||||
base.create_rule_default(
|
||||
POLICY_ROOT % 'resume',
|
||||
base.RULE_ADMIN_OR_OWNER,
|
||||
"Resume suspended server",
|
||||
[
|
||||
{
|
||||
'method': 'POST',
|
||||
'path': '/servers/{server_id}/action (resume)'
|
||||
}
|
||||
]),
|
||||
base.create_rule_default(
|
||||
POLICY_ROOT % 'suspend',
|
||||
base.RULE_ADMIN_OR_OWNER,
|
||||
"Suspend server",
|
||||
[
|
||||
{
|
||||
'method': 'POST',
|
||||
'path': '/servers/{server_id}/action (suspend)'
|
||||
}
|
||||
]),
|
||||
policy.RuleDefault(
|
||||
name=POLICY_ROOT % 'discoverable',
|
||||
check_str=base.RULE_ANY),
|
||||
|
||||
Reference in New Issue
Block a user