Skip to main content

workspace_loggers

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

Overview

Nameworkspace_loggers
TypeResource
Idazure.api_management.workspace_loggers

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
credentialstextfield from the properties object
is_bufferedtextfield from the properties object
loggerIdtextfield from the properties object
logger_typetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_idtextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
workspaceIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTloggerId, resourceGroupName, serviceName, subscriptionId, workspaceIdGets the details of the logger specified by its identifier.
list_by_workspaceSELECTresourceGroupName, serviceName, subscriptionId, workspaceIdLists a collection of loggers in the specified workspace.
create_or_updateINSERTloggerId, resourceGroupName, serviceName, subscriptionId, workspaceIdCreates or Updates a logger.
deleteDELETEIf-Match, loggerId, resourceGroupName, serviceName, subscriptionId, workspaceIdDeletes the specified logger.
updateUPDATEIf-Match, loggerId, resourceGroupName, serviceName, subscriptionId, workspaceIdUpdates an existing logger.

SELECT examples

Lists a collection of loggers in the specified workspace.

SELECT
description,
credentials,
is_buffered,
loggerId,
logger_type,
resourceGroupName,
resource_id,
serviceName,
subscriptionId,
workspaceId
FROM azure.api_management.vw_workspace_loggers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';

INSERT example

Use the following StackQL query and manifest file to create a new workspace_loggers resource.

/*+ create */
INSERT INTO azure.api_management.workspace_loggers (
loggerId,
resourceGroupName,
serviceName,
subscriptionId,
workspaceId,
properties
)
SELECT
'{{ loggerId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ workspaceId }}',
'{{ properties }}'
;

UPDATE example

Updates a workspace_loggers resource.

/*+ update */
UPDATE azure.api_management.workspace_loggers
SET
properties = '{{ properties }}'
WHERE
If-Match = '{{ If-Match }}'
AND loggerId = '{{ loggerId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';

DELETE example

Deletes the specified workspace_loggers resource.

/*+ delete */
DELETE FROM azure.api_management.workspace_loggers
WHERE If-Match = '{{ If-Match }}'
AND loggerId = '{{ loggerId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';