Skip to main content

role_resource_sets

Creates, updates, deletes, gets or lists a role_resource_sets resource.

Overview​

Namerole_resource_sets
TypeResource
Idokta.iam.role_resource_sets

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringUnique ID for the resource set object
_linksobjectSpecifies link relations (see Web Linking) available using the JSON Hypertext Application Language specification. This object is used for dynamic discovery of related resources and lifecycle operations.
createdstring (date-time)Timestamp when the role was created
descriptionstringDescription of the resource set
labelstringUnique label for the resource set
lastUpdatedstring (date-time)Timestamp when the role was last updated

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_resource_setselectresourceSetIdOrLabel, subdomainRetrieves a resource set by resourceSetIdOrLabel
list_resource_setsselectsubdomainafterLists all resource sets with pagination support
create_resource_setinsertsubdomain, description, label, resourcesCreates a new resource set. See Supported resources.

> Note: The maximum number of resources allowed in a resource set object is 1000. Resources are identified by either an Okta Resource Name (ORN) or by a REST URL format. See Okta Resource Name.
replace_resource_setreplaceresourceSetIdOrLabel, subdomainReplaces the label and description of a resource set. See Supported resources.
delete_resource_setdeleteresourceSetIdOrLabel, subdomainDeletes a resource set by resourceSetIdOrLabel

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resourceSetIdOrLabelstringid or label of the resource set
subdomainstring(default: my-org)
afterstringThe cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the Link response header. See Pagination and Link header.

SELECT examples​

Retrieves a resource set by resourceSetIdOrLabel

SELECT
id,
_links,
created,
description,
label,
lastUpdated
FROM okta.iam.role_resource_sets
WHERE resourceSetIdOrLabel = '{{ resourceSetIdOrLabel }}' -- required
AND subdomain = '{{ subdomain }}' -- required
;

INSERT examples​

Creates a new resource set. See Supported resources.

> Note: The maximum number of resources allowed in a resource set object is 1000. Resources are identified by either an Okta Resource Name (ORN) or by a REST URL format. See Okta Resource Name.

INSERT INTO okta.iam.role_resource_sets (
description,
label,
resources,
subdomain
)
SELECT
'{{ description }}' /* required */,
'{{ label }}' /* required */,
'{{ resources }}' /* required */,
'{{ subdomain }}'
RETURNING
id,
_links,
created,
description,
label,
lastUpdated
;

REPLACE examples​

Replaces the label and description of a resource set. See Supported resources.

REPLACE okta.iam.role_resource_sets
SET
description = '{{ description }}',
label = '{{ label }}'
WHERE
resourceSetIdOrLabel = '{{ resourceSetIdOrLabel }}' --required
AND subdomain = '{{ subdomain }}' --required
RETURNING
id,
_links,
created,
description,
label,
lastUpdated;

DELETE examples​

Deletes a resource set by resourceSetIdOrLabel

DELETE FROM okta.iam.role_resource_sets
WHERE resourceSetIdOrLabel = '{{ resourceSetIdOrLabel }}' --required
AND subdomain = '{{ subdomain }}' --required
;