Resource Access Rule
Description
Defines how a user in a specific role can access a REST resource.
May be used by
Properties
Path Pattern (
pathPattern) Description
A pattern for matching the path of a resource. The matched path starts with the slash ('/') that separates the context path from the resource path.
Attributes
RegEx
Mandatory
Method Pattern (
methodPattern) Description
A pattern for matching the methods of a HTTP request. Multiple methods are specified as a comma-separated list. Use an asterisk ('*') to match any method.
Attributes
String
Mandatory
Suggested values
GET, GET,PUT,POST,PATCH,DELETE, *
Roles (
roles) Description
Defines the set of required roles needed to access the resource. Multiple roles are specified as comma-separated list. At least one of the roles is needed to be granted to take the action. No value means not allowed for anyone. 'NO RESTRICTION' allows access to everyone.
Attributes
String
Optional
Suggested values
NO RESTRICTION, useradmin, tokenadmin, helpdesk, sysadmin, superadmin, useradmin,tokenadmin, useradmin,helpdesk, tokenadmin,helpdesk, sysadmin,superadmin, useradmin,tokenadmin,helpdesk,sysadmin,superadmin
YAML Template (with default values)
type: ResourceAccessControllerAccessRule
id: ResourceAccessControllerAccessRule-xxxxxx
displayName:
comment:
properties:
methodPattern:
pathPattern:
roles: