Skip to main content

open_id_connect_provider

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

Overview

Nameopen_id_connect_provider
TypeResource
Idazure.api_management.open_id_connect_provider

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
clientIdstringClient ID of developer console which is the client application. Required.
clientSecretstringClient Secret of developer console which is the client application.
descriptionstringUser-friendly description of OpenID Connect Provider.
displayNamestringUser-friendly OpenID Connect Provider name. Required.
metadataEndpointstringMetadata endpoint URI. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
useInApiDocumentationbooleanIf true, the Open ID Connect provider will be used in the API documentation in the developer portal. False by default if no value is provided.
useInTestConsolebooleanIf true, the Open ID Connect provider may be used in the developer portal test console. True by default if no value is provided.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, service_name, opid, subscription_idGets specific OpenID Connect Provider without secrets.
list_by_serviceselectresource_group_name, service_name, subscription_id$filter, $top, $skipLists of all the OpenId Connect Providers.
create_or_updateinsertresource_group_name, service_name, opid, subscription_idCreates or updates the OpenID Connect Provider.
updateupdateresource_group_name, service_name, opid, subscription_idUpdates the specific OpenID Connect Provider.
create_or_updatereplaceresource_group_name, service_name, opid, subscription_idCreates or updates the OpenID Connect Provider.
deletedeleteresource_group_name, service_name, opid, subscription_idDeletes specific OpenID Connect Provider of the API Management service instance.
get_entity_tagexecresource_group_name, service_name, opid, subscription_idGets the entity state (Etag) version of the openIdConnectProvider specified by its identifier.
list_secretsexecresource_group_name, service_name, opid, subscription_idGets the client secret details of the OpenID Connect Provider.

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
opidstringIdentifier of the OpenID Connect Provider. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
service_namestringThe name of the API Management service. Required.
subscription_idstring
$filterstring| Field | Usage | Supported operators | Supported functions ||-------------|-------------|-------------|-------------|| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith || displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |. Default value is None.
$skipintegerNumber of records to skip. Default value is None.
$topintegerNumber of records to return. Default value is None.

SELECT examples

Gets specific OpenID Connect Provider without secrets.

SELECT
id,
name,
clientId,
clientSecret,
description,
displayName,
metadataEndpoint,
systemData,
type,
useInApiDocumentation,
useInTestConsole
FROM azure.api_management.open_id_connect_provider
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND opid = '{{ opid }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates the OpenID Connect Provider.

INSERT INTO azure.api_management.open_id_connect_provider (
properties,
resource_group_name,
service_name,
opid,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ service_name }}',
'{{ opid }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Updates the specific OpenID Connect Provider.

UPDATE azure.api_management.open_id_connect_provider
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND opid = '{{ opid }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

REPLACE examples

Creates or updates the OpenID Connect Provider.

REPLACE azure.api_management.open_id_connect_provider
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND opid = '{{ opid }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes specific OpenID Connect Provider of the API Management service instance.

DELETE FROM azure.api_management.open_id_connect_provider
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND opid = '{{ opid }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier.

EXEC azure.api_management.open_id_connect_provider.get_entity_tag 
@resource_group_name='{{ resource_group_name }}' --required,
@service_name='{{ service_name }}' --required,
@opid='{{ opid }}' --required,
@subscription_id='{{ subscription_id }}' --required
;