outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale
outscale.getSnapshotExportTask
Explore with Pulumi AI
Provides information about a snapshot export task.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const snapshotExportTask01 = outscale.getSnapshotExportTask({
    filters: [{
        name: "task_ids",
        values: ["snap-export-12345678"],
    }],
});
import pulumi
import pulumi_outscale as outscale
snapshot_export_task01 = outscale.get_snapshot_export_task(filters=[{
    "name": "task_ids",
    "values": ["snap-export-12345678"],
}])
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.LookupSnapshotExportTask(ctx, &outscale.LookupSnapshotExportTaskArgs{
			Filters: []outscale.GetSnapshotExportTaskFilter{
				{
					Name: "task_ids",
					Values: []string{
						"snap-export-12345678",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() => 
{
    var snapshotExportTask01 = Outscale.GetSnapshotExportTask.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetSnapshotExportTaskFilterInputArgs
            {
                Name = "task_ids",
                Values = new[]
                {
                    "snap-export-12345678",
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetSnapshotExportTaskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var snapshotExportTask01 = OutscaleFunctions.getSnapshotExportTask(GetSnapshotExportTaskArgs.builder()
            .filters(GetSnapshotExportTaskFilterArgs.builder()
                .name("task_ids")
                .values("snap-export-12345678")
                .build())
            .build());
    }
}
variables:
  snapshotExportTask01:
    fn::invoke:
      function: outscale:getSnapshotExportTask
      arguments:
        filters:
          - name: task_ids
            values:
              - snap-export-12345678
Using getSnapshotExportTask
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSnapshotExportTask(args: GetSnapshotExportTaskArgs, opts?: InvokeOptions): Promise<GetSnapshotExportTaskResult>
function getSnapshotExportTaskOutput(args: GetSnapshotExportTaskOutputArgs, opts?: InvokeOptions): Output<GetSnapshotExportTaskResult>def get_snapshot_export_task(dry_run: Optional[bool] = None,
                             filters: Optional[Sequence[GetSnapshotExportTaskFilter]] = None,
                             id: Optional[str] = None,
                             timeouts: Optional[GetSnapshotExportTaskTimeouts] = None,
                             opts: Optional[InvokeOptions] = None) -> GetSnapshotExportTaskResult
def get_snapshot_export_task_output(dry_run: Optional[pulumi.Input[bool]] = None,
                             filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetSnapshotExportTaskFilterArgs]]]] = None,
                             id: Optional[pulumi.Input[str]] = None,
                             timeouts: Optional[pulumi.Input[GetSnapshotExportTaskTimeoutsArgs]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetSnapshotExportTaskResult]func LookupSnapshotExportTask(ctx *Context, args *LookupSnapshotExportTaskArgs, opts ...InvokeOption) (*LookupSnapshotExportTaskResult, error)
func LookupSnapshotExportTaskOutput(ctx *Context, args *LookupSnapshotExportTaskOutputArgs, opts ...InvokeOption) LookupSnapshotExportTaskResultOutput> Note: This function is named LookupSnapshotExportTask in the Go SDK.
public static class GetSnapshotExportTask 
{
    public static Task<GetSnapshotExportTaskResult> InvokeAsync(GetSnapshotExportTaskArgs args, InvokeOptions? opts = null)
    public static Output<GetSnapshotExportTaskResult> Invoke(GetSnapshotExportTaskInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSnapshotExportTaskResult> getSnapshotExportTask(GetSnapshotExportTaskArgs args, InvokeOptions options)
public static Output<GetSnapshotExportTaskResult> getSnapshotExportTask(GetSnapshotExportTaskArgs args, InvokeOptions options)
fn::invoke:
  function: outscale:index/getSnapshotExportTask:getSnapshotExportTask
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DryRun bool
- Filters
List<GetSnapshot Export Task Filter> 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- Id string
- Timeouts
GetSnapshot Export Task Timeouts 
- DryRun bool
- Filters
[]GetSnapshot Export Task Filter 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- Id string
- Timeouts
GetSnapshot Export Task Timeouts 
- dryRun Boolean
- filters
List<GetSnapshot Export Task Filter> 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id String
- timeouts
GetSnapshot Export Task Timeouts 
- dryRun boolean
- filters
GetSnapshot Export Task Filter[] 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id string
- timeouts
GetSnapshot Export Task Timeouts 
- dry_run bool
- filters
Sequence[GetSnapshot Export Task Filter] 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id str
- timeouts
GetSnapshot Export Task Timeouts 
- dryRun Boolean
- filters List<Property Map>
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id String
- timeouts Property Map
getSnapshotExportTask Result
The following output properties are available:
- Comment string
- If the snapshot export task fails, an error message appears.
- DryRun bool
- Id string
- OsuExports List<GetSnapshot Export Task Osu Export> 
- Information about the snapshot export task.
- Progress double
- The progress of the snapshot export task, as a percentage.
- RequestId string
- SnapshotId string
- The ID of the snapshot to be exported.
- State string
- The state of the snapshot export task (pending|active|completed|failed).
- 
List<GetSnapshot Export Task Tag> 
- One or more tags associated with the snapshot export task.
- TaskId string
- The ID of the snapshot export task.
- Filters
List<GetSnapshot Export Task Filter> 
- Timeouts
GetSnapshot Export Task Timeouts 
- Comment string
- If the snapshot export task fails, an error message appears.
- DryRun bool
- Id string
- OsuExports []GetSnapshot Export Task Osu Export 
- Information about the snapshot export task.
- Progress float64
- The progress of the snapshot export task, as a percentage.
- RequestId string
- SnapshotId string
- The ID of the snapshot to be exported.
- State string
- The state of the snapshot export task (pending|active|completed|failed).
- 
[]GetSnapshot Export Task Tag 
- One or more tags associated with the snapshot export task.
- TaskId string
- The ID of the snapshot export task.
- Filters
[]GetSnapshot Export Task Filter 
- Timeouts
GetSnapshot Export Task Timeouts 
- comment String
- If the snapshot export task fails, an error message appears.
- dryRun Boolean
- id String
- osuExports List<GetSnapshot Export Task Osu Export> 
- Information about the snapshot export task.
- progress Double
- The progress of the snapshot export task, as a percentage.
- requestId String
- snapshotId String
- The ID of the snapshot to be exported.
- state String
- The state of the snapshot export task (pending|active|completed|failed).
- 
List<GetSnapshot Export Task Tag> 
- One or more tags associated with the snapshot export task.
- taskId String
- The ID of the snapshot export task.
- filters
List<GetSnapshot Export Task Filter> 
- timeouts
GetSnapshot Export Task Timeouts 
- comment string
- If the snapshot export task fails, an error message appears.
- dryRun boolean
- id string
- osuExports GetSnapshot Export Task Osu Export[] 
- Information about the snapshot export task.
- progress number
- The progress of the snapshot export task, as a percentage.
- requestId string
- snapshotId string
- The ID of the snapshot to be exported.
- state string
- The state of the snapshot export task (pending|active|completed|failed).
- 
GetSnapshot Export Task Tag[] 
- One or more tags associated with the snapshot export task.
- taskId string
- The ID of the snapshot export task.
- filters
GetSnapshot Export Task Filter[] 
- timeouts
GetSnapshot Export Task Timeouts 
- comment str
- If the snapshot export task fails, an error message appears.
- dry_run bool
- id str
- osu_exports Sequence[GetSnapshot Export Task Osu Export] 
- Information about the snapshot export task.
- progress float
- The progress of the snapshot export task, as a percentage.
- request_id str
- snapshot_id str
- The ID of the snapshot to be exported.
- state str
- The state of the snapshot export task (pending|active|completed|failed).
- 
Sequence[GetSnapshot Export Task Tag] 
- One or more tags associated with the snapshot export task.
- task_id str
- The ID of the snapshot export task.
- filters
Sequence[GetSnapshot Export Task Filter] 
- timeouts
GetSnapshot Export Task Timeouts 
- comment String
- If the snapshot export task fails, an error message appears.
- dryRun Boolean
- id String
- osuExports List<Property Map>
- Information about the snapshot export task.
- progress Number
- The progress of the snapshot export task, as a percentage.
- requestId String
- snapshotId String
- The ID of the snapshot to be exported.
- state String
- The state of the snapshot export task (pending|active|completed|failed).
- List<Property Map>
- One or more tags associated with the snapshot export task.
- taskId String
- The ID of the snapshot export task.
- filters List<Property Map>
- timeouts Property Map
Supporting Types
GetSnapshotExportTaskFilter    
GetSnapshotExportTaskOsuExport     
- DiskImage stringFormat 
- The format of the export disk (qcow2|raw).
- OsuBucket string
- The name of the OOS bucket the snapshot is exported to.
- OsuPrefix string
- The prefix for the key of the OOS object corresponding to the snapshot.
- DiskImage stringFormat 
- The format of the export disk (qcow2|raw).
- OsuBucket string
- The name of the OOS bucket the snapshot is exported to.
- OsuPrefix string
- The prefix for the key of the OOS object corresponding to the snapshot.
- diskImage StringFormat 
- The format of the export disk (qcow2|raw).
- osuBucket String
- The name of the OOS bucket the snapshot is exported to.
- osuPrefix String
- The prefix for the key of the OOS object corresponding to the snapshot.
- diskImage stringFormat 
- The format of the export disk (qcow2|raw).
- osuBucket string
- The name of the OOS bucket the snapshot is exported to.
- osuPrefix string
- The prefix for the key of the OOS object corresponding to the snapshot.
- disk_image_ strformat 
- The format of the export disk (qcow2|raw).
- osu_bucket str
- The name of the OOS bucket the snapshot is exported to.
- osu_prefix str
- The prefix for the key of the OOS object corresponding to the snapshot.
- diskImage StringFormat 
- The format of the export disk (qcow2|raw).
- osuBucket String
- The name of the OOS bucket the snapshot is exported to.
- osuPrefix String
- The prefix for the key of the OOS object corresponding to the snapshot.
GetSnapshotExportTaskTag    
GetSnapshotExportTaskTimeouts    
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the outscaleTerraform Provider.