Udostępnij za pośrednictwem


BillingTransferDetailCollection.CreateOrUpdateAsync Method

Definition

Sends a request to a user in another billing account to transfer billing ownership of their subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transfers/{transferName}
  • Operation Id: Transfers_Initiate
  • Default Api Version: 2024-04-01
  • Resource: BillingTransferDetailResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Billing.BillingTransferDetailResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string transferName, Azure.ResourceManager.Billing.Models.BillingTransferDetailCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Billing.Models.BillingTransferDetailCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Billing.BillingTransferDetailResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Billing.Models.BillingTransferDetailCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Billing.BillingTransferDetailResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, transferName As String, content As BillingTransferDetailCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of BillingTransferDetailResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

transferName
String

The ID that uniquely identifies a transfer request.

content
BillingTransferDetailCreateOrUpdateContent

Request parameters that are provided to the initiate transfer operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

transferName is an empty string, and was expected to be non-empty.

transferName or content is null.

Applies to