Skip to main content

governance_bundles

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

Overview​

Namegovernance_bundles
TypeResource
Idokta.iam.governance_bundles

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringGovernance bundle ID
namestringName of the governance bundle
_linksobjectLink relations available
descriptionstringDescription of the governance bundle
ornstringThe governance bundle resource, in ORN format
statusstringStatus of the governance bundle

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_governance_bundleselectbundleId, subdomainRetrieves a governance bundle for the Admin Console
list_governance_bundlesselectsubdomainafter, limitLists all governance bundles for the Admin Console in your org
create_governance_bundleinsertsubdomainCreates a governance bundle of entitlements for the Admin Console
replace_governance_bundlereplacebundleId, subdomainReplaces the properties of a governance bundle for the Admin Console
delete_governance_bundledeletebundleId, subdomainDeletes an Admin Console governance bundle

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
bundleIdstringThe id of a bundle
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.
limitintegerA limit on the number of objects to return

SELECT examples​

Retrieves a governance bundle for the Admin Console

SELECT
id,
name,
_links,
description,
orn,
status
FROM okta.iam.governance_bundles
WHERE bundleId = '{{ bundleId }}' -- required
AND subdomain = '{{ subdomain }}' -- required
;

INSERT examples​

Creates a governance bundle of entitlements for the Admin Console

INSERT INTO okta.iam.governance_bundles (
description,
entitlements,
name,
subdomain
)
SELECT
'{{ description }}',
'{{ entitlements }}',
'{{ name }}',
'{{ subdomain }}'
RETURNING
id,
name,
_links,
description,
orn,
status
;

REPLACE examples​

Replaces the properties of a governance bundle for the Admin Console

REPLACE okta.iam.governance_bundles
SET
description = '{{ description }}',
entitlements = '{{ entitlements }}',
name = '{{ name }}'
WHERE
bundleId = '{{ bundleId }}' --required
AND subdomain = '{{ subdomain }}' --required
RETURNING
id,
name,
_links,
description,
orn,
status;

DELETE examples​

Deletes an Admin Console governance bundle

DELETE FROM okta.iam.governance_bundles
WHERE bundleId = '{{ bundleId }}' --required
AND subdomain = '{{ subdomain }}' --required
;