1. Packages
  2. Outscale Provider
  3. API Docs
  4. getSnapshotExportTasks
outscale 1.1.0 published on Thursday, Apr 3, 2025 by outscale

outscale.getSnapshotExportTasks

Explore with Pulumi AI

Provides information about snapshot export tasks.

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 snapshotExportTasks01 = outscale.getSnapshotExportTasks({
    filters: [{
        name: "task_ids",
        values: [
            "snap-export-12345678",
            "snap-export-87654321",
        ],
    }],
});
Copy
import pulumi
import pulumi_outscale as outscale

snapshot_export_tasks01 = outscale.get_snapshot_export_tasks(filters=[{
    "name": "task_ids",
    "values": [
        "snap-export-12345678",
        "snap-export-87654321",
    ],
}])
Copy
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.GetSnapshotExportTasks(ctx, &outscale.GetSnapshotExportTasksArgs{
			Filters: []outscale.GetSnapshotExportTasksFilter{
				{
					Name: "task_ids",
					Values: []string{
						"snap-export-12345678",
						"snap-export-87654321",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var snapshotExportTasks01 = Outscale.GetSnapshotExportTasks.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetSnapshotExportTasksFilterInputArgs
            {
                Name = "task_ids",
                Values = new[]
                {
                    "snap-export-12345678",
                    "snap-export-87654321",
                },
            },
        },
    });

});
Copy
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.GetSnapshotExportTasksArgs;
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 snapshotExportTasks01 = OutscaleFunctions.getSnapshotExportTasks(GetSnapshotExportTasksArgs.builder()
            .filters(GetSnapshotExportTasksFilterArgs.builder()
                .name("task_ids")
                .values(                
                    "snap-export-12345678",
                    "snap-export-87654321")
                .build())
            .build());

    }
}
Copy
variables:
  snapshotExportTasks01:
    fn::invoke:
      function: outscale:getSnapshotExportTasks
      arguments:
        filters:
          - name: task_ids
            values:
              - snap-export-12345678
              - snap-export-87654321
Copy

Using getSnapshotExportTasks

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 getSnapshotExportTasks(args: GetSnapshotExportTasksArgs, opts?: InvokeOptions): Promise<GetSnapshotExportTasksResult>
function getSnapshotExportTasksOutput(args: GetSnapshotExportTasksOutputArgs, opts?: InvokeOptions): Output<GetSnapshotExportTasksResult>
Copy
def get_snapshot_export_tasks(dry_run: Optional[bool] = None,
                              filters: Optional[Sequence[GetSnapshotExportTasksFilter]] = None,
                              id: Optional[str] = None,
                              timeouts: Optional[GetSnapshotExportTasksTimeouts] = None,
                              opts: Optional[InvokeOptions] = None) -> GetSnapshotExportTasksResult
def get_snapshot_export_tasks_output(dry_run: Optional[pulumi.Input[bool]] = None,
                              filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetSnapshotExportTasksFilterArgs]]]] = None,
                              id: Optional[pulumi.Input[str]] = None,
                              timeouts: Optional[pulumi.Input[GetSnapshotExportTasksTimeoutsArgs]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetSnapshotExportTasksResult]
Copy
func GetSnapshotExportTasks(ctx *Context, args *GetSnapshotExportTasksArgs, opts ...InvokeOption) (*GetSnapshotExportTasksResult, error)
func GetSnapshotExportTasksOutput(ctx *Context, args *GetSnapshotExportTasksOutputArgs, opts ...InvokeOption) GetSnapshotExportTasksResultOutput
Copy

> Note: This function is named GetSnapshotExportTasks in the Go SDK.

