SecurityInsightsExtensions.GetGeodataByIp Method

Definition

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

public static Azure.Response<Azure.ResourceManager.SecurityInsights.Models.EnrichmentIpGeodata> GetGeodataByIp(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 GetGeodataByIp : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * Azure.ResourceManager.SecurityInsights.Models.EnrichmentType * Azure.ResourceManager.SecurityInsights.Models.EnrichmentIPAddressContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityInsights.Models.EnrichmentIpGeodata>
<Extension()>
Public Function GetGeodataByIp (client As ArmClient, scope As ResourceIdentifier, enrichmentType As EnrichmentType, content As EnrichmentIPAddressContent, Optional cancellationToken As CancellationToken = Nothing) As 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