Udostępnij za pośrednictwem


TerraformExtensions.ExportTerraformAsync Method

Definition

Exports the Terraform configuration of the specified resource(s).

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AzureTerraform/exportTerraform
  • Operation Id: Terraform_ExportTerraform
  • Default Api Version: 2023-07-01-preview
public static System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Terraform.Models.TerraformOperationStatus>> ExportTerraformAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.WaitUntil waitUntil, Azure.ResourceManager.Terraform.Models.CommonExportProperties body, System.Threading.CancellationToken cancellationToken = default);
static member ExportTerraformAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.WaitUntil * Azure.ResourceManager.Terraform.Models.CommonExportProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Terraform.Models.TerraformOperationStatus>>
<Extension()>
Public Function ExportTerraformAsync (subscriptionResource As SubscriptionResource, waitUntil As WaitUntil, body As CommonExportProperties, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of TerraformOperationStatus))

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance 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.

body
CommonExportProperties

The request body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource or body is null.

Applies to