Class AccessRule

java.lang.Object
com.strongdm.api.AccessRule

public class AccessRule extends Object
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 Details

    • AccessRule

      public AccessRule()
  • Method Details

    • getTags

      public Map<String,String> getTags()
    • setTags

      public void setTags(Map<String,String> in)
      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

      public List<String> getIds()
    • getId

      public String getId(int index)
    • getIdsCount

      public int getIdsCount()
    • setId

      public void setId(int index, String v)
    • removeId

      public void removeId(int index)
    • addId

      public void addId(String v)
    • addAllIds

      public void addAllIds(Collection<String> v)
    • setIds

      public void setIds(Collection<String> in)
      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

      public String getType()
    • setType

      public void setType(String type)
      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