Share via


MockableSubscriptionTenantResource.AcceptSubscriptionOwnership Method

Definition

Accept subscription ownership.

  • Request Path: /providers/Microsoft.Subscription/subscriptions/{subscriptionId}/acceptOwnership
  • Operation Id: Subscription_AcceptOwnership
public virtual Azure.ResourceManager.ArmOperation AcceptSubscriptionOwnership (Azure.WaitUntil waitUntil, string subscriptionId, Azure.ResourceManager.Subscription.Models.AcceptOwnershipContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member AcceptSubscriptionOwnership : Azure.WaitUntil * string * Azure.ResourceManager.Subscription.Models.AcceptOwnershipContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
override this.AcceptSubscriptionOwnership : Azure.WaitUntil * string * Azure.ResourceManager.Subscription.Models.AcceptOwnershipContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
Public Overridable Function AcceptSubscriptionOwnership (waitUntil As WaitUntil, subscriptionId As String, content As AcceptOwnershipContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation

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.

subscriptionId
String

Subscription Id.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

subscriptionId or content is null.

Applies to