1. Packages
  2. Opennebula Provider
  3. API Docs
  4. Image
opennebula 1.4.1 published on Monday, Apr 14, 2025 by opennebula

opennebula.Image

Explore with Pulumi AI

opennebula logo
opennebula 1.4.1 published on Monday, Apr 14, 2025 by opennebula

    Provides an OpenNebula image resource.

    This resource allows you to manage images on your OpenNebula clusters. When applied, a new image is created. When destroyed, this image is removed.

    Example Usage

    Clone an existing image and make it persistent:

    import * as pulumi from "@pulumi/pulumi";
    import * as opennebula from "@pulumi/opennebula";
    
    const example = new opennebula.Image("example", {
        cloneFromImage: "12937",
        datastoreId: 113,
        group: "terraform",
        permissions: "660",
        persistent: true,
    });
    
    import pulumi
    import pulumi_opennebula as opennebula
    
    example = opennebula.Image("example",
        clone_from_image="12937",
        datastore_id=113,
        group="terraform",
        permissions="660",
        persistent=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opennebula/opennebula"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opennebula.NewImage(ctx, "example", &opennebula.ImageArgs{
    			CloneFromImage: pulumi.String("12937"),
    			DatastoreId:    pulumi.Float64(113),
    			Group:          pulumi.String("terraform"),
    			Permissions:    pulumi.String("660"),
    			Persistent:     pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opennebula = Pulumi.Opennebula;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Opennebula.Image("example", new()
        {
            CloneFromImage = "12937",
            DatastoreId = 113,
            Group = "terraform",
            Permissions = "660",
            Persistent = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opennebula.Image;
    import com.pulumi.opennebula.ImageArgs;
    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) {
            var example = new Image("example", ImageArgs.builder()
                .cloneFromImage(12937)
                .datastoreId(113)
                .group("terraform")
                .permissions("660")
                .persistent(true)
                .build());
    
        }
    }
    
    resources:
      example:
        type: opennebula:Image
        properties:
          cloneFromImage: 12937
          datastoreId: 113
          group: terraform
          permissions: '660'
          persistent: true
    

    Allocate a new OS image using a URL:

    import * as pulumi from "@pulumi/pulumi";
    import * as opennebula from "@pulumi/opennebula";
    
    const example = new opennebula.Image("example", {
        datastoreId: 103,
        description: "Terraform image",
        devPrefix: "vd",
        driver: "qcow2",
        group: "terraform",
        lock: "MANAGE",
        path: "http://marketplace.opennebula.org/appliance/ca5c3632-359a-429c-ac5b-b86178ee2390/download/0",
        permissions: "660",
        persistent: false,
        tags: {
            environment: "example",
        },
        templateSections: [{
            elements: {
                key1: "value1",
            },
            name: "example",
        }],
    });
    
    import pulumi
    import pulumi_opennebula as opennebula
    
    example = opennebula.Image("example",
        datastore_id=103,
        description="Terraform image",
        dev_prefix="vd",
        driver="qcow2",
        group="terraform",
        lock="MANAGE",
        path="http://marketplace.opennebula.org/appliance/ca5c3632-359a-429c-ac5b-b86178ee2390/download/0",
        permissions="660",
        persistent=False,
        tags={
            "environment": "example",
        },
        template_sections=[{
            "elements": {
                "key1": "value1",
            },
            "name": "example",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opennebula/opennebula"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opennebula.NewImage(ctx, "example", &opennebula.ImageArgs{
    			DatastoreId: pulumi.Float64(103),
    			Description: pulumi.String("Terraform image"),
    			DevPrefix:   pulumi.String("vd"),
    			Driver:      pulumi.String("qcow2"),
    			Group:       pulumi.String("terraform"),
    			Lock:        pulumi.String("MANAGE"),
    			Path:        pulumi.String("http://marketplace.opennebula.org/appliance/ca5c3632-359a-429c-ac5b-b86178ee2390/download/0"),
    			Permissions: pulumi.String("660"),
    			Persistent:  pulumi.Bool(false),
    			Tags: pulumi.StringMap{
    				"environment": pulumi.String("example"),
    			},
    			TemplateSections: opennebula.ImageTemplateSectionArray{
    				&opennebula.ImageTemplateSectionArgs{
    					Elements: pulumi.StringMap{
    						"key1": pulumi.String("value1"),
    					},
    					Name: pulumi.String("example"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opennebula = Pulumi.Opennebula;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Opennebula.Image("example", new()
        {
            DatastoreId = 103,
            Description = "Terraform image",
            DevPrefix = "vd",
            Driver = "qcow2",
            Group = "terraform",
            Lock = "MANAGE",
            Path = "http://marketplace.opennebula.org/appliance/ca5c3632-359a-429c-ac5b-b86178ee2390/download/0",
            Permissions = "660",
            Persistent = false,
            Tags = 
            {
                { "environment", "example" },
            },
            TemplateSections = new[]
            {
                new Opennebula.Inputs.ImageTemplateSectionArgs
                {
                    Elements = 
                    {
                        { "key1", "value1" },
                    },
                    Name = "example",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opennebula.Image;
    import com.pulumi.opennebula.ImageArgs;
    import com.pulumi.opennebula.inputs.ImageTemplateSectionArgs;
    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) {
            var example = new Image("example", ImageArgs.builder()
                .datastoreId(103)
                .description("Terraform image")
                .devPrefix("vd")
                .driver("qcow2")
                .group("terraform")
                .lock("MANAGE")
                .path("http://marketplace.opennebula.org/appliance/ca5c3632-359a-429c-ac5b-b86178ee2390/download/0")
                .permissions("660")
                .persistent(false)
                .tags(Map.of("environment", "example"))
                .templateSections(ImageTemplateSectionArgs.builder()
                    .elements(Map.of("key1", "value1"))
                    .name("example")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: opennebula:Image
        properties:
          datastoreId: 103
          description: Terraform image
          devPrefix: vd
          driver: qcow2
          group: terraform
          lock: MANAGE
          path: http://marketplace.opennebula.org/appliance/ca5c3632-359a-429c-ac5b-b86178ee2390/download/0
          permissions: '660'
          persistent: false
          tags:
            environment: example
          templateSections:
            - elements:
                key1: value1
              name: example
    

    Allocate a new persistent 1GB datablock image:

    import * as pulumi from "@pulumi/pulumi";
    import * as opennebula from "@pulumi/opennebula";
    
    const example = new opennebula.Image("example", {
        datastoreId: 103,
        description: "Terraform datablock",
        devPrefix: "vd",
        driver: "qcow2",
        group: "terraform",
        persistent: true,
        size: 1024,
        tags: {
            environment: "example",
        },
        templateSections: [{
            elements: {
                key1: "value",
            },
            name: "example",
        }],
        type: "DATABLOCK",
    });
    
    import pulumi
    import pulumi_opennebula as opennebula
    
    example = opennebula.Image("example",
        datastore_id=103,
        description="Terraform datablock",
        dev_prefix="vd",
        driver="qcow2",
        group="terraform",
        persistent=True,
        size=1024,
        tags={
            "environment": "example",
        },
        template_sections=[{
            "elements": {
                "key1": "value",
            },
            "name": "example",
        }],
        type="DATABLOCK")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opennebula/opennebula"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opennebula.NewImage(ctx, "example", &opennebula.ImageArgs{
    			DatastoreId: pulumi.Float64(103),
    			Description: pulumi.String("Terraform datablock"),
    			DevPrefix:   pulumi.String("vd"),
    			Driver:      pulumi.String("qcow2"),
    			Group:       pulumi.String("terraform"),
    			Persistent:  pulumi.Bool(true),
    			Size:        pulumi.Float64(1024),
    			Tags: pulumi.StringMap{
    				"environment": pulumi.String("example"),
    			},
    			TemplateSections: opennebula.ImageTemplateSectionArray{
    				&opennebula.ImageTemplateSectionArgs{
    					Elements: pulumi.StringMap{
    						"key1": pulumi.String("value"),
    					},
    					Name: pulumi.String("example"),
    				},
    			},
    			Type: pulumi.String("DATABLOCK"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opennebula = Pulumi.Opennebula;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Opennebula.Image("example", new()
        {
            DatastoreId = 103,
            Description = "Terraform datablock",
            DevPrefix = "vd",
            Driver = "qcow2",
            Group = "terraform",
            Persistent = true,
            Size = 1024,
            Tags = 
            {
                { "environment", "example" },
            },
            TemplateSections = new[]
            {
                new Opennebula.Inputs.ImageTemplateSectionArgs
                {
                    Elements = 
                    {
                        { "key1", "value" },
                    },
                    Name = "example",
                },
            },
            Type = "DATABLOCK",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opennebula.Image;
    import com.pulumi.opennebula.ImageArgs;
    import com.pulumi.opennebula.inputs.ImageTemplateSectionArgs;
    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) {
            var example = new Image("example", ImageArgs.builder()
                .datastoreId(103)
                .description("Terraform datablock")
                .devPrefix("vd")
                .driver("qcow2")
                .group("terraform")
                .persistent(true)
                .size("1024")
                .tags(Map.of("environment", "example"))
                .templateSections(ImageTemplateSectionArgs.builder()
                    .elements(Map.of("key1", "value"))
                    .name("example")
                    .build())
                .type("DATABLOCK")
                .build());
    
        }
    }
    
    resources:
      example:
        type: opennebula:Image
        properties:
          datastoreId: 103
          description: Terraform datablock
          devPrefix: vd
          driver: qcow2
          group: terraform
          persistent: true
          size: '1024'
          tags:
            environment: example
          templateSections:
            - elements:
                key1: value
              name: example
          type: DATABLOCK
    

    Allocate a new context file:

    import * as pulumi from "@pulumi/pulumi";
    import * as opennebula from "@pulumi/opennebula";
    
    const example = new opennebula.Image("example", {
        datastoreId: 2,
        description: "Terraform context",
        path: "http://server/myscript.sh",
        tags: {
            environment: "example",
        },
        type: "CONTEXT",
    });
    
    import pulumi
    import pulumi_opennebula as opennebula
    
    example = opennebula.Image("example",
        datastore_id=2,
        description="Terraform context",
        path="http://server/myscript.sh",
        tags={
            "environment": "example",
        },
        type="CONTEXT")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opennebula/opennebula"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opennebula.NewImage(ctx, "example", &opennebula.ImageArgs{
    			DatastoreId: pulumi.Float64(2),
    			Description: pulumi.String("Terraform context"),
    			Path:        pulumi.String("http://server/myscript.sh"),
    			Tags: pulumi.StringMap{
    				"environment": pulumi.String("example"),
    			},
    			Type: pulumi.String("CONTEXT"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opennebula = Pulumi.Opennebula;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Opennebula.Image("example", new()
        {
            DatastoreId = 2,
            Description = "Terraform context",
            Path = "http://server/myscript.sh",
            Tags = 
            {
                { "environment", "example" },
            },
            Type = "CONTEXT",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opennebula.Image;
    import com.pulumi.opennebula.ImageArgs;
    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) {
            var example = new Image("example", ImageArgs.builder()
                .datastoreId(2)
                .description("Terraform context")
                .path("http://server/myscript.sh")
                .tags(Map.of("environment", "example"))
                .type("CONTEXT")
                .build());
    
        }
    }
    
    resources:
      example:
        type: opennebula:Image
        properties:
          datastoreId: 2
          description: Terraform context
          path: http://server/myscript.sh
          tags:
            environment: example
          type: CONTEXT
    

    Allocate a new CDROM image:

    import * as pulumi from "@pulumi/pulumi";
    import * as opennebula from "@pulumi/opennebula";
    
    const example = new opennebula.Image("example", {
        datastoreId: 103,
        description: "Terraform cdrom",
        path: "http://example.com/example_amd64.iso",
        tags: {
            environment: "example",
        },
        type: "CDROM",
    });
    
    import pulumi
    import pulumi_opennebula as opennebula
    
    example = opennebula.Image("example",
        datastore_id=103,
        description="Terraform cdrom",
        path="http://example.com/example_amd64.iso",
        tags={
            "environment": "example",
        },
        type="CDROM")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opennebula/opennebula"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opennebula.NewImage(ctx, "example", &opennebula.ImageArgs{
    			DatastoreId: pulumi.Float64(103),
    			Description: pulumi.String("Terraform cdrom"),
    			Path:        pulumi.String("http://example.com/example_amd64.iso"),
    			Tags: pulumi.StringMap{
    				"environment": pulumi.String("example"),
    			},
    			Type: pulumi.String("CDROM"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opennebula = Pulumi.Opennebula;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Opennebula.Image("example", new()
        {
            DatastoreId = 103,
            Description = "Terraform cdrom",
            Path = "http://example.com/example_amd64.iso",
            Tags = 
            {
                { "environment", "example" },
            },
            Type = "CDROM",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opennebula.Image;
    import com.pulumi.opennebula.ImageArgs;
    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) {
            var example = new Image("example", ImageArgs.builder()
                .datastoreId(103)
                .description("Terraform cdrom")
                .path("http://example.com/example_amd64.iso")
                .tags(Map.of("environment", "example"))
                .type("CDROM")
                .build());
    
        }
    }
    
    resources:
      example:
        type: opennebula:Image
        properties:
          datastoreId: 103
          description: Terraform cdrom
          path: http://example.com/example_amd64.iso
          tags:
            environment: example
          type: CDROM
    

    Create Image Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Image(name: string, args: ImageArgs, opts?: CustomResourceOptions);
    @overload
    def Image(resource_name: str,
              args: ImageArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Image(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              datastore_id: Optional[float] = None,
              path: Optional[str] = None,
              permissions: Optional[str] = None,
              dev_prefix: Optional[str] = None,
              clone_from_image: Optional[str] = None,
              format: Optional[str] = None,
              group: Optional[str] = None,
              image_id: Optional[str] = None,
              lock: Optional[str] = None,
              description: Optional[str] = None,
              name: Optional[str] = None,
              driver: Optional[str] = None,
              persistent: Optional[bool] = None,
              size: Optional[float] = None,
              tags: Optional[Mapping[str, str]] = None,
              target: Optional[str] = None,
              template_sections: Optional[Sequence[ImageTemplateSectionArgs]] = None,
              timeout: Optional[float] = None,
              timeouts: Optional[ImageTimeoutsArgs] = None,
              type: Optional[str] = None)
    func NewImage(ctx *Context, name string, args ImageArgs, opts ...ResourceOption) (*Image, error)
    public Image(string name, ImageArgs args, CustomResourceOptions? opts = null)
    public Image(String name, ImageArgs args)
    public Image(String name, ImageArgs args, CustomResourceOptions options)
    
    type: opennebula:Image
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ImageArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ImageArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ImageArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ImageArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ImageArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var imageResource = new Opennebula.Image("imageResource", new()
    {
        DatastoreId = 0,
        Path = "string",
        Permissions = "string",
        DevPrefix = "string",
        CloneFromImage = "string",
        Format = "string",
        Group = "string",
        ImageId = "string",
        Lock = "string",
        Description = "string",
        Name = "string",
        Driver = "string",
        Persistent = false,
        Size = 0,
        Tags = 
        {
            { "string", "string" },
        },
        Target = "string",
        TemplateSections = new[]
        {
            new Opennebula.Inputs.ImageTemplateSectionArgs
            {
                Name = "string",
                Elements = 
                {
                    { "string", "string" },
                },
            },
        },
        Timeouts = new Opennebula.Inputs.ImageTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        Type = "string",
    });
    
    example, err := opennebula.NewImage(ctx, "imageResource", &opennebula.ImageArgs{
    DatastoreId: pulumi.Float64(0),
    Path: pulumi.String("string"),
    Permissions: pulumi.String("string"),
    DevPrefix: pulumi.String("string"),
    CloneFromImage: pulumi.String("string"),
    Format: pulumi.String("string"),
    Group: pulumi.String("string"),
    ImageId: pulumi.String("string"),
    Lock: pulumi.String("string"),
    Description: pulumi.String("string"),
    Name: pulumi.String("string"),
    Driver: pulumi.String("string"),
    Persistent: pulumi.Bool(false),
    Size: pulumi.Float64(0),
    Tags: pulumi.StringMap{
    "string": pulumi.String("string"),
    },
    Target: pulumi.String("string"),
    TemplateSections: .ImageTemplateSectionArray{
    &.ImageTemplateSectionArgs{
    Name: pulumi.String("string"),
    Elements: pulumi.StringMap{
    "string": pulumi.String("string"),
    },
    },
    },
    Timeouts: &.ImageTimeoutsArgs{
    Create: pulumi.String("string"),
    Delete: pulumi.String("string"),
    },
    Type: pulumi.String("string"),
    })
    
    var imageResource = new Image("imageResource", ImageArgs.builder()
        .datastoreId(0)
        .path("string")
        .permissions("string")
        .devPrefix("string")
        .cloneFromImage("string")
        .format("string")
        .group("string")
        .imageId("string")
        .lock("string")
        .description("string")
        .name("string")
        .driver("string")
        .persistent(false)
        .size(0)
        .tags(Map.of("string", "string"))
        .target("string")
        .templateSections(ImageTemplateSectionArgs.builder()
            .name("string")
            .elements(Map.of("string", "string"))
            .build())
        .timeouts(ImageTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .type("string")
        .build());
    
    image_resource = opennebula.Image("imageResource",
        datastore_id=0,
        path="string",
        permissions="string",
        dev_prefix="string",
        clone_from_image="string",
        format="string",
        group="string",
        image_id="string",
        lock="string",
        description="string",
        name="string",
        driver="string",
        persistent=False,
        size=0,
        tags={
            "string": "string",
        },
        target="string",
        template_sections=[{
            "name": "string",
            "elements": {
                "string": "string",
            },
        }],
        timeouts={
            "create": "string",
            "delete": "string",
        },
        type="string")
    
    const imageResource = new opennebula.Image("imageResource", {
        datastoreId: 0,
        path: "string",
        permissions: "string",
        devPrefix: "string",
        cloneFromImage: "string",
        format: "string",
        group: "string",
        imageId: "string",
        lock: "string",
        description: "string",
        name: "string",
        driver: "string",
        persistent: false,
        size: 0,
        tags: {
            string: "string",
        },
        target: "string",
        templateSections: [{
            name: "string",
            elements: {
                string: "string",
            },
        }],
        timeouts: {
            create: "string",
            "delete": "string",
        },
        type: "string",
    });
    
    type: opennebula:Image
    properties:
        cloneFromImage: string
        datastoreId: 0
        description: string
        devPrefix: string
        driver: string
        format: string
        group: string
        imageId: string
        lock: string
        name: string
        path: string
        permissions: string
        persistent: false
        size: 0
        tags:
            string: string
        target: string
        templateSections:
            - elements:
                string: string
              name: string
        timeouts:
            create: string
            delete: string
        type: string
    

    Image Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Image resource accepts the following input properties:

    DatastoreId double
    ID of the datastore used to store the image. The datastore_id must be an active IMAGE datastore.
    CloneFromImage string
    ID or name of the image to clone from. Conflicts with path, size and type.
    Description string
    Description of the image.
    DevPrefix string
    Device prefix on Virtual Machine. Usually one of these: hd, sd or vd.
    Driver string
    OpenNebula Driver to use.
    Format string
    Image format. Example: raw, qcow2.
    Group string
    Name of the group which owns the image. Defaults to the caller primary group.
    ImageId string
    ID of the image.
    Lock string
    Lock the image with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    Name string
    The name of the image.
    Path string
    Path or URL of the original image to use. Conflicts with clone_from_image.
    Permissions string
    Permissions applied to the image. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    Persistent bool
    Flag which indicates if the Image has to be persistent. Defaults to false.
    Size double
    Size of the image in MB. Conflicts with clone_from_image.
    Tags Dictionary<string, string>
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    Target string
    Device target on Virtual Machine.
    TemplateSections List<ImageTemplateSection>
    Allow to add a custom vector. See Template section parameters
    Timeout double
    Timeout (in Minutes) for Image availability. Defaults to 10 minutes.

    Deprecated: Deprecated

    Timeouts ImageTimeouts
    Type string
    Type of the image. Supported values: OS, CDROM, DATABLOCK, KERNEL, RAMDISK or CONTEXT. Conflicts with clone_from_image.
    DatastoreId float64
    ID of the datastore used to store the image. The datastore_id must be an active IMAGE datastore.
    CloneFromImage string
    ID or name of the image to clone from. Conflicts with path, size and type.
    Description string
    Description of the image.
    DevPrefix string
    Device prefix on Virtual Machine. Usually one of these: hd, sd or vd.
    Driver string
    OpenNebula Driver to use.
    Format string
    Image format. Example: raw, qcow2.
    Group string
    Name of the group which owns the image. Defaults to the caller primary group.
    ImageId string
    ID of the image.
    Lock string
    Lock the image with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    Name string
    The name of the image.
    Path string
    Path or URL of the original image to use. Conflicts with clone_from_image.
    Permissions string
    Permissions applied to the image. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    Persistent bool
    Flag which indicates if the Image has to be persistent. Defaults to false.
    Size float64
    Size of the image in MB. Conflicts with clone_from_image.
    Tags map[string]string
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    Target string
    Device target on Virtual Machine.
    TemplateSections []ImageTemplateSectionArgs
    Allow to add a custom vector. See Template section parameters
    Timeout float64
    Timeout (in Minutes) for Image availability. Defaults to 10 minutes.

    Deprecated: Deprecated

    Timeouts ImageTimeoutsArgs
    Type string
    Type of the image. Supported values: OS, CDROM, DATABLOCK, KERNEL, RAMDISK or CONTEXT. Conflicts with clone_from_image.
    datastoreId Double
    ID of the datastore used to store the image. The datastore_id must be an active IMAGE datastore.
    cloneFromImage String
    ID or name of the image to clone from. Conflicts with path, size and type.
    description String
    Description of the image.
    devPrefix String
    Device prefix on Virtual Machine. Usually one of these: hd, sd or vd.
    driver String
    OpenNebula Driver to use.
    format String
    Image format. Example: raw, qcow2.
    group String
    Name of the group which owns the image. Defaults to the caller primary group.
    imageId String
    ID of the image.
    lock String
    Lock the image with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    name String
    The name of the image.
    path String
    Path or URL of the original image to use. Conflicts with clone_from_image.
    permissions String
    Permissions applied to the image. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    persistent Boolean
    Flag which indicates if the Image has to be persistent. Defaults to false.
    size Double
    Size of the image in MB. Conflicts with clone_from_image.
    tags Map<String,String>
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    target String
    Device target on Virtual Machine.
    templateSections List<ImageTemplateSection>
    Allow to add a custom vector. See Template section parameters
    timeout Double
    Timeout (in Minutes) for Image availability. Defaults to 10 minutes.

    Deprecated: Deprecated

    timeouts ImageTimeouts
    type String
    Type of the image. Supported values: OS, CDROM, DATABLOCK, KERNEL, RAMDISK or CONTEXT. Conflicts with clone_from_image.
    datastoreId number
    ID of the datastore used to store the image. The datastore_id must be an active IMAGE datastore.
    cloneFromImage string
    ID or name of the image to clone from. Conflicts with path, size and type.
    description string
    Description of the image.
    devPrefix string
    Device prefix on Virtual Machine. Usually one of these: hd, sd or vd.
    driver string
    OpenNebula Driver to use.
    format string
    Image format. Example: raw, qcow2.
    group string
    Name of the group which owns the image. Defaults to the caller primary group.
    imageId string
    ID of the image.
    lock string
    Lock the image with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    name string
    The name of the image.
    path string
    Path or URL of the original image to use. Conflicts with clone_from_image.
    permissions string
    Permissions applied to the image. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    persistent boolean
    Flag which indicates if the Image has to be persistent. Defaults to false.
    size number
    Size of the image in MB. Conflicts with clone_from_image.
    tags {[key: string]: string}
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    target string
    Device target on Virtual Machine.
    templateSections ImageTemplateSection[]
    Allow to add a custom vector. See Template section parameters
    timeout number
    Timeout (in Minutes) for Image availability. Defaults to 10 minutes.

    Deprecated: Deprecated

    timeouts ImageTimeouts
    type string
    Type of the image. Supported values: OS, CDROM, DATABLOCK, KERNEL, RAMDISK or CONTEXT. Conflicts with clone_from_image.
    datastore_id float
    ID of the datastore used to store the image. The datastore_id must be an active IMAGE datastore.
    clone_from_image str
    ID or name of the image to clone from. Conflicts with path, size and type.
    description str
    Description of the image.
    dev_prefix str
    Device prefix on Virtual Machine. Usually one of these: hd, sd or vd.
    driver str
    OpenNebula Driver to use.
    format str
    Image format. Example: raw, qcow2.
    group str
    Name of the group which owns the image. Defaults to the caller primary group.
    image_id str
    ID of the image.
    lock str
    Lock the image with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    name str
    The name of the image.
    path str
    Path or URL of the original image to use. Conflicts with clone_from_image.
    permissions str
    Permissions applied to the image. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    persistent bool
    Flag which indicates if the Image has to be persistent. Defaults to false.
    size float
    Size of the image in MB. Conflicts with clone_from_image.
    tags Mapping[str, str]
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    target str
    Device target on Virtual Machine.
    template_sections Sequence[ImageTemplateSectionArgs]
    Allow to add a custom vector. See Template section parameters
    timeout float
    Timeout (in Minutes) for Image availability. Defaults to 10 minutes.

    Deprecated: Deprecated

    timeouts ImageTimeoutsArgs
    type str
    Type of the image. Supported values: OS, CDROM, DATABLOCK, KERNEL, RAMDISK or CONTEXT. Conflicts with clone_from_image.
    datastoreId Number
    ID of the datastore used to store the image. The datastore_id must be an active IMAGE datastore.
    cloneFromImage String
    ID or name of the image to clone from. Conflicts with path, size and type.
    description String
    Description of the image.
    devPrefix String
    Device prefix on Virtual Machine. Usually one of these: hd, sd or vd.
    driver String
    OpenNebula Driver to use.
    format String
    Image format. Example: raw, qcow2.
    group String
    Name of the group which owns the image. Defaults to the caller primary group.
    imageId String
    ID of the image.
    lock String
    Lock the image with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    name String
    The name of the image.
    path String
    Path or URL of the original image to use. Conflicts with clone_from_image.
    permissions String
    Permissions applied to the image. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    persistent Boolean
    Flag which indicates if the Image has to be persistent. Defaults to false.
    size Number
    Size of the image in MB. Conflicts with clone_from_image.
    tags Map<String>
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    target String
    Device target on Virtual Machine.
    templateSections List<Property Map>
    Allow to add a custom vector. See Template section parameters
    timeout Number
    Timeout (in Minutes) for Image availability. Defaults to 10 minutes.

    Deprecated: Deprecated

    timeouts Property Map
    type String
    Type of the image. Supported values: OS, CDROM, DATABLOCK, KERNEL, RAMDISK or CONTEXT. Conflicts with clone_from_image.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Image resource produces the following output properties:

    DefaultTags Dictionary<string, string>
    Default tags defined in the provider configuration.
    Gid double
    Group ID which owns the image.
    Gname string
    Group Name which owns the image.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    Result of the applied default_tags and then resource tags.
    Uid double
    User ID whom owns the image.
    Uname string
    User Name whom owns the image.
    DefaultTags map[string]string
    Default tags defined in the provider configuration.
    Gid float64
    Group ID which owns the image.
    Gname string
    Group Name which owns the image.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    Result of the applied default_tags and then resource tags.
    Uid float64
    User ID whom owns the image.
    Uname string
    User Name whom owns the image.
    defaultTags Map<String,String>
    Default tags defined in the provider configuration.
    gid Double
    Group ID which owns the image.
    gname String
    Group Name which owns the image.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    Result of the applied default_tags and then resource tags.
    uid Double
    User ID whom owns the image.
    uname String
    User Name whom owns the image.
    defaultTags {[key: string]: string}
    Default tags defined in the provider configuration.
    gid number
    Group ID which owns the image.
    gname string
    Group Name which owns the image.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    Result of the applied default_tags and then resource tags.
    uid number
    User ID whom owns the image.
    uname string
    User Name whom owns the image.
    default_tags Mapping[str, str]
    Default tags defined in the provider configuration.
    gid float
    Group ID which owns the image.
    gname str
    Group Name which owns the image.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    Result of the applied default_tags and then resource tags.
    uid float
    User ID whom owns the image.
    uname str
    User Name whom owns the image.
    defaultTags Map<String>
    Default tags defined in the provider configuration.
    gid Number
    Group ID which owns the image.
    gname String
    Group Name which owns the image.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    Result of the applied default_tags and then resource tags.
    uid Number
    User ID whom owns the image.
    uname String
    User Name whom owns the image.

    Look up Existing Image Resource

    Get an existing Image resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ImageState, opts?: CustomResourceOptions): Image
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            clone_from_image: Optional[str] = None,
            datastore_id: Optional[float] = None,
            default_tags: Optional[Mapping[str, str]] = None,
            description: Optional[str] = None,
            dev_prefix: Optional[str] = None,
            driver: Optional[str] = None,
            format: Optional[str] = None,
            gid: Optional[float] = None,
            gname: Optional[str] = None,
            group: Optional[str] = None,
            image_id: Optional[str] = None,
            lock: Optional[str] = None,
            name: Optional[str] = None,
            path: Optional[str] = None,
            permissions: Optional[str] = None,
            persistent: Optional[bool] = None,
            size: Optional[float] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            target: Optional[str] = None,
            template_sections: Optional[Sequence[ImageTemplateSectionArgs]] = None,
            timeout: Optional[float] = None,
            timeouts: Optional[ImageTimeoutsArgs] = None,
            type: Optional[str] = None,
            uid: Optional[float] = None,
            uname: Optional[str] = None) -> Image
    func GetImage(ctx *Context, name string, id IDInput, state *ImageState, opts ...ResourceOption) (*Image, error)
    public static Image Get(string name, Input<string> id, ImageState? state, CustomResourceOptions? opts = null)
    public static Image get(String name, Output<String> id, ImageState state, CustomResourceOptions options)
    resources:  _:    type: opennebula:Image    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CloneFromImage string
    ID or name of the image to clone from. Conflicts with path, size and type.
    DatastoreId double
    ID of the datastore used to store the image. The datastore_id must be an active IMAGE datastore.
    DefaultTags Dictionary<string, string>
    Default tags defined in the provider configuration.
    Description string
    Description of the image.
    DevPrefix string
    Device prefix on Virtual Machine. Usually one of these: hd, sd or vd.
    Driver string
    OpenNebula Driver to use.
    Format string
    Image format. Example: raw, qcow2.
    Gid double
    Group ID which owns the image.
    Gname string
    Group Name which owns the image.
    Group string
    Name of the group which owns the image. Defaults to the caller primary group.
    ImageId string
    ID of the image.
    Lock string
    Lock the image with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    Name string
    The name of the image.
    Path string
    Path or URL of the original image to use. Conflicts with clone_from_image.
    Permissions string
    Permissions applied to the image. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    Persistent bool
    Flag which indicates if the Image has to be persistent. Defaults to false.
    Size double
    Size of the image in MB. Conflicts with clone_from_image.
    Tags Dictionary<string, string>
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    TagsAll Dictionary<string, string>
    Result of the applied default_tags and then resource tags.
    Target string
    Device target on Virtual Machine.
    TemplateSections List<ImageTemplateSection>
    Allow to add a custom vector. See Template section parameters
    Timeout double
    Timeout (in Minutes) for Image availability. Defaults to 10 minutes.

    Deprecated: Deprecated

    Timeouts ImageTimeouts
    Type string
    Type of the image. Supported values: OS, CDROM, DATABLOCK, KERNEL, RAMDISK or CONTEXT. Conflicts with clone_from_image.
    Uid double
    User ID whom owns the image.
    Uname string
    User Name whom owns the image.
    CloneFromImage string
    ID or name of the image to clone from. Conflicts with path, size and type.
    DatastoreId float64
    ID of the datastore used to store the image. The datastore_id must be an active IMAGE datastore.
    DefaultTags map[string]string
    Default tags defined in the provider configuration.
    Description string
    Description of the image.
    DevPrefix string
    Device prefix on Virtual Machine. Usually one of these: hd, sd or vd.
    Driver string
    OpenNebula Driver to use.
    Format string
    Image format. Example: raw, qcow2.
    Gid float64
    Group ID which owns the image.
    Gname string
    Group Name which owns the image.
    Group string
    Name of the group which owns the image. Defaults to the caller primary group.
    ImageId string
    ID of the image.
    Lock string
    Lock the image with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    Name string
    The name of the image.
    Path string
    Path or URL of the original image to use. Conflicts with clone_from_image.
    Permissions string
    Permissions applied to the image. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    Persistent bool
    Flag which indicates if the Image has to be persistent. Defaults to false.
    Size float64
    Size of the image in MB. Conflicts with clone_from_image.
    Tags map[string]string
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    TagsAll map[string]string
    Result of the applied default_tags and then resource tags.
    Target string
    Device target on Virtual Machine.
    TemplateSections []ImageTemplateSectionArgs
    Allow to add a custom vector. See Template section parameters
    Timeout float64
    Timeout (in Minutes) for Image availability. Defaults to 10 minutes.

    Deprecated: Deprecated

    Timeouts ImageTimeoutsArgs
    Type string
    Type of the image. Supported values: OS, CDROM, DATABLOCK, KERNEL, RAMDISK or CONTEXT. Conflicts with clone_from_image.
    Uid float64
    User ID whom owns the image.
    Uname string
    User Name whom owns the image.
    cloneFromImage String
    ID or name of the image to clone from. Conflicts with path, size and type.
    datastoreId Double
    ID of the datastore used to store the image. The datastore_id must be an active IMAGE datastore.
    defaultTags Map<String,String>
    Default tags defined in the provider configuration.
    description String
    Description of the image.
    devPrefix String
    Device prefix on Virtual Machine. Usually one of these: hd, sd or vd.
    driver String
    OpenNebula Driver to use.
    format String
    Image format. Example: raw, qcow2.
    gid Double
    Group ID which owns the image.
    gname String
    Group Name which owns the image.
    group String
    Name of the group which owns the image. Defaults to the caller primary group.
    imageId String
    ID of the image.
    lock String
    Lock the image with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    name String
    The name of the image.
    path String
    Path or URL of the original image to use. Conflicts with clone_from_image.
    permissions String
    Permissions applied to the image. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    persistent Boolean
    Flag which indicates if the Image has to be persistent. Defaults to false.
    size Double
    Size of the image in MB. Conflicts with clone_from_image.
    tags Map<String,String>
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    tagsAll Map<String,String>
    Result of the applied default_tags and then resource tags.
    target String
    Device target on Virtual Machine.
    templateSections List<ImageTemplateSection>
    Allow to add a custom vector. See Template section parameters
    timeout Double
    Timeout (in Minutes) for Image availability. Defaults to 10 minutes.

    Deprecated: Deprecated

    timeouts ImageTimeouts
    type String
    Type of the image. Supported values: OS, CDROM, DATABLOCK, KERNEL, RAMDISK or CONTEXT. Conflicts with clone_from_image.
    uid Double
    User ID whom owns the image.
    uname String
    User Name whom owns the image.
    cloneFromImage string
    ID or name of the image to clone from. Conflicts with path, size and type.
    datastoreId number
    ID of the datastore used to store the image. The datastore_id must be an active IMAGE datastore.
    defaultTags {[key: string]: string}
    Default tags defined in the provider configuration.
    description string
    Description of the image.
    devPrefix string
    Device prefix on Virtual Machine. Usually one of these: hd, sd or vd.
    driver string
    OpenNebula Driver to use.
    format string
    Image format. Example: raw, qcow2.
    gid number
    Group ID which owns the image.
    gname string
    Group Name which owns the image.
    group string
    Name of the group which owns the image. Defaults to the caller primary group.
    imageId string
    ID of the image.
    lock string
    Lock the image with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    name string
    The name of the image.
    path string
    Path or URL of the original image to use. Conflicts with clone_from_image.
    permissions string
    Permissions applied to the image. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    persistent boolean
    Flag which indicates if the Image has to be persistent. Defaults to false.
    size number
    Size of the image in MB. Conflicts with clone_from_image.
    tags {[key: string]: string}
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    tagsAll {[key: string]: string}
    Result of the applied default_tags and then resource tags.
    target string
    Device target on Virtual Machine.
    templateSections ImageTemplateSection[]
    Allow to add a custom vector. See Template section parameters
    timeout number
    Timeout (in Minutes) for Image availability. Defaults to 10 minutes.

    Deprecated: Deprecated

    timeouts ImageTimeouts
    type string
    Type of the image. Supported values: OS, CDROM, DATABLOCK, KERNEL, RAMDISK or CONTEXT. Conflicts with clone_from_image.
    uid number
    User ID whom owns the image.
    uname string
    User Name whom owns the image.
    clone_from_image str
    ID or name of the image to clone from. Conflicts with path, size and type.
    datastore_id float
    ID of the datastore used to store the image. The datastore_id must be an active IMAGE datastore.
    default_tags Mapping[str, str]
    Default tags defined in the provider configuration.
    description str
    Description of the image.
    dev_prefix str
    Device prefix on Virtual Machine. Usually one of these: hd, sd or vd.
    driver str
    OpenNebula Driver to use.
    format str
    Image format. Example: raw, qcow2.
    gid float
    Group ID which owns the image.
    gname str
    Group Name which owns the image.
    group str
    Name of the group which owns the image. Defaults to the caller primary group.
    image_id str
    ID of the image.
    lock str
    Lock the image with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    name str
    The name of the image.
    path str
    Path or URL of the original image to use. Conflicts with clone_from_image.
    permissions str
    Permissions applied to the image. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    persistent bool
    Flag which indicates if the Image has to be persistent. Defaults to false.
    size float
    Size of the image in MB. Conflicts with clone_from_image.
    tags Mapping[str, str]
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    tags_all Mapping[str, str]
    Result of the applied default_tags and then resource tags.
    target str
    Device target on Virtual Machine.
    template_sections Sequence[ImageTemplateSectionArgs]
    Allow to add a custom vector. See Template section parameters
    timeout float
    Timeout (in Minutes) for Image availability. Defaults to 10 minutes.

    Deprecated: Deprecated

    timeouts ImageTimeoutsArgs
    type str
    Type of the image. Supported values: OS, CDROM, DATABLOCK, KERNEL, RAMDISK or CONTEXT. Conflicts with clone_from_image.
    uid float
    User ID whom owns the image.
    uname str
    User Name whom owns the image.
    cloneFromImage String
    ID or name of the image to clone from. Conflicts with path, size and type.
    datastoreId Number
    ID of the datastore used to store the image. The datastore_id must be an active IMAGE datastore.
    defaultTags Map<String>
    Default tags defined in the provider configuration.
    description String
    Description of the image.
    devPrefix String
    Device prefix on Virtual Machine. Usually one of these: hd, sd or vd.
    driver String
    OpenNebula Driver to use.
    format String
    Image format. Example: raw, qcow2.
    gid Number
    Group ID which owns the image.
    gname String
    Group Name which owns the image.
    group String
    Name of the group which owns the image. Defaults to the caller primary group.
    imageId String
    ID of the image.
    lock String
    Lock the image with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    name String
    The name of the image.
    path String
    Path or URL of the original image to use. Conflicts with clone_from_image.
    permissions String
    Permissions applied to the image. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    persistent Boolean
    Flag which indicates if the Image has to be persistent. Defaults to false.
    size Number
    Size of the image in MB. Conflicts with clone_from_image.
    tags Map<String>
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    tagsAll Map<String>
    Result of the applied default_tags and then resource tags.
    target String
    Device target on Virtual Machine.
    templateSections List<Property Map>
    Allow to add a custom vector. See Template section parameters
    timeout Number
    Timeout (in Minutes) for Image availability. Defaults to 10 minutes.

    Deprecated: Deprecated

    timeouts Property Map
    type String
    Type of the image. Supported values: OS, CDROM, DATABLOCK, KERNEL, RAMDISK or CONTEXT. Conflicts with clone_from_image.
    uid Number
    User ID whom owns the image.
    uname String
    User Name whom owns the image.

    Supporting Types

    ImageTemplateSection, ImageTemplateSectionArgs

    Name string
    The vector name.
    Elements Dictionary<string, string>
    Collection of custom tags.
    Name string
    The vector name.
    Elements map[string]string
    Collection of custom tags.
    name String
    The vector name.
    elements Map<String,String>
    Collection of custom tags.
    name string
    The vector name.
    elements {[key: string]: string}
    Collection of custom tags.
    name str
    The vector name.
    elements Mapping[str, str]
    Collection of custom tags.
    name String
    The vector name.
    elements Map<String>
    Collection of custom tags.

    ImageTimeouts, ImageTimeoutsArgs

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

    Import

    opennebula_image can be imported using its ID:

    $ pulumi import opennebula:index/image:Image example 123
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    opennebula opennebula/terraform-provider-opennebula
    License
    Notes
    This Pulumi package is based on the opennebula Terraform Provider.
    opennebula logo
    opennebula 1.4.1 published on Monday, Apr 14, 2025 by opennebula