Skip to main content

connections

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

Overview​

Nameconnections
TypeResource
Idokta.apps.connections

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.
authSchemestringA token is used to authenticate with the app. This property is only returned for the TOKEN authentication scheme. (TOKEN)
baseUrlstringBase URL
profileobject
statusstringProvisioning connection status (DISABLED, ENABLED, UNKNOWN) (default: DISABLED)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_default_provisioning_connection_for_applicationselectappId, subdomainRetrieves the default provisioning connection for an app
update_default_provisioning_connection_for_applicationupdateappId, subdomain, profileactivateUpdates the default provisioning connection for an app
activate_default_provisioning_connection_for_applicationexecappId, subdomainActivates the default provisioning connection for an app
deactivate_default_provisioning_connection_for_applicationexecappId, subdomainDeactivates the default provisioning connection for an app
verify_provisioning_connection_for_applicationexecappName, appId, subdomaincode, stateVerifies the OAuth 2.0-based connection as part of the OAuth 2.0 consent flow. The validation of the consent flow is the last step of the provisioning setup for an OAuth 2.0-based connection.
Currently, this operation only supports office365,google, zoomus, and slack apps.

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
appIdstringApplication ID
appNamestring
subdomainstring(default: my-org)
activatestringActivates the provisioning connection
codestring
statestring

SELECT examples​

Retrieves the default provisioning connection for an app

SELECT
_links,
authScheme,
baseUrl,
profile,
status
FROM okta.apps.connections
WHERE appId = '{{ appId }}' -- required
AND subdomain = '{{ subdomain }}' -- required
;

UPDATE examples​

Updates the default provisioning connection for an app

UPDATE okta.apps.connections
SET
baseUrl = '{{ baseUrl }}',
profile = '{{ profile }}'
WHERE
appId = '{{ appId }}' --required
AND subdomain = '{{ subdomain }}' --required
AND profile = '{{ profile }}' --required
AND activate = '{{ activate}}'
RETURNING
_links,
authScheme,
baseUrl,
profile,
status;

Lifecycle Methods​

Activates the default provisioning connection for an app

EXEC okta.apps.connections.activate_default_provisioning_connection_for_application
@appId='{{ appId }}' --required,
@subdomain='{{ subdomain }}' --required
;