次の方法で共有


NetworkExtensions.GetPrivateLinkService メソッド

定義

リソース グループ別に指定されたプライベート リンク サービスを取得します。

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

パラメーター

resourceGroupResource
ResourceGroupResource

ResourceGroupResourceメソッドが実行されるインスタンス。

serviceName
String

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

expand
String

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

cancellationToken
CancellationToken

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

戻り値

例外

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

serviceName が null です。

適用対象