BillingAccountPaymentMethodCollection.GetAll(CancellationToken) Method

Definition

Lists the payment methods available for a billing account. Along with the payment methods owned by the caller, these payment methods can be attached to a billing profile to make payments. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/paymentMethods
  • Operation Id: PaymentMethods_ListByBillingAccount
  • Default Api Version: 2024-04-01
  • Resource: BillingAccountPaymentMethodResource
public virtual Azure.Pageable<Azure.ResourceManager.Billing.BillingAccountPaymentMethodResource> GetAll (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Billing.BillingAccountPaymentMethodResource>
override this.GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Billing.BillingAccountPaymentMethodResource>
Public Overridable Function GetAll (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of BillingAccountPaymentMethodResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of BillingAccountPaymentMethodResource that may take multiple service requests to iterate over.

Applies to