public static class GetSnapshotExportTasks 
{
    public static Task<GetSnapshotExportTasksResult> InvokeAsync(GetSnapshotExportTasksArgs args, InvokeOptions? opts = null)
    public static Output<GetSnapshotExportTasksResult> Invoke(GetSnapshotExportTasksInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSnapshotExportTasksResult> getSnapshotExportTasks(GetSnapshotExportTasksArgs args, InvokeOptions options)
public static Output<GetSnapshotExportTasksResult> getSnapshotExportTasks(GetSnapshotExportTasksArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: outscale:index/getSnapshotExportTasks:getSnapshotExportTasks
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DryRun bool
Filters List<GetSnapshotExportTasksFilter>
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 GetSnapshotExportTasksTimeouts
DryRun bool
Filters []GetSnapshotExportTasksFilter
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 GetSnapshotExportTasksTimeouts
dryRun Boolean
filters List<GetSnapshotExportTasksFilter>
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 GetSnapshotExportTasksTimeouts
dryRun boolean
filters GetSnapshotExportTasksFilter[]
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 GetSnapshotExportTasksTimeouts
dry_run bool
filters Sequence[GetSnapshotExportTasksFilter]
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 GetSnapshotExportTasksTimeouts
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

getSnapshotExportTasks Result

The following output properties are available:

dryRun Boolean
id String
requestId String
snapshotExportTasks List<Property Map>
Information about one or more snapshot export tasks.
filters List<Property Map>
timeouts Property Map

Supporting Types

GetSnapshotExportTasksFilter

Name This property is required. string
Values This property is required. List<string>
Name This property is required. string
Values This property is required. []string
name This property is required. String
values This property is required. List<String>
name This property is required. string
values This property is required. string[]
name This property is required. str
values This property is required. Sequence[str]
name This property is required. String
values This property is required. List<String>

GetSnapshotExportTasksSnapshotExportTask

Comment This property is required. string
If the snapshot export task fails, an error message appears.
OsuExports This property is required. List<GetSnapshotExportTasksSnapshotExportTaskOsuExport>
Information about the snapshot export task.
Progress This property is required. double
The progress of the snapshot export task, as a percentage.
SnapshotId This property is required. string
The ID of the snapshot to be exported.
State This property is required. string
The state of the snapshot export task (pending | active | completed | failed).
Tags This property is required. List<GetSnapshotExportTasksSnapshotExportTaskTag>
One or more tags associated with the snapshot export task.
TaskId This property is required. string
The ID of the snapshot export task.
Comment This property is required. string
If the snapshot export task fails, an error message appears.
OsuExports This property is required. []GetSnapshotExportTasksSnapshotExportTaskOsuExport
Information about the snapshot export task.
Progress This property is required. float64
The progress of the snapshot export task, as a percentage.
SnapshotId This property is required. string
The ID of the snapshot to be exported.
State This property is required. string
The state of the snapshot export task (pending | active | completed | failed).
Tags This property is required. []GetSnapshotExportTasksSnapshotExportTaskTag
One or more tags associated with the snapshot export task.
TaskId This property is required. string
The ID of the snapshot export task.
comment This property is required. String
If the snapshot export task fails, an error message appears.
osuExports This property is required. List<GetSnapshotExportTasksSnapshotExportTaskOsuExport>
Information about the snapshot export task.
progress This property is required. Double
The progress of the snapshot export task, as a percentage.
snapshotId This property is required. String
The ID of the snapshot to be exported.
state This property is required. String
The state of the snapshot export task (pending | active | completed | failed).
tags This property is required. List<GetSnapshotExportTasksSnapshotExportTaskTag>
One or more tags associated with the snapshot export task.
taskId This property is required. String
The ID of the snapshot export task.
comment This property is required. string
If the snapshot export task fails, an error message appears.
osuExports This property is required. GetSnapshotExportTasksSnapshotExportTaskOsuExport[]
Information about the snapshot export task.
progress This property is required. number
The progress of the snapshot export task, as a percentage.
snapshotId This property is required. string
The ID of the snapshot to be exported.
state This property is required. string
The state of the snapshot export task (pending | active | completed | failed).
tags This property is required. GetSnapshotExportTasksSnapshotExportTaskTag[]
One or more tags associated with the snapshot export task.
taskId This property is required. string
The ID of the snapshot export task.
comment This property is required. str
If the snapshot export task fails, an error message appears.
osu_exports This property is required. Sequence[GetSnapshotExportTasksSnapshotExportTaskOsuExport]
Information about the snapshot export task.
progress This property is required. float
The progress of the snapshot export task, as a percentage.
snapshot_id This property is required. str
The ID of the snapshot to be exported.
state This property is required. str
The state of the snapshot export task (pending | active | completed | failed).
tags This property is required. Sequence[GetSnapshotExportTasksSnapshotExportTaskTag]
One or more tags associated with the snapshot export task.
task_id This property is required. str
The ID of the snapshot export task.
comment This property is required. String
If the snapshot export task fails, an error message appears.
osuExports This property is required. List<Property Map>
Information about the snapshot export task.
progress This property is required. Number
The progress of the snapshot export task, as a percentage.
snapshotId This property is required. String
The ID of the snapshot to be exported.
state This property is required. String
The state of the snapshot export task (pending | active | completed | failed).
tags This property is required. List<Property Map>
One or more tags associated with the snapshot export task.
taskId This property is required. String
The ID of the snapshot export task.

GetSnapshotExportTasksSnapshotExportTaskOsuExport

DiskImageFormat This property is required. string
The format of the export disk (qcow2 | raw).
OsuBucket This property is required. string
The name of the OOS bucket the snapshot is exported to.
OsuPrefix This property is required. string
The prefix for the key of the OOS object corresponding to the snapshot.
DiskImageFormat This property is required. string
The format of the export disk (qcow2 | raw).
OsuBucket This property is required. string
The name of the OOS bucket the snapshot is exported to.
OsuPrefix This property is required. string
The prefix for the key of the OOS object corresponding to the snapshot.
diskImageFormat This property is required. String
The format of the export disk (qcow2 | raw).
osuBucket This property is required. String
The name of the OOS bucket the snapshot is exported to.
osuPrefix This property is required. String
The prefix for the key of the OOS object corresponding to the snapshot.
diskImageFormat This property is required. string
The format of the export disk (qcow2 | raw).
osuBucket This property is required. string
The name of the OOS bucket the snapshot is exported to.
osuPrefix This property is required. string
The prefix for the key of the OOS object corresponding to the snapshot.
disk_image_format This property is required. str
The format of the export disk (qcow2 | raw).
osu_bucket This property is required. str
The name of the OOS bucket the snapshot is exported to.
osu_prefix This property is required. str
The prefix for the key of the OOS object corresponding to the snapshot.
diskImageFormat This property is required. String
The format of the export disk (qcow2 | raw).
osuBucket This property is required. String
The name of the OOS bucket the snapshot is exported to.
osuPrefix This property is required. String
The prefix for the key of the OOS object corresponding to the snapshot.

GetSnapshotExportTasksSnapshotExportTaskTag

Key This property is required. string
The key of the tag, with a minimum of 1 character.
Value This property is required. string
The value of the tag, between 0 and 255 characters.
Key This property is required. string
The key of the tag, with a minimum of 1 character.
Value This property is required. string
The value of the tag, between 0 and 255 characters.
key This property is required. String
The key of the tag, with a minimum of 1 character.
value This property is required. String
The value of the tag, between 0 and 255 characters.
key This property is required. string
The key of the tag, with a minimum of 1 character.
value This property is required. string
The value of the tag, between 0 and 255 characters.
key This property is required. str
The key of the tag, with a minimum of 1 character.
value This property is required. str
The value of the tag, between 0 and 255 characters.
key This property is required. String
The key of the tag, with a minimum of 1 character.
value This property is required. String
The value of the tag, between 0 and 255 characters.

GetSnapshotExportTasksTimeouts

Create string
Delete string
Create string
Delete string
create String
delete String
create string
delete string
create str
delete str
create String
delete String

Package Details

Repository
outscale outscale/terraform-provider-outscale
License
Notes
This Pulumi package is based on the outscale Terraform Provider.