ServiceEndpointPolicyCollection.GetIfExists メソッド

定義

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

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

パラメーター

serviceEndpointPolicyName
String

サービス エンドポイント ポリシーの名前。

expand
String

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

cancellationToken
CancellationToken

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

戻り値

例外

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

serviceEndpointPolicyName が null です。

適用対象