次の方法で共有


MonitorExtensions.GetMonitorWorkspaceResource Method

Definition

Overloads

GetMonitorWorkspaceResource(ArmClient, ResourceIdentifier)

Gets an object representing a MonitorWorkspaceResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a MonitorWorkspaceResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetMonitorWorkspaceResource(ResourceIdentifier) instead.

GetMonitorWorkspaceResource(ResourceGroupResource, String, CancellationToken)

Returns the specific Azure Monitor workspace

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/accounts/{azureMonitorWorkspaceName}
  • Operation Id: AzureMonitorWorkspaces_Get
  • Default Api Version: 2023-10-01-preview
  • Resource: MonitorWorkspaceResource

GetMonitorWorkspaceResource(ArmClient, ResourceIdentifier)

Source:
MonitorExtensions.cs
Source:
MonitorExtensions.cs

Gets an object representing a MonitorWorkspaceResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a MonitorWorkspaceResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetMonitorWorkspaceResource(ResourceIdentifier) instead.

public static Azure.ResourceManager.Monitor.MonitorWorkspaceResource GetMonitorWorkspaceResource (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id);
static member GetMonitorWorkspaceResource : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.Monitor.MonitorWorkspaceResource
<Extension()>
Public Function GetMonitorWorkspaceResource (client As ArmClient, id As ResourceIdentifier) As MonitorWorkspaceResource

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

id
ResourceIdentifier

The resource ID of the resource to get.

Returns

Returns a MonitorWorkspaceResource object.

Exceptions

client is null.

Applies to

GetMonitorWorkspaceResource(ResourceGroupResource, String, CancellationToken)

Source:
MonitorExtensions.cs
Source:
MonitorExtensions.cs

Returns the specific Azure Monitor workspace

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/accounts/{azureMonitorWorkspaceName}
  • Operation Id: AzureMonitorWorkspaces_Get
  • Default Api Version: 2023-10-01-preview
  • Resource: MonitorWorkspaceResource
public static Azure.Response<Azure.ResourceManager.Monitor.MonitorWorkspaceResource> GetMonitorWorkspaceResource (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string azureMonitorWorkspaceName, System.Threading.CancellationToken cancellationToken = default);
static member GetMonitorWorkspaceResource : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Monitor.MonitorWorkspaceResource>
<Extension()>
Public Function GetMonitorWorkspaceResource (resourceGroupResource As ResourceGroupResource, azureMonitorWorkspaceName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of MonitorWorkspaceResource)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

azureMonitorWorkspaceName
String

The name of the Azure Monitor workspace. The name is case insensitive.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource or azureMonitorWorkspaceName is null.

azureMonitorWorkspaceName is an empty string, and was expected to be non-empty.

Applies to