NetAppBucketCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName}
  • Operation Id: Buckets_Get
  • Default Api Version: 2026-01-01
  • Resource: NetAppBucketResource
public virtual Azure.NullableResponse<Azure.ResourceManager.NetApp.NetAppBucketResource> GetIfExists(string bucketName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.NetApp.NetAppBucketResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.NetApp.NetAppBucketResource>
Public Overridable Function GetIfExists (bucketName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of NetAppBucketResource)

Parameters

bucketName
String

The name of the bucket.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

bucketName is null.

Applies to