Skip to main content

identity_providers

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

Overview

Nameidentity_providers
TypeResource
Idcloudflare.zero_trust.identity_providers

Fields

The following fields are returned by SELECT queries:

Get an Access identity provider response

NameDatatypeDescription
idstringUUID. (example: f174e90a-fafe-4643-bbbc-4a0ed4fc8415)
namestringThe name of the identity provider, shown to users on the login page. (example: Widget Corps IDP)
configobjectThe configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our developer documentation.
scim_configobjectThe configuration settings for enabling a System for Cross-Domain Identity Management (SCIM) with the identity provider.
typestringThe type of identity provider. To determine the value for a specific provider, refer to our developer documentation. (onetimepin, azureAD, saml, centrify, facebook, github, google-apps, google, linkedin, oidc, okta, onelogin, pingone, yandex) (example: onetimepin)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_accountselectidentity_provider_id, account_idFetches a configured identity provider.
get_by_zoneselectidentity_provider_id, zone_idFetches a configured identity provider.
list_by_accountselectaccount_idscim_enabled, page, per_pageLists all configured identity providers.
list_by_zoneselectzone_idscim_enabled, page, per_pageLists all configured identity providers.
create_by_accountinsertaccount_id, config, name, typeAdds a new identity provider to Access.
create_by_zoneinsertzone_id, config, name, typeAdds a new identity provider to Access.
update_by_accountreplaceidentity_provider_id, account_id, config, name, typeUpdates a configured identity provider.
update_by_zonereplaceidentity_provider_id, zone_id, config, name, typeUpdates a configured identity provider.
delete_by_accountdeleteidentity_provider_id, account_idDeletes an identity provider from Access.
delete_by_zonedeleteidentity_provider_id, zone_idDeletes an identity provider from Access.

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
account_idstringThe Cloudflare account ID.
identity_provider_idstring
zone_idstringThe Cloudflare zone ID.
pageinteger
per_pageinteger
scim_enabledstring

SELECT examples

Fetches a configured identity provider.

SELECT
id,
name,
config,
scim_config,
type
FROM cloudflare.zero_trust.identity_providers
WHERE identity_provider_id = '{{ identity_provider_id }}' -- required
AND account_id = '{{ account_id }}' -- required
;

INSERT examples

Adds a new identity provider to Access.

INSERT INTO cloudflare.zero_trust.identity_providers (
config,
name,
scim_config,
type,
account_id
)
SELECT
'{{ config }}' /* required */,
'{{ name }}' /* required */,
'{{ scim_config }}',
'{{ type }}' /* required */,
'{{ account_id }}'
RETURNING
errors,
messages,
result,
success
;

REPLACE examples

Updates a configured identity provider.

REPLACE cloudflare.zero_trust.identity_providers
SET
config = '{{ config }}',
name = '{{ name }}',
scim_config = '{{ scim_config }}',
type = '{{ type }}'
WHERE
identity_provider_id = '{{ identity_provider_id }}' --required
AND account_id = '{{ account_id }}' --required
AND config = '{{ config }}' --required
AND name = '{{ name }}' --required
AND type = '{{ type }}' --required
RETURNING
errors,
messages,
result,
success;

DELETE examples

Deletes an identity provider from Access.

DELETE FROM cloudflare.zero_trust.identity_providers
WHERE identity_provider_id = '{{ identity_provider_id }}' --required
AND account_id = '{{ account_id }}' --required
;