Compartilhar via


PartnerTransferDetailCollection.CreateOrUpdateAsync Method

Definition

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

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

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
PartnerTransferDetailCreateOrUpdateContent

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