次の方法で共有


BillingExtensions.GetBillingSubscription メソッド

定義

ID でサブスクリプションを取得します。 この操作は現在、契約の種類が Microsoft 顧客契約、Microsoft Partner Agreement、Microsoft Online Services Program の課金アカウントでサポートされています。

  • 要求パス/プロバイダー/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptions/{billingSubscriptionName}
  • 操作IdBillingSubscriptions_Get
public static Azure.Response<Azure.ResourceManager.Billing.BillingSubscriptionResource> GetBillingSubscription (this Azure.ResourceManager.Resources.TenantResource tenantResource, string billingAccountName, string billingSubscriptionName, System.Threading.CancellationToken cancellationToken = default);
static member GetBillingSubscription : Azure.ResourceManager.Resources.TenantResource * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Billing.BillingSubscriptionResource>
<Extension()>
Public Function GetBillingSubscription (tenantResource As TenantResource, billingAccountName As String, billingSubscriptionName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of BillingSubscriptionResource)

パラメーター

tenantResource
TenantResource

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

billingAccountName
String

課金アカウントを一意に識別する ID。

billingSubscriptionName
String

サブスクリプションを一意に識別する ID。

cancellationToken
CancellationToken

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

戻り値

例外

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

billingAccountName または billingSubscriptionName が null です。

適用対象