1. Packages
  2. Vultr
  3. API Docs
  4. getIsoPrivate
Vultr v2.19.0 published on Friday, Jan 5, 2024 by dirien

vultr.getIsoPrivate

Explore with Pulumi AI

vultr logo
Vultr v2.19.0 published on Friday, Jan 5, 2024 by dirien

    Get information about an ISO file uploaded to your Vultr account.

    Example Usage

    Get the information for a ISO file by

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vultr = Pulumi.Vultr;
    
    return await Deployment.RunAsync(() => 
    {
        var myIso = Vultr.GetIsoPrivate.Invoke(new()
        {
            Filters = new[]
            {
                new Vultr.Inputs.GetIsoPrivateFilterInputArgs
                {
                    Name = "filename",
                    Values = new[]
                    {
                        "my-iso-filename",
                    },
                },
            },
        });
    
    });
    
    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.LookupIsoPrivate(ctx, &vultr.LookupIsoPrivateArgs{
    			Filters: []vultr.GetIsoPrivateFilter{
    				{
    					Name: "filename",
    					Values: []string{
    						"my-iso-filename",
    					},
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vultr.VultrFunctions;
    import com.pulumi.vultr.inputs.GetIsoPrivateArgs;
    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 myIso = VultrFunctions.getIsoPrivate(GetIsoPrivateArgs.builder()
                .filters(GetIsoPrivateFilterArgs.builder()
                    .name("filename")
                    .values("my-iso-filename")
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_vultr as vultr
    
    my_iso = vultr.get_iso_private(filters=[vultr.GetIsoPrivateFilterArgs(
        name="filename",
        values=["my-iso-filename"],
    )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as vultr from "@pulumi/vultr";
    
    const myIso = vultr.getIsoPrivate({
        filters: [{
            name: "filename",
            values: ["my-iso-filename"],
        }],
    });
    
    variables:
      myIso:
        fn::invoke:
          Function: vultr:getIsoPrivate
          Arguments:
            filters:
              - name: filename
                values:
                  - my-iso-filename
    

    Using getIsoPrivate

    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 getIsoPrivate(args: GetIsoPrivateArgs, opts?: InvokeOptions): Promise<GetIsoPrivateResult>
    function getIsoPrivateOutput(args: GetIsoPrivateOutputArgs, opts?: InvokeOptions): Output<GetIsoPrivateResult>
    def get_iso_private(filters: Optional[Sequence[GetIsoPrivateFilter]] = None,
                        opts: Optional[InvokeOptions] = None) -> GetIsoPrivateResult
    def get_iso_private_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetIsoPrivateFilterArgs]]]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetIsoPrivateResult]
    func LookupIsoPrivate(ctx *Context, args *LookupIsoPrivateArgs, opts ...InvokeOption) (*LookupIsoPrivateResult, error)
    func LookupIsoPrivateOutput(ctx *Context, args *LookupIsoPrivateOutputArgs, opts ...InvokeOption) LookupIsoPrivateResultOutput

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

    public static class GetIsoPrivate 
    {
        public static Task<GetIsoPrivateResult> InvokeAsync(GetIsoPrivateArgs args, InvokeOptions? opts = null)
        public static Output<GetIsoPrivateResult> Invoke(GetIsoPrivateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsoPrivateResult> getIsoPrivate(GetIsoPrivateArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: vultr:index/getIsoPrivate:getIsoPrivate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filters List<ediri.Vultr.Inputs.GetIsoPrivateFilter>
    Query parameters for finding ISO files.
    Filters []GetIsoPrivateFilter
    Query parameters for finding ISO files.
    filters List<GetIsoPrivateFilter>
    Query parameters for finding ISO files.
    filters GetIsoPrivateFilter[]
    Query parameters for finding ISO files.
    filters Sequence[GetIsoPrivateFilter]
    Query parameters for finding ISO files.
    filters List<Property Map>
    Query parameters for finding ISO files.

    getIsoPrivate Result

    The following output properties are available:

    DateCreated string
    The date the ISO file was added to your Vultr account.
    Filename string
    The ISO file's filename.
    Id string
    The provider-assigned unique ID for this managed resource.
    Md5sum string
    The md5 hash of the ISO file.
    Sha512sum string
    The sha512 hash of the ISO file.
    Size int
    The size of the ISO file in bytes.
    Status string
    The status of the ISO file.
    Filters List<ediri.Vultr.Outputs.GetIsoPrivateFilter>
    DateCreated string
    The date the ISO file was added to your Vultr account.
    Filename string
    The ISO file's filename.
    Id string
    The provider-assigned unique ID for this managed resource.
    Md5sum string
    The md5 hash of the ISO file.
    Sha512sum string
    The sha512 hash of the ISO file.
    Size int
    The size of the ISO file in bytes.
    Status string
    The status of the ISO file.
    Filters []GetIsoPrivateFilter
    dateCreated String
    The date the ISO file was added to your Vultr account.
    filename String
    The ISO file's filename.
    id String
    The provider-assigned unique ID for this managed resource.
    md5sum String
    The md5 hash of the ISO file.
    sha512sum String
    The sha512 hash of the ISO file.
    size Integer
    The size of the ISO file in bytes.
    status String
    The status of the ISO file.
    filters List<GetIsoPrivateFilter>
    dateCreated string
    The date the ISO file was added to your Vultr account.
    filename string
    The ISO file's filename.
    id string
    The provider-assigned unique ID for this managed resource.
    md5sum string
    The md5 hash of the ISO file.
    sha512sum string
    The sha512 hash of the ISO file.
    size number
    The size of the ISO file in bytes.
    status string
    The status of the ISO file.
    filters GetIsoPrivateFilter[]
    date_created str
    The date the ISO file was added to your Vultr account.
    filename str
    The ISO file's filename.
    id str
    The provider-assigned unique ID for this managed resource.
    md5sum str
    The md5 hash of the ISO file.
    sha512sum str
    The sha512 hash of the ISO file.
    size int
    The size of the ISO file in bytes.
    status str
    The status of the ISO file.
    filters Sequence[GetIsoPrivateFilter]
    dateCreated String
    The date the ISO file was added to your Vultr account.
    filename String
    The ISO file's filename.
    id String
    The provider-assigned unique ID for this managed resource.
    md5sum String
    The md5 hash of the ISO file.
    sha512sum String
    The sha512 hash of the ISO file.
    size Number
    The size of the ISO file in bytes.
    status String
    The status of the ISO file.
    filters List<Property Map>

    Supporting Types

    GetIsoPrivateFilter

    Name string
    Attribute name to filter with.
    Values List<string>
    One or more values filter with.
    Name string
    Attribute name to filter with.
    Values []string
    One or more values filter with.
    name String
    Attribute name to filter with.
    values List<String>
    One or more values filter with.
    name string
    Attribute name to filter with.
    values string[]
    One or more values filter with.
    name str
    Attribute name to filter with.
    values Sequence[str]
    One or more values filter with.
    name String
    Attribute name to filter with.
    values List<String>
    One or more values filter with.

    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.19.0 published on Friday, Jan 5, 2024 by dirien