sessions
Creates, updates, deletes, gets or lists a sessions
resource.
Overview
Name | sessions |
Type | Resource |
Id | okta.identity_sources.sessions |
Fields
The following fields are returned by SELECT
queries:
- list_identity_source_sessions
- get_identity_source_session
Name | Datatype | Description |
---|---|---|
id | string | The ID of the identity source session |
created | string (date-time) | The timestamp when the identity source session was created |
identitySourceId | string | The ID of the custom identity source for which the session is created |
importType | string | The type of import. All imports are INCREMENTAL imports. |
lastUpdated | string (date-time) | The timestamp when the identity source session was created |
status | string | The current status of the identity source session |
Name | Datatype | Description |
---|---|---|
id | string | The ID of the identity source session |
created | string (date-time) | The timestamp when the identity source session was created |
identitySourceId | string | The ID of the custom identity source for which the session is created |
importType | string | The type of import. All imports are INCREMENTAL imports. |
lastUpdated | string (date-time) | The timestamp when the identity source session was created |
status | string | The current status of the identity source session |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
list_identity_source_sessions | select | subdomain | Lists all identity source sessions for the given identity source instance | |
get_identity_source_session | select | subdomain | Retrieves an identity source session for a given identity source ID and session ID | |
create_identity_source_session | insert | subdomain | Creates an identity source session for the given identity source instance | |
delete_identity_source_session | delete | subdomain | Deletes an identity source session for a given identity source ID and session 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.
Name | Datatype | Description |
---|---|---|
subdomain | string | The 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
- list_identity_source_sessions
- get_identity_source_session
Lists all identity source sessions for the given identity source instance
SELECT
id,
created,
identitySourceId,
importType,
lastUpdated,
status
FROM okta.identity_sources.sessions
WHERE subdomain = '{{ subdomain }}' -- required;
Retrieves an identity source session for a given identity source ID and session ID
SELECT
id,
created,
identitySourceId,
importType,
lastUpdated,
status
FROM okta.identity_sources.sessions
WHERE subdomain = '{{ subdomain }}' -- required;
INSERT
examples
- create_identity_source_session
- Manifest
Creates an identity source session for the given identity source instance
INSERT INTO okta.identity_sources.sessions (
subdomain
)
SELECT
'{{ subdomain }}'
RETURNING
id,
created,
identitySourceId,
importType,
lastUpdated,
status
;
# Description fields are for documentation purposes
- name: sessions
props:
- name: subdomain
value: string
description: Required parameter for the sessions resource.
DELETE
examples
- delete_identity_source_session
Deletes an identity source session for a given identity source ID and session Id
DELETE FROM okta.identity_sources.sessions
WHERE subdomain = '{{ subdomain }}' --required;