SecurityCenterExtensions.GetSecurityTopologyAsync Method

Definition

Gets a specific topology component. <item> Mocking. To mock this method, please mock GetSecurityTopologyAsync(AzureLocation, String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityTopologyResource>> GetSecurityTopologyAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.Core.AzureLocation ascLocation, string topologyResourceName, System.Threading.CancellationToken cancellationToken = default);
static member GetSecurityTopologyAsync : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityTopologyResource>>
<Extension()>
Public Function GetSecurityTopologyAsync (resourceGroupResource As ResourceGroupResource, ascLocation As AzureLocation, topologyResourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SecurityTopologyResource))

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

ascLocation
AzureLocation

The location where ASC stores the data of the subscription. can be retrieved from Get locations.

topologyResourceName
String

Name of a topology resources collection.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource is null.

Applies to