SecurityInsightsExtensions.GetGeodataByIpAsync Method

Definition

Get geodata for a single IP address <item> Mocking. To mock this method, please mock GetGeodataByIpAsync(ResourceIdentifier, EnrichmentType, EnrichmentIPAddressContent, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityInsights.Models.EnrichmentIpGeodata>> GetGeodataByIpAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, Azure.ResourceManager.SecurityInsights.Models.EnrichmentType enrichmentType, Azure.ResourceManager.SecurityInsights.Models.EnrichmentIPAddressContent content, System.Threading.CancellationToken cancellationToken = default);
static member GetGeodataByIpAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * Azure.ResourceManager.SecurityInsights.Models.EnrichmentType * Azure.ResourceManager.SecurityInsights.Models.EnrichmentIPAddressContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityInsights.Models.EnrichmentIpGeodata>>
<Extension()>
Public Function GetGeodataByIpAsync (client As ArmClient, scope As ResourceIdentifier, enrichmentType As EnrichmentType, content As EnrichmentIPAddressContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of EnrichmentIpGeodata))

Parameters

client
ArmClient

The ArmClient the method will execute against.

scope
ResourceIdentifier

The scope that the resource will apply against.

enrichmentType
EnrichmentType

Enrichment type.

content
EnrichmentIPAddressContent

IP address (v4 or v6) to be enriched.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

client is null.

Applies to