次の方法で共有


PrivateEndpointCollection.GetIfExistsAsync メソッド

定義

サービスからこのリソースの詳細の取得を試みます。

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}
  • 操作IdPrivateEndpoints_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.PrivateEndpointResource>> GetIfExistsAsync (string privateEndpointName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.PrivateEndpointResource>>
override this.GetIfExistsAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.PrivateEndpointResource>>
Public Overridable Function GetIfExistsAsync (privateEndpointName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of PrivateEndpointResource))

パラメーター

privateEndpointName
String

プライベート エンドポイントの名前。

expand
String

参照先のリソースを展開します。

cancellationToken
CancellationToken

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

戻り値

例外

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

privateEndpointName が null です。

適用対象