Skip to main content

payment_methods

Creates, updates, deletes, gets or lists a payment_methods resource.

Overview

Namepayment_methods
TypeResource
Idazure.billing.payment_methods

Fields

NameDatatypeDescription
account_holder_nametextfield from the properties object
billingAccountNametextfield from the properties object
billingProfileNametextfield from the properties object
display_nametextfield from the properties object
expirationtextfield from the properties object
familytextfield from the properties object
last_four_digitstextfield from the properties object
logostextfield from the properties object
paymentMethodNametextfield from the properties object
payment_methodtextfield from the properties object
payment_method_idtextfield from the properties object
payment_method_typetextfield from the properties object
statustextfield from the properties object
tagstextDictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /

Methods

NameAccessible byRequired ParamsDescription
get_by_billing_accountSELECTbillingAccountName, paymentMethodNameGets a payment method available for a billing account. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
get_by_billing_profileSELECTbillingAccountName, billingProfileName, paymentMethodNameGets a payment method linked with a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
get_by_userSELECTpaymentMethodNameGets a payment method owned by the caller.
list_by_billing_accountSELECTbillingAccountNameLists 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.
list_by_billing_profileSELECTbillingAccountName, billingProfileNameLists payment methods attached to a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
list_by_userSELECTLists the payment methods owned by the caller.
delete_by_userDELETEpaymentMethodNameDeletes a payment method owned by the caller.

SELECT examples

Lists the payment methods owned by the caller.

SELECT
account_holder_name,
billingAccountName,
billingProfileName,
display_name,
expiration,
family,
last_four_digits,
logos,
paymentMethodName,
payment_method,
payment_method_id,
payment_method_type,
status,
tags
FROM azure.billing.vw_payment_methods
;

DELETE example

Deletes the specified payment_methods resource.

/*+ delete */
DELETE FROM azure.billing.payment_methods
WHERE paymentMethodName = '{{ paymentMethodName }}';