ExpansionJobCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/expansionJobs/{expansionJobName}
  • Operation Id: expansionJobs_Get
  • Default Api Version: 2026-01-01
  • Resource: ExpansionJobResource
public virtual Azure.NullableResponse<Azure.ResourceManager.StorageCache.ExpansionJobResource> GetIfExists(string expansionJobName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.StorageCache.ExpansionJobResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.StorageCache.ExpansionJobResource>
Public Overridable Function GetIfExists (expansionJobName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ExpansionJobResource)

Parameters

expansionJobName
String

Name for the expansion job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

expansionJobName is null.

Applies to