Share via


PureStorageReservationCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PureStorage.Block/reservations/{reservationName}
  • Operation Id: Reservation_Get
  • Default Api Version: 2024-11-01
  • Resource: PureStorageReservationResource
public virtual Azure.NullableResponse<Azure.ResourceManager.PureStorageBlock.PureStorageReservationResource> GetIfExists(string reservationName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.PureStorageBlock.PureStorageReservationResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.PureStorageBlock.PureStorageReservationResource>
Public Overridable Function GetIfExists (reservationName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of PureStorageReservationResource)

Parameters

reservationName
String

Name of the reservation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

reservationName is null.

Applies to