Package com.strongdm.api
Class AccessRule
java.lang.Object
com.strongdm.api.AccessRule
An AccessRule grants access to a set of Resources. There are two kinds of
AccessRules:
- Dynamic: a rule which identifies Resources based on their type or tags
- Static: a rule which contains an explicit list of Resource IDs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
clearIds()
getId
(int index) getIds()
int
getTags()
getType()
void
removeId
(int index) void
void
setIds
(Collection<String> in) Sets a list of Resource IDs granted by this AccessRule.void
Specifies a list of key/value pairs.void
Specifies a Resource type.
-
Constructor Details
-
AccessRule
public AccessRule()
-
-
Method Details
-
getTags
-
setTags
Specifies a list of key/value pairs. You can set this field by itself to grant access to all Resources which have all the given tags. You can also use it in conjunction with the Type field to further narrow down the scope of Resources granted. -
getIds
-
getId
-
getIdsCount
public int getIdsCount() -
setId
-
removeId
public void removeId(int index) -
addId
-
addAllIds
-
setIds
Sets a list of Resource IDs granted by this AccessRule. If this field is set, the rule is a static access rule. No other fields can be set on a static access rule. -
clearIds
public void clearIds() -
getType
-
setType
Specifies a Resource type. You can set this field by itself to grant access to all Resources of a certain type. You can also use it in conjunction with the Tags field to further narrow down the scope of Resources granted. See the following link for a list of possible values for this field: https://www.strongdm.com/docs/automation/getting-started/filters#h-potentialresourcetypevalues
-