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

outscale.getImageExportTask

Explore with Pulumi AI

Provides information about an image 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 imageExportTask01 = outscale.getImageExportTask({
    filters: [{
        name: "task_ids",
        values: ["image-export-12345678"],
    }],
});
Copy
import pulumi
import pulumi_outscale as outscale

image_export_task01 = outscale.get_image_export_task(filters=[{
    "name": "task_ids",
    "values": ["image-export-12345678"],
}])
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.LookupImageExportTask(ctx, &outscale.LookupImageExportTaskArgs{
			Filters: []outscale.GetImageExportTaskFilter{
				{
					Name: "task_ids",
					Values: []string{
						"image-export-12345678",
					},
				},
			},
		}, 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 imageExportTask01 = Outscale.GetImageExportTask.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetImageExportTaskFilterInputArgs
            {
                Name = "task_ids",
                Values = new[]
                {
                    "image-export-12345678",
                },
            },
        },
    });

});
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.GetImageExportTaskArgs;
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 imageExportTask01 = OutscaleFunctions.getImageExportTask(GetImageExportTaskArgs.builder()
            .filters(GetImageExportTaskFilterArgs.builder()
                .name("task_ids")
                .values("image-export-12345678")
                .build())
            .build());

    }
}
Copy
variables:
  imageExportTask01:
    fn::invoke:
      function: outscale:getImageExportTask
      arguments:
        filters:
          - name: task_ids
            values:
              - image-export-12345678
Copy

Using getImageExportTask

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 getImageExportTask(args: GetImageExportTaskArgs, opts?: InvokeOptions): Promise<GetImageExportTaskResult>
function getImageExportTaskOutput(args: GetImageExportTaskOutputArgs, opts?: InvokeOptions): Output<GetImageExportTaskResult>
Copy
def get_image_export_task(dry_run: Optional[bool] = None,
                          filters: Optional[Sequence[GetImageExportTaskFilter]] = None,
                          id: Optional[str] = None,
                          timeouts: Optional[GetImageExportTaskTimeouts] = None,
                          opts: Optional[InvokeOptions] = None) -> GetImageExportTaskResult
def get_image_export_task_output(dry_run: Optional[pulumi.Input[bool]] = None,
                          filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetImageExportTaskFilterArgs]]]] = None,
                          id: Optional[pulumi.Input[str]] = None,
                          timeouts: Optional[pulumi.Input[GetImageExportTaskTimeoutsArgs]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetImageExportTaskResult]
Copy
func LookupImageExportTask(ctx *Context, args *LookupImageExportTaskArgs, opts ...InvokeOption) (*LookupImageExportTaskResult, error)
func LookupImageExportTaskOutput(ctx *Context, args *LookupImageExportTaskOutputArgs, opts ...InvokeOption) LookupImageExportTaskResultOutput
Copy

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

