Interface SharedKeysOperationsClient
public interface SharedKeysOperationsClient
An instance of this class provides access to all the operations defined in SharedKeysOperationsClient.
-
Method Summary
Modifier and TypeMethodDescriptiongetSharedKeys
(String resourceGroupName, String workspaceName) Gets the shared keys for a workspace.com.azure.core.http.rest.Response<SharedKeysInner>
getSharedKeysWithResponse
(String resourceGroupName, String workspaceName, com.azure.core.util.Context context) Gets the shared keys for a workspace.regenerate
(String resourceGroupName, String workspaceName) Regenerates the shared keys for a Log Analytics Workspace.com.azure.core.http.rest.Response<SharedKeysInner>
regenerateWithResponse
(String resourceGroupName, String workspaceName, com.azure.core.util.Context context) Regenerates the shared keys for a Log Analytics Workspace.
-
Method Details
-
regenerate
Regenerates the shared keys for a Log Analytics Workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.- Returns:
- the shared keys for a workspace.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
regenerateWithResponse
com.azure.core.http.rest.Response<SharedKeysInner> regenerateWithResponse(String resourceGroupName, String workspaceName, com.azure.core.util.Context context) Regenerates the shared keys for a Log Analytics Workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.context
- The context to associate with this operation.- Returns:
- the shared keys for a workspace along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.