Skip to main content

cross_app_access_connections

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

Overview

Namecross_app_access_connections
TypeResource
Idokta.apps.cross_app_access_connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringUnique identifier for the connection (example: cwofxqCAJWWGELFTYASJ)
createdstring (date-time)The ISO 8601 formatted date and time when the connection was created (example: 2024-10-15T10:30:00.000Z)
lastUpdatedstring (date-time)The ISO 8601 formatted date and time when the connection was last updated (example: 2024-10-15T14:20:00.000Z)
requestingAppInstanceIdstringID of the requesting app instance (example: 0oafxqCAJWWGELFTYASJ)
resourceAppInstanceIdstringID of the resource app instance (example: 0oafxqCBJWWGELFTYASK)
statusstringIndicates if the Cross App Access connection is active or inactive (example: ACTIVE)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_all_cross_app_access_connectionsselectsubdomainafter, limitRetrieves inbound and outbound Cross App Access connections associated with an app
get_cross_app_access_connectionselectsubdomainRetrieves the Cross App Access connection with the specified ID
create_cross_app_access_connectioninsertsubdomainCreates a Cross App Access connection
update_cross_app_access_connectionupdatesubdomain, data__statusUpdates the Cross App Access connection with the specified ID
delete_cross_app_access_connectiondeletesubdomainDeletes a Cross App Access connection with the specified ID

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)
afterstringSpecifies the pagination cursor for the next page of connection results
limitinteger (int32)Specifies the number of results to return per page. The values: * -1: Return all results (up to system maximum) * 0: Return an empty result set * Positive integer: Return up to that many results (capped at system maximum)

SELECT examples

Retrieves inbound and outbound Cross App Access connections associated with an app

SELECT
id,
created,
lastUpdated,
requestingAppInstanceId,
resourceAppInstanceId,
status
FROM okta.apps.cross_app_access_connections
WHERE subdomain = '{{ subdomain }}' -- required
AND after = '{{ after }}'
AND limit = '{{ limit }}';

INSERT examples

Creates a Cross App Access connection

INSERT INTO okta.apps.cross_app_access_connections (
data__requestingAppInstanceId,
data__resourceAppInstanceId,
data__status,
subdomain
)
SELECT
'{{ requestingAppInstanceId }}',
'{{ resourceAppInstanceId }}',
'{{ status }}',
'{{ subdomain }}'
RETURNING
id,
created,
lastUpdated,
requestingAppInstanceId,
resourceAppInstanceId,
status
;

UPDATE examples

Updates the Cross App Access connection with the specified ID

UPDATE okta.apps.cross_app_access_connections
SET
data__status = '{{ status }}'
WHERE
subdomain = '{{ subdomain }}' --required
AND data__status = '{{ status }}' --required
RETURNING
id,
created,
lastUpdated,
requestingAppInstanceId,
resourceAppInstanceId,
status;

DELETE examples

Deletes a Cross App Access connection with the specified ID

DELETE FROM okta.apps.cross_app_access_connections
WHERE subdomain = '{{ subdomain }}' --required;