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
_linksobjectSpecifies link relations (see Web Linking) available for the current status of an application using the JSON Hypertext Application Language specification. Use the LinksNext object for dynamic discovery of related resources and lifecycle operations.
resource-setsarray

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_resource_setsselectsubdomainafterLists all resource sets with pagination support
get_resource_setselectsubdomainRetrieves a resource set by resourceSetIdOrLabel
create_resource_setinsertsubdomain, data__description, data__label, data__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_setreplacesubdomainReplaces the label and description of a resource set
delete_resource_setdeletesubdomainDeletes 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
subdomainstringThe domain of your organization. This can be a provided subdomain of an official okta domain (okta.com, oktapreview.com, etc) or one of your configured custom domains. (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.

SELECT examples

Lists all resource sets with pagination support

SELECT
_links,
resource-sets
FROM okta.iam.role_resource_sets
WHERE subdomain = '{{ subdomain }}' -- required
AND after = '{{ after }}'
;

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 (
data__description,
data__label,
data__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

REPLACE okta.iam.role_resource_sets
SET
data__description = '{{ description }}',
data__label = '{{ label }}'
WHERE
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 subdomain = '{{ subdomain }}' --required
;