PrivateLinkServiceCollection.GetIfExists メソッド

定義

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

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}
  • 操作IdPrivateLinkServices_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.Network.PrivateLinkServiceResource> GetIfExists (string serviceName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Network.PrivateLinkServiceResource>
override this.GetIfExists : string * string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Network.PrivateLinkServiceResource>
Public Overridable Function GetIfExists (serviceName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of PrivateLinkServiceResource)

パラメーター

serviceName
String

プライベート リンク サービスの名前。

expand
String

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

cancellationToken
CancellationToken

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

戻り値

例外

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

serviceName が null です。

適用対象