Skip to main content

support_aerial_consent

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

Overview

Namesupport_aerial_consent
TypeResource
Idokta.org.support_aerial_consent

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
_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.
accountIdstringThe unique ID of the Aerial account
grantedBystringPrincipal ID of the user who granted the permission (example: 00u23ej02I2RLFxS5406)
grantedDatestringDate when grant was created (example: 2024-07-24T16:01:13.000Z)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_aerial_consentselectsubdomainRetrieves the Okta Aerial consent grant details for your Org. Returns a 404 Not Found error if no consent has been granted.
grant_aerial_consentinsertsubdomain, data__accountIdGrants an Okta Aerial account consent to manage your org. If the org is a child org, consent is taken from the parent org. Grant calls directly to the child are not allowed.
revoke_aerial_consentdeletesubdomainRevokes access of an Okta Aerial account to your Org. The revoke operation will fail if the org has already been added to an Aerial account.

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)

SELECT examples

Retrieves the Okta Aerial consent grant details for your Org. Returns a 404 Not Found error if no consent has been granted.

SELECT
_links,
accountId,
grantedBy,
grantedDate
FROM okta.org.support_aerial_consent
WHERE subdomain = '{{ subdomain }}' -- required
;

INSERT examples

Grants an Okta Aerial account consent to manage your org. If the org is a child org, consent is taken from the parent org. Grant calls directly to the child are not allowed.

INSERT INTO okta.org.support_aerial_consent (
data__accountId,
subdomain
)
SELECT
'{{ accountId }}' /* required */,
'{{ subdomain }}'
RETURNING
_links,
accountId,
grantedBy,
grantedDate
;

DELETE examples

Revokes access of an Okta Aerial account to your Org. The revoke operation will fail if the org has already been added to an Aerial account.

DELETE FROM okta.org.support_aerial_consent
WHERE subdomain = '{{ subdomain }}' --required
;