Language

CommvaultPlanCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Commvault.ContentStore/cloudAccounts/{cloudAccountName}/plans/{planName}.
  • Operation Id. : Plans_Get.
  • Default Api Version. : 2026-11-03.
public virtual Azure.NullableResponse<Azure.ResourceManager.CommvaultContentStore.CommvaultPlanResource> GetIfExists(string planName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.CommvaultContentStore.CommvaultPlanResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.CommvaultContentStore.CommvaultPlanResource>
Public Overridable Function GetIfExists (planName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of CommvaultPlanResource)

Parameters

planName
String

Name of the Plan resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

planName is null.

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

Applies to