public static class GetImageExportTask 
{
    public static Task<GetImageExportTaskResult> InvokeAsync(GetImageExportTaskArgs args, InvokeOptions? opts = null)
    public static Output<GetImageExportTaskResult> Invoke(GetImageExportTaskInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetImageExportTaskResult> getImageExportTask(GetImageExportTaskArgs args, InvokeOptions options)
public static Output<GetImageExportTaskResult> getImageExportTask(GetImageExportTaskArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: outscale:index/getImageExportTask:getImageExportTask
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

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

getImageExportTask Result

The following output properties are available:

Comment string
If the OMI export task fails, an error message appears.
DryRun bool
Id string
ImageId string
The ID of the OMI to be exported.
OsuExports List<GetImageExportTaskOsuExport>
Information about the OMI export task.
Progress double
The progress of the OMI export task, as a percentage.
RequestId string
State string
The state of the OMI export task (pending/queued | pending | completed | failed | cancelled).
Tags List<GetImageExportTaskTag>
One or more tags associated with the image export task.
TaskId string
The ID of the OMI export task.
Filters List<GetImageExportTaskFilter>
Timeouts GetImageExportTaskTimeouts
Comment string
If the OMI export task fails, an error message appears.
DryRun bool
Id string
ImageId string
The ID of the OMI to be exported.
OsuExports []GetImageExportTaskOsuExport
Information about the OMI export task.
Progress float64
The progress of the OMI export task, as a percentage.
RequestId string
State string
The state of the OMI export task (pending/queued | pending | completed | failed | cancelled).
Tags []GetImageExportTaskTag
One or more tags associated with the image export task.
TaskId string
The ID of the OMI export task.
Filters []GetImageExportTaskFilter
Timeouts GetImageExportTaskTimeouts
comment String
If the OMI export task fails, an error message appears.
dryRun Boolean
id String
imageId String
The ID of the OMI to be exported.
osuExports List<GetImageExportTaskOsuExport>
Information about the OMI export task.
progress Double
The progress of the OMI export task, as a percentage.
requestId String
state String
The state of the OMI export task (pending/queued | pending | completed | failed | cancelled).
tags List<GetImageExportTaskTag>
One or more tags associated with the image export task.
taskId String
The ID of the OMI export task.
filters List<GetImageExportTaskFilter>
timeouts GetImageExportTaskTimeouts
comment string
If the OMI export task fails, an error message appears.
dryRun boolean
id string
imageId string
The ID of the OMI to be exported.
osuExports GetImageExportTaskOsuExport[]
Information about the OMI export task.
progress number
The progress of the OMI export task, as a percentage.
requestId string
state string
The state of the OMI export task (pending/queued | pending | completed | failed | cancelled).
tags GetImageExportTaskTag[]
One or more tags associated with the image export task.
taskId string
The ID of the OMI export task.
filters GetImageExportTaskFilter[]
timeouts GetImageExportTaskTimeouts
comment str
If the OMI export task fails, an error message appears.
dry_run bool
id str
image_id str
The ID of the OMI to be exported.
osu_exports Sequence[GetImageExportTaskOsuExport]
Information about the OMI export task.
progress float
The progress of the OMI export task, as a percentage.
request_id str
state str
The state of the OMI export task (pending/queued | pending | completed | failed | cancelled).
tags Sequence[GetImageExportTaskTag]
One or more tags associated with the image export task.
task_id str
The ID of the OMI export task.
filters Sequence[GetImageExportTaskFilter]
timeouts GetImageExportTaskTimeouts
comment String
If the OMI export task fails, an error message appears.
dryRun Boolean
id String
imageId String
The ID of the OMI to be exported.
osuExports List<Property Map>
Information about the OMI export task.
progress Number
The progress of the OMI export task, as a percentage.
requestId String
state String
The state of the OMI export task (pending/queued | pending | completed | failed | cancelled).
tags List<Property Map>
One or more tags associated with the image export task.
taskId String
The ID of the OMI export task.
filters List<Property Map>
timeouts Property Map

Supporting Types

GetImageExportTaskFilter

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>

GetImageExportTaskOsuExport

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 OMI is exported to.
OsuManifestUrl This property is required. string
The URL of the manifest file.
OsuPrefix This property is required. string
The prefix for the key of the OOS object corresponding to the image.
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 OMI is exported to.
OsuManifestUrl This property is required. string
The URL of the manifest file.
OsuPrefix This property is required. string
The prefix for the key of the OOS object corresponding to the image.
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 OMI is exported to.
osuManifestUrl This property is required. String
The URL of the manifest file.
osuPrefix This property is required. String
The prefix for the key of the OOS object corresponding to the image.
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 OMI is exported to.
osuManifestUrl This property is required. string
The URL of the manifest file.
osuPrefix This property is required. string
The prefix for the key of the OOS object corresponding to the image.
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 OMI is exported to.
osu_manifest_url This property is required. str
The URL of the manifest file.
osu_prefix This property is required. str
The prefix for the key of the OOS object corresponding to the image.
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 OMI is exported to.
osuManifestUrl This property is required. String
The URL of the manifest file.
osuPrefix This property is required. String
The prefix for the key of the OOS object corresponding to the image.

GetImageExportTaskTag

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.

GetImageExportTaskTimeouts

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.