
Add an administrative operation for getting the pool information for the runtime, so that the admin user can check the capacity of the runtime and scale up or scale down the pool accordingly. Change-Id: Iec4536396c1c31a9e545b09c5f46b46dc6d79ae6 Story: 2002969 Task: 22975
28 lines
1021 B
Plaintext
28 lines
1021 B
Plaintext
{
|
|
"context_is_admin": "role:admin or is_admin:1",
|
|
"owner" : "project_id:%(project_id)s",
|
|
"admin_or_owner": "rule:context_is_admin or rule:owner",
|
|
"default": "rule:admin_or_owner",
|
|
|
|
"runtime:create": "rule:context_is_admin",
|
|
"runtime:update": "rule:context_is_admin",
|
|
"runtime:delete": "rule:context_is_admin",
|
|
"runtime_pool:get_all": "rule:context_is_admin",
|
|
|
|
"function:get_all:all_projects": "rule:context_is_admin",
|
|
"function_worker:get_all": "rule:context_is_admin",
|
|
"function:scale_up": "rule:context_is_admin",
|
|
"function:scale_down": "rule:context_is_admin",
|
|
"function:detach": "rule:context_is_admin",
|
|
|
|
"function_version:scale_up": "rule:context_is_admin",
|
|
"function_version:scale_down": "rule:context_is_admin",
|
|
"function_version:detach": "rule:context_is_admin",
|
|
|
|
"execution:get_all:all_projects": "rule:context_is_admin",
|
|
|
|
"webhook:get_all:all_projects": "rule:context_is_admin",
|
|
|
|
"job:get_all:all_projects": "rule:context_is_admin",
|
|
}
|