Skip to main content

workspace_diagnostics

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

Overview

Nameworkspace_diagnostics
TypeResource
Idazure.api_management.workspace_diagnostics

Fields

NameDatatypeDescription
always_logtextfield from the properties object
backendtextfield from the properties object
diagnosticIdtextfield from the properties object
frontendtextfield from the properties object
http_correlation_protocoltextfield from the properties object
log_client_iptextfield from the properties object
logger_idtextfield from the properties object
metricstextfield from the properties object
operation_name_formattextfield from the properties object
resourceGroupNametextfield from the properties object
samplingtextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
verbositytextfield from the properties object
workspaceIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdiagnosticId, resourceGroupName, serviceName, subscriptionId, workspaceIdGets the details of the Diagnostic specified by its identifier.
list_by_workspaceSELECTresourceGroupName, serviceName, subscriptionId, workspaceIdLists all diagnostics in the specified workspace.
create_or_updateINSERTdiagnosticId, resourceGroupName, serviceName, subscriptionId, workspaceIdCreates a new Diagnostic or updates an existing one.
deleteDELETEIf-Match, diagnosticId, resourceGroupName, serviceName, subscriptionId, workspaceIdDeletes the specified Diagnostic.
updateUPDATEIf-Match, diagnosticId, resourceGroupName, serviceName, subscriptionId, workspaceIdUpdates the details of the Diagnostic specified by its identifier.

SELECT examples

Lists all diagnostics in the specified workspace.

SELECT
always_log,
backend,
diagnosticId,
frontend,
http_correlation_protocol,
log_client_ip,
logger_id,
metrics,
operation_name_format,
resourceGroupName,
sampling,
serviceName,
subscriptionId,
verbosity,
workspaceId
FROM azure.api_management.vw_workspace_diagnostics
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_diagnostics resource.

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

UPDATE example

Updates a workspace_diagnostics resource.

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

DELETE example

Deletes the specified workspace_diagnostics resource.

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