Skip to main content

client_application

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

Overview

Nameclient_application
TypeResource
Idazure.api_management.client_application

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.
descriptionstringClient application description.
displayNamestringClient application name. Required.
entraApplicationIdstringMicrosoft EntraID Application ID (Client ID). This is the value that is used to identify the application when it is requesting access tokens from Microsoft EntraID. This property is read-only and will be set by the system when the application is created.
entraTenantIdstringTenant ID is a unique identifier (a GUID) for an organization directory in Microsoft’s cloud. It’s used to identify tenants across Microsoft services.
ownerIdstringA resource identifier for the user who owns the application. Required.
statestringClient application state. The value derives the state of an application based on the statuses of its associated ClientApplicationProductLinks. Known values are: "pending", "active", "rejected", and "approved". (pending, active, rejected, approved)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, service_name, client_application_id, subscription_idGets the details of the client application specified by its identifier.
list_by_serviceselectresource_group_name, service_name, subscription_id$filter, $top, $skipLists a collection of client applications in the specified service instance.
create_or_updateinsertresource_group_name, service_name, client_application_id, subscription_idCreates or Updates a client application.
create_or_updatereplaceresource_group_name, service_name, client_application_id, subscription_idCreates or Updates a client application.
deletedeleteresource_group_name, service_name, client_application_id, subscription_idDelete client application.
get_entity_tagexecresource_group_name, service_name, client_application_id, subscription_idGets the entity state (Etag) version of the product specified by its identifier.
list_secretsexecresource_group_name, service_name, client_application_id, subscription_idRetrived client application secrets.

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
client_application_idstringClient Application identifier. Must be unique in the current API Management service instance. 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 ||-------------|-------------|-------------|-------------|| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith || description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | state | 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 the details of the client application specified by its identifier.

SELECT
id,
name,
description,
displayName,
entraApplicationId,
entraTenantId,
ownerId,
state,
systemData,
type
FROM azure.api_management.client_application
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND client_application_id = '{{ client_application_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or Updates a client application.

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

REPLACE examples

Creates or Updates a client application.

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

DELETE examples

Delete client application.

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

Lifecycle Methods

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

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