SubscriptionExtensions.GetBillingAccountPolicyAsync メソッド

定義

課金アカウント ポリシーを取得します。

  • 要求パス/プロバイダー/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Subscription/policies/default
  • 操作IdBillingAccount_GetPolicy
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Subscription.BillingAccountPolicyResource>> GetBillingAccountPolicyAsync (this Azure.ResourceManager.Resources.TenantResource tenantResource, string billingAccountId, System.Threading.CancellationToken cancellationToken = default);
static member GetBillingAccountPolicyAsync : Azure.ResourceManager.Resources.TenantResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Subscription.BillingAccountPolicyResource>>
<Extension()>
Public Function GetBillingAccountPolicyAsync (tenantResource As TenantResource, billingAccountId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BillingAccountPolicyResource))

パラメーター

tenantResource
TenantResource

TenantResourceメソッドが実行するインスタンス。

billingAccountId
String

課金アカウント ID。

cancellationToken
CancellationToken

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

戻り値

例外

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

billingAccountId が null です。

適用対象