sdk/python/pulumi_azure_nextgen/operationalinsights/v20150320/list_workspace_keys.py
def list_workspace_keys(resource_group_name: Optional[str] = None,
                        workspace_name: Optional[str] = None,
                        opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListWorkspaceKeysResult:
    """
    The shared keys for a workspace.


    :param str resource_group_name: The Resource Group name.
    :param str workspace_name: The Log Analytics Workspace name.
    """
    __args__ = dict()
    __args__['resourceGroupName'] = resource_group_name
    __args__['workspaceName'] = workspace_name
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('azure-nextgen:operationalinsights/v20150320:listWorkspaceKeys', __args__, opts=opts, typ=ListWorkspaceKeysResult).value

    return AwaitableListWorkspaceKeysResult(
        primary_shared_key=__ret__.primary_shared_key,
        secondary_shared_key=__ret__.secondary_shared_key)

    The shared keys for a workspace.


    :param str resource_group_name: The Resource Group name.
    :param str workspace_name: The Log Analytics Workspace name.
    
The shared keys for a workspace.
The shared keys for a workspace .
def list_workspace_keys(resource_group_name: Optional[str] = None,
                        workspace_name: Optional[str] = None,
                        opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListWorkspaceKeysResult:
    __args__ = dict()
    __args__['resourceGroupName'] = resource_group_name
    __args__['workspaceName'] = workspace_name
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('azure-nextgen:operationalinsights/v20150320:listWorkspaceKeys', __args__, opts=opts, typ=ListWorkspaceKeysResult).value
    return AwaitableListWorkspaceKeysResult(
        primary_shared_key=__ret__.primary_shared_key,
        secondary_shared_key=__ret__.secondary_shared_key)
def list_workspace_keys ( resource_group_name : Optional [ str ] = None , workspace_name : Optional [ str ] = None , opts : Optional [ pulumi . InvokeOptions ] = None ) -> AwaitableListWorkspaceKeysResult : __args__ = dict ( ) __args__ [ 'resourceGroupName' ] = resource_group_name __args__ [ 'workspaceName' ] = workspace_name if opts is None : opts = pulumi . InvokeOptions ( ) if opts . version is None : opts . version = _utilities . get_version ( ) __ret__ = pulumi . runtime . invoke ( 'azure-nextgen:operationalinsights/v20150320:listWorkspaceKeys' , __args__ , opts = opts , typ = ListWorkspaceKeysResult ) . value return AwaitableListWorkspaceKeysResult ( primary_shared_key = __ret__ . primary_shared_key , secondary_shared_key = __ret__ . secondary_shared_key )
The shared keys for a workspace.
The shared keys for a workspace .
"""
    The shared keys for a workspace.


    :param str resource_group_name: The Resource Group name.
    :param str workspace_name: The Log Analytics Workspace name.
    """
resource_group_name
Optional[str]
The Resource Group name.
The Resource Group name .
workspace_name
Optional[str]
The Log Analytics Workspace name.
The Log Analytics Workspace name .
opts
Optional[pulumi.InvokeOptions]