1. Packages
  2. Azure Native
  3. API Docs
  4. operationalinsights
  5. getWorkspaceSharedKeys
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native.operationalinsights.getWorkspaceSharedKeys

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Gets the shared keys for a workspace.

Uses Azure REST API version 2015-11-01-preview.

Using getWorkspaceSharedKeys

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getWorkspaceSharedKeys(args: GetWorkspaceSharedKeysArgs, opts?: InvokeOptions): Promise<GetWorkspaceSharedKeysResult>
function getWorkspaceSharedKeysOutput(args: GetWorkspaceSharedKeysOutputArgs, opts?: InvokeOptions): Output<GetWorkspaceSharedKeysResult>
Copy
def get_workspace_shared_keys(resource_group_name: Optional[str] = None,
                              workspace_name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetWorkspaceSharedKeysResult
def get_workspace_shared_keys_output(resource_group_name: Optional[pulumi.Input[str]] = None,
                              workspace_name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetWorkspaceSharedKeysResult]
Copy
func GetWorkspaceSharedKeys(ctx *Context, args *GetWorkspaceSharedKeysArgs, opts ...InvokeOption) (*GetWorkspaceSharedKeysResult, error)
func GetWorkspaceSharedKeysOutput(ctx *Context, args *GetWorkspaceSharedKeysOutputArgs, opts ...InvokeOption) GetWorkspaceSharedKeysResultOutput
Copy

> Note: This function is named GetWorkspaceSharedKeys in the Go SDK.

public static class GetWorkspaceSharedKeys 
{
    public static Task<GetWorkspaceSharedKeysResult> InvokeAsync(GetWorkspaceSharedKeysArgs args, InvokeOptions? opts = null)
    public static Output<GetWorkspaceSharedKeysResult> Invoke(GetWorkspaceSharedKeysInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetWorkspaceSharedKeysResult> getWorkspaceSharedKeys(GetWorkspaceSharedKeysArgs args, InvokeOptions options)
public static Output<GetWorkspaceSharedKeysResult> getWorkspaceSharedKeys(GetWorkspaceSharedKeysArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:operationalinsights:getWorkspaceSharedKeys
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group to get. The name is case insensitive.
WorkspaceName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Log Analytics Workspace.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group to get. The name is case insensitive.
WorkspaceName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Log Analytics Workspace.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group to get. The name is case insensitive.
workspaceName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Log Analytics Workspace.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group to get. The name is case insensitive.
workspaceName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Log Analytics Workspace.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group to get. The name is case insensitive.
workspace_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the Log Analytics Workspace.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group to get. The name is case insensitive.
workspaceName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Log Analytics Workspace.

getWorkspaceSharedKeys Result

The following output properties are available:

PrimarySharedKey string
The primary shared key of a workspace.
SecondarySharedKey string
The secondary shared key of a workspace.
PrimarySharedKey string
The primary shared key of a workspace.
SecondarySharedKey string
The secondary shared key of a workspace.
primarySharedKey String
The primary shared key of a workspace.
secondarySharedKey String
The secondary shared key of a workspace.
primarySharedKey string
The primary shared key of a workspace.
secondarySharedKey string
The secondary shared key of a workspace.
primary_shared_key str
The primary shared key of a workspace.
secondary_shared_key str
The secondary shared key of a workspace.
primarySharedKey String
The primary shared key of a workspace.
secondarySharedKey String
The secondary shared key of a workspace.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi