SecuritySolutionCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/securitySolutions/{securitySolutionName}.
  • Operation Id. : SecuritySolutions_Get.
  • Default Api Version. : 2020-01-01.
public virtual Azure.NullableResponse<Azure.ResourceManager.SecurityCenter.SecuritySolutionResource> GetIfExists(Azure.Core.AzureLocation ascLocation, string securitySolutionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.SecurityCenter.SecuritySolutionResource>
override this.GetIfExists : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.SecurityCenter.SecuritySolutionResource>
Public Overridable Function GetIfExists (ascLocation As AzureLocation, securitySolutionName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of SecuritySolutionResource)

Parameters

ascLocation
AzureLocation

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

securitySolutionName
String

Name of security solution.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

securitySolutionName is null.

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

Applies to