The
resource_restrictions functions are currently in BETA. The API may change without notice. A one-time warning is emitted on first use.PROJECT_RESTRICT permission can perform these actions. Currently only PROJECT resources are supported.
List Resource Restrictions
List active resource restrictions the authenticated user is permitted to manage. Returns a paginated list ofResourceRestriction objects.
Parameters
resourceType("PROJECT", optional): Filter to a single resource type.limit(number, optional): Maximum number of restrictions to return.cursor(string, optional): Pagination cursor from a previous response.client(ArizeClient, optional): An ArizeClient instance to use for the request.
Restrict a Resource
Mark a resource as restricted. This operation is idempotent. Returns aResourceRestriction.
Parameters
resourceId(string, required): The global ID of the resource to restrict. Must encode a project.client(ArizeClient, optional): An ArizeClient instance to use for the request.
Unrestrict a Resource
Remove restriction from a resource. Returnsvoid.
Parameters
resourceId(string, required): The global ID of the resource to unrestrict.client(ArizeClient, optional): An ArizeClient instance to use for the request.