ServiceEndpointPolicyCollection.GetIfExistsAsync メソッド

定義

サービスからこのリソースの詳細を取得しようとします。

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

パラメーター

serviceEndpointPolicyName
String

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

expand
String

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

cancellationToken
CancellationToken

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

戻り値

例外

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

serviceEndpointPolicyName が null です。

適用対象