CapacityReservationCollection.Exists メソッド

定義

リソースが Azure に存在するかどうかを確認します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}
  • 操作IdCapacityReservations_Get
public virtual Azure.Response<bool> Exists (string capacityReservationName, Azure.ResourceManager.Compute.Models.CapacityReservationInstanceViewType? expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member Exists : string * Nullable<Azure.ResourceManager.Compute.Models.CapacityReservationInstanceViewType> * System.Threading.CancellationToken -> Azure.Response<bool>
override this.Exists : string * Nullable<Azure.ResourceManager.Compute.Models.CapacityReservationInstanceViewType> * System.Threading.CancellationToken -> Azure.Response<bool>
Public Overridable Function Exists (capacityReservationName As String, Optional expand As Nullable(Of CapacityReservationInstanceViewType) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of Boolean)

パラメーター

capacityReservationName
String

容量予約の名前。

expand
Nullable<CapacityReservationInstanceViewType>

操作に適用する展開式。 'InstanceView' は、プラットフォームによって管理され、コントロール プレーン操作の外部で変更できる容量予約のランタイム プロパティのスナップショットを取得します。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

capacityReservationName は空の文字列であり、空でないと予想されていました。

capacityReservationName が null です。

適用対象