SecurityCenterLocationCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

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

Parameters

ascLocation
String

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

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

ascLocation is null.

ascLocation is an empty string, and was expected to be non-empty.

Applies to