Udostępnij za pośrednictwem


SecurityCenterLocationCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}
  • Operation Id: Locations_Get
  • Default Api Version: 2015-06-01-preview
  • Resource: SecurityCenterLocationResource
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.SecurityCenter.SecurityCenterLocationResource>> GetIfExistsAsync (Azure.Core.AzureLocation ascLocation, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : Azure.Core.AzureLocation * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.SecurityCenter.SecurityCenterLocationResource>>
override this.GetIfExistsAsync : Azure.Core.AzureLocation * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.SecurityCenter.SecurityCenterLocationResource>>
Public Overridable Function GetIfExistsAsync (ascLocation As AzureLocation, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of SecurityCenterLocationResource))

Parameters

ascLocation
AzureLocation

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

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to