Language

CommvaultContentStoreExtensions.ActivateResourceAsync Method

Definition

Resolve the token to get the SaaS resource ID and activate the SaaS resource <item> Mocking. To mock this method, please mock ActivateResourceAsync(WaitUntil, ActivateSaaSParameterContent, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CommvaultContentStore.Models.SaaSResourceDetailsData>> ActivateResourceAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.WaitUntil waitUntil, Azure.ResourceManager.CommvaultContentStore.Models.ActivateSaaSParameterContent content, System.Threading.CancellationToken cancellationToken = default);
static member ActivateResourceAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.WaitUntil * Azure.ResourceManager.CommvaultContentStore.Models.ActivateSaaSParameterContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CommvaultContentStore.Models.SaaSResourceDetailsData>>
<Extension()>
Public Function ActivateResourceAsync (subscriptionResource As SubscriptionResource, waitUntil As WaitUntil, content As ActivateSaaSParameterContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of SaaSResourceDetailsData))

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

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.

content
ActivateSaaSParameterContent

The request body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource is null.

Applies to