Skip to main content

shared_keys_shared_keys

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

Overview

Nameshared_keys_shared_keys
TypeResource
Idazure.log_analytics.shared_keys_shared_keys

Fields

The following fields are returned by SELECT queries:

OK response definition.

NameDatatypeDescription
primarySharedKeystringThe primary shared key of a workspace.
secondarySharedKeystringThe secondary shared key of a workspace.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, workspaceName, subscriptionIdGets the shared keys for a workspace.

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
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
workspaceNamestringThe name of the workspace.

SELECT examples

Gets the shared keys for a workspace.

SELECT
primarySharedKey,
secondarySharedKey
FROM azure.log_analytics.shared_keys_shared_keys
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND workspaceName = '{{ workspaceName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;