SecurityInsightsPackageCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/contentPackages/{packageId}
  • Operation Id: ContentPackages_Get
  • Default Api Version: 2024-01-01-preview
  • Resource: SecurityInsightsPackageResource
public virtual Azure.NullableResponse<Azure.ResourceManager.SecurityInsights.SecurityInsightsPackageResource> GetIfExists (string packageId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.SecurityInsights.SecurityInsightsPackageResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.SecurityInsights.SecurityInsightsPackageResource>
Public Overridable Function GetIfExists (packageId As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of SecurityInsightsPackageResource)

Parameters

packageId
String

package Id.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

packageId is null.

Applies to