1. Packages
  2. Vultr
  3. API Docs
  4. SnapshotFromUrl
Vultr v2.21.0 published on Wednesday, Jun 19, 2024 by dirien

vultr.SnapshotFromUrl

Explore with Pulumi AI

vultr logo
Vultr v2.21.0 published on Wednesday, Jun 19, 2024 by dirien

    Provides a Vultr Snapshots from URL resource. This can be used to create, read, modify, and delete Snapshots from URL.

    Example Usage

    Create a new Snapshots from URL

    import * as pulumi from "@pulumi/pulumi";
    import * as vultr from "@ediri/vultr";
    
    const mySnapshot = new vultr.SnapshotFromUrl("mySnapshot", {url: "http://dl-cdn.alpinelinux.org/alpine/v3.9/releases/x86_64/alpine-virt-3.9.1-x86_64.iso"});
    
    import pulumi
    import ediri_vultr as vultr
    
    my_snapshot = vultr.SnapshotFromUrl("mySnapshot", url="http://dl-cdn.alpinelinux.org/alpine/v3.9/releases/x86_64/alpine-virt-3.9.1-x86_64.iso")
    
    package main
    
    import (
    	"github.com/dirien/pulumi-vultr/sdk/v2/go/vultr"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vultr.NewSnapshotFromUrl(ctx, "mySnapshot", &vultr.SnapshotFromUrlArgs{
    			Url: pulumi.String("http://dl-cdn.alpinelinux.org/alpine/v3.9/releases/x86_64/alpine-virt-3.9.1-x86_64.iso"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vultr = ediri.Vultr;
    
    return await Deployment.RunAsync(() => 
    {
        var mySnapshot = new Vultr.SnapshotFromUrl("mySnapshot", new()
        {
            Url = "http://dl-cdn.alpinelinux.org/alpine/v3.9/releases/x86_64/alpine-virt-3.9.1-x86_64.iso",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vultr.SnapshotFromUrl;
    import com.pulumi.vultr.SnapshotFromUrlArgs;
    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 mySnapshot = new SnapshotFromUrl("mySnapshot", SnapshotFromUrlArgs.builder()
                .url("http://dl-cdn.alpinelinux.org/alpine/v3.9/releases/x86_64/alpine-virt-3.9.1-x86_64.iso")
                .build());
    
        }
    }
    
    resources:
      mySnapshot:
        type: vultr:SnapshotFromUrl
        properties:
          url: http://dl-cdn.alpinelinux.org/alpine/v3.9/releases/x86_64/alpine-virt-3.9.1-x86_64.iso
    

    Create SnapshotFromUrl Resource

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

    Constructor syntax

    new SnapshotFromUrl(name: string, args: SnapshotFromUrlArgs, opts?: CustomResourceOptions);
    @overload
    def SnapshotFromUrl(resource_name: str,
                        args: SnapshotFromUrlArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def SnapshotFromUrl(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        url: Optional[str] = None)
    func NewSnapshotFromUrl(ctx *Context, name string, args SnapshotFromUrlArgs, opts ...ResourceOption) (*SnapshotFromUrl, error)
    public SnapshotFromUrl(string name, SnapshotFromUrlArgs args, CustomResourceOptions? opts = null)
    public SnapshotFromUrl(String name, SnapshotFromUrlArgs args)
    public SnapshotFromUrl(String name, SnapshotFromUrlArgs args, CustomResourceOptions options)
    
    type: vultr:SnapshotFromUrl
    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 SnapshotFromUrlArgs
    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 SnapshotFromUrlArgs
    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 SnapshotFromUrlArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SnapshotFromUrlArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SnapshotFromUrlArgs
    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 snapshotFromUrlResource = new Vultr.SnapshotFromUrl("snapshotFromUrlResource", new()
    {
        Url = "string",
    });
    
    example, err := vultr.NewSnapshotFromUrl(ctx, "snapshotFromUrlResource", &vultr.SnapshotFromUrlArgs{
    	Url: pulumi.String("string"),
    })
    
    var snapshotFromUrlResource = new SnapshotFromUrl("snapshotFromUrlResource", SnapshotFromUrlArgs.builder()
        .url("string")
        .build());
    
    snapshot_from_url_resource = vultr.SnapshotFromUrl("snapshotFromUrlResource", url="string")
    
    const snapshotFromUrlResource = new vultr.SnapshotFromUrl("snapshotFromUrlResource", {url: "string"});
    
    type: vultr:SnapshotFromUrl
    properties:
        url: string
    

    SnapshotFromUrl Resource Properties

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

    Inputs

    The SnapshotFromUrl resource accepts the following input properties:

    Url string
    URL of the given resource you want to create a snapshot from.
    Url string
    URL of the given resource you want to create a snapshot from.
    url String
    URL of the given resource you want to create a snapshot from.
    url string
    URL of the given resource you want to create a snapshot from.
    url str
    URL of the given resource you want to create a snapshot from.
    url String
    URL of the given resource you want to create a snapshot from.

    Outputs

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

    AppId int
    The app id which the snapshot is associated with.
    DateCreated string
    The date the snapshot was created.
    Description string
    The description for the given snapshot.
    Id string
    The provider-assigned unique ID for this managed resource.
    OsId int
    The os id which the snapshot is associated with.
    Size int
    The size of the snapshot in Bytes.
    Status string
    The status for the given snapshot.
    AppId int
    The app id which the snapshot is associated with.
    DateCreated string
    The date the snapshot was created.
    Description string
    The description for the given snapshot.
    Id string
    The provider-assigned unique ID for this managed resource.
    OsId int
    The os id which the snapshot is associated with.
    Size int
    The size of the snapshot in Bytes.
    Status string
    The status for the given snapshot.
    appId Integer
    The app id which the snapshot is associated with.
    dateCreated String
    The date the snapshot was created.
    description String
    The description for the given snapshot.
    id String
    The provider-assigned unique ID for this managed resource.
    osId Integer
    The os id which the snapshot is associated with.
    size Integer
    The size of the snapshot in Bytes.
    status String
    The status for the given snapshot.
    appId number
    The app id which the snapshot is associated with.
    dateCreated string
    The date the snapshot was created.
    description string
    The description for the given snapshot.
    id string
    The provider-assigned unique ID for this managed resource.
    osId number
    The os id which the snapshot is associated with.
    size number
    The size of the snapshot in Bytes.
    status string
    The status for the given snapshot.
    app_id int
    The app id which the snapshot is associated with.
    date_created str
    The date the snapshot was created.
    description str
    The description for the given snapshot.
    id str
    The provider-assigned unique ID for this managed resource.
    os_id int
    The os id which the snapshot is associated with.
    size int
    The size of the snapshot in Bytes.
    status str
    The status for the given snapshot.
    appId Number
    The app id which the snapshot is associated with.
    dateCreated String
    The date the snapshot was created.
    description String
    The description for the given snapshot.
    id String
    The provider-assigned unique ID for this managed resource.
    osId Number
    The os id which the snapshot is associated with.
    size Number
    The size of the snapshot in Bytes.
    status String
    The status for the given snapshot.

    Look up Existing SnapshotFromUrl Resource

    Get an existing SnapshotFromUrl 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?: SnapshotFromUrlState, opts?: CustomResourceOptions): SnapshotFromUrl
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            app_id: Optional[int] = None,
            date_created: Optional[str] = None,
            description: Optional[str] = None,
            os_id: Optional[int] = None,
            size: Optional[int] = None,
            status: Optional[str] = None,
            url: Optional[str] = None) -> SnapshotFromUrl
    func GetSnapshotFromUrl(ctx *Context, name string, id IDInput, state *SnapshotFromUrlState, opts ...ResourceOption) (*SnapshotFromUrl, error)
    public static SnapshotFromUrl Get(string name, Input<string> id, SnapshotFromUrlState? state, CustomResourceOptions? opts = null)
    public static SnapshotFromUrl get(String name, Output<String> id, SnapshotFromUrlState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    AppId int
    The app id which the snapshot is associated with.
    DateCreated string
    The date the snapshot was created.
    Description string
    The description for the given snapshot.
    OsId int
    The os id which the snapshot is associated with.
    Size int
    The size of the snapshot in Bytes.
    Status string
    The status for the given snapshot.
    Url string
    URL of the given resource you want to create a snapshot from.
    AppId int
    The app id which the snapshot is associated with.
    DateCreated string
    The date the snapshot was created.
    Description string
    The description for the given snapshot.
    OsId int
    The os id which the snapshot is associated with.
    Size int
    The size of the snapshot in Bytes.
    Status string
    The status for the given snapshot.
    Url string
    URL of the given resource you want to create a snapshot from.
    appId Integer
    The app id which the snapshot is associated with.
    dateCreated String
    The date the snapshot was created.
    description String
    The description for the given snapshot.
    osId Integer
    The os id which the snapshot is associated with.
    size Integer
    The size of the snapshot in Bytes.
    status String
    The status for the given snapshot.
    url String
    URL of the given resource you want to create a snapshot from.
    appId number
    The app id which the snapshot is associated with.
    dateCreated string
    The date the snapshot was created.
    description string
    The description for the given snapshot.
    osId number
    The os id which the snapshot is associated with.
    size number
    The size of the snapshot in Bytes.
    status string
    The status for the given snapshot.
    url string
    URL of the given resource you want to create a snapshot from.
    app_id int
    The app id which the snapshot is associated with.
    date_created str
    The date the snapshot was created.
    description str
    The description for the given snapshot.
    os_id int
    The os id which the snapshot is associated with.
    size int
    The size of the snapshot in Bytes.
    status str
    The status for the given snapshot.
    url str
    URL of the given resource you want to create a snapshot from.
    appId Number
    The app id which the snapshot is associated with.
    dateCreated String
    The date the snapshot was created.
    description String
    The description for the given snapshot.
    osId Number
    The os id which the snapshot is associated with.
    size Number
    The size of the snapshot in Bytes.
    status String
    The status for the given snapshot.
    url String
    URL of the given resource you want to create a snapshot from.

    Import

    Snapshots from Url can be imported using the Snapshot ID, e.g.

    $ pulumi import vultr:index/snapshotFromUrl:SnapshotFromUrl my_snapshot e60dc0a2-9313-4bab-bffc-57ffe33d99f6
    

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

    Package Details

    Repository
    vultr dirien/pulumi-vultr
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the vultr Terraform Provider.
    vultr logo
    Vultr v2.21.0 published on Wednesday, Jun 19, 2024 by dirien