Skip to main content

instances

Creates, updates, deletes, gets or lists an instances resource.

Overview

Nameinstances
TypeResource
Idokta.integrations.instances

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the API Service Integration instance (example: 0oa72lrepvp4WqEET1d9)
namestringThe name of the API service integration that corresponds with the type property. This is the full name of the API service integration listed in the Okta Integration Network (OIN) catalog. (example: My App Cloud Identity Engine)
_linksobjectSpecifies link relations (see Web Linking) available for the current status of an application using the JSON Hypertext Application Language specification. This object is used for dynamic discovery of related resources and lifecycle operations.
configGuideUrlstringThe URL to the API service integration configuration guide (example: https://{docDomain}/my-app-cie/configuration-guide)
createdAtstringTimestamp when the API Service Integration instance was created (example: 2023-02-21T20:08:24.000Z)
createdBystringThe user ID of the API Service Integration instance creator (example: 00uu3u0ujW1P6AfZC2d5)
grantedScopesarrayThe list of Okta management scopes granted to the API Service Integration instance. See [Okta management OAuth 2.0 scopes]https://developer.okta.com/docs/api/oauth2/#okta-admin-management.
propertiesobjectApp instance properties
typestringThe type of the API service integration. This string is an underscore-concatenated, lowercased API service integration name. For example, my_api_log_integration. (example: my_app_cie)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_api_service_integration_instancesselectsubdomainafterLists all API Service Integration instances with a pagination option
get_api_service_integration_instanceselectsubdomainRetrieves an API Service Integration instance by id
create_api_service_integration_instanceinsertsubdomain, data__type, data__grantedScopesCreates and authorizes an API Service Integration instance
delete_api_service_integration_instancedeletesubdomainDeletes an API Service Integration instance by id. This operation also revokes access to scopes that were previously granted to this API Service Integration instance.

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)
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.

SELECT examples

Lists all API Service Integration instances with a pagination option

SELECT
id,
name,
_links,
configGuideUrl,
createdAt,
createdBy,
grantedScopes,
properties,
type
FROM okta.integrations.instances
WHERE subdomain = '{{ subdomain }}' -- required
AND after = '{{ after }}'
;

INSERT examples

Creates and authorizes an API Service Integration instance

INSERT INTO okta.integrations.instances (
data__grantedScopes,
data__properties,
data__type,
subdomain
)
SELECT
'{{ grantedScopes }}' /* required */,
'{{ properties }}',
'{{ type }}' /* required */,
'{{ subdomain }}'
RETURNING
id,
name,
_links,
clientSecret,
configGuideUrl,
createdAt,
createdBy,
grantedScopes,
properties,
type
;

DELETE examples

Deletes an API Service Integration instance by id. This operation also revokes access to scopes that were previously granted to this API Service Integration instance.

DELETE FROM okta.integrations.instances
WHERE subdomain = '{{ subdomain }}' --required
;