MockableSecurityInsightsArmClient.GetGeodataByIpAsync Method

Definition

Get geodata for a single IP address

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/enrichment/{enrichmentType}/listGeodataByIp.
  • Operation Id. : SecurityInsights_ListGeodataByIp.
  • Default Api Version. : 2025-07-01-preview.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityInsights.Models.EnrichmentIpGeodata>> GetGeodataByIpAsync(Azure.Core.ResourceIdentifier scope, Azure.ResourceManager.SecurityInsights.Models.EnrichmentType enrichmentType, Azure.ResourceManager.SecurityInsights.Models.EnrichmentIPAddressContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member GetGeodataByIpAsync : 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>>
override this.GetGeodataByIpAsync : 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>>
Public Overridable Function GetGeodataByIpAsync (scope As ResourceIdentifier, enrichmentType As EnrichmentType, content As EnrichmentIPAddressContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of EnrichmentIpGeodata))

Parameters

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

scope or content is null.

Applies to