1. Packages
  2. Vultr
  3. API Docs
  4. getIsoPrivate
Vultr v2.23.1 published on Tuesday, Dec 10, 2024 by dirien

vultr.getIsoPrivate

Explore with Pulumi AI

Vultr v2.23.1 published on Tuesday, Dec 10, 2024 by dirien

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

Example Usage

Get the information for a ISO file by filename:

import * as pulumi from "@pulumi/pulumi";
import * as vultr from "@pulumi/vultr";

const myIso = vultr.getIsoPrivate({
    filters: [{
        name: "filename",
        values: ["my-iso-filename"],
    }],
});
Copy
import pulumi
import pulumi_vultr as vultr

my_iso = vultr.get_iso_private(filters=[{
    "name": "filename",
    "values": ["my-iso-filename"],
}])
Copy
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
	})
}
Copy
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",
                },
            },
        },
    });

});
Copy
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());

    }
}
Copy
variables:
  myIso:
    fn::invoke:
      Function: vultr:getIsoPrivate
      Arguments:
        filters:
          - name: filename
            values:
              - my-iso-filename
Copy

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>
Copy
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]
Copy
func LookupIsoPrivate(ctx *Context, args *LookupIsoPrivateArgs, opts ...InvokeOption) (*LookupIsoPrivateResult, error)
func LookupIsoPrivateOutput(ctx *Context, args *LookupIsoPrivateOutputArgs, opts ...InvokeOption) LookupIsoPrivateResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetIsoPrivateResult> getIsoPrivate(GetIsoPrivateArgs args, InvokeOptions options)
public static Output<GetIsoPrivateResult> getIsoPrivate(GetIsoPrivateArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: vultr:index/getIsoPrivate:getIsoPrivate
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filters Changes to this property will trigger replacement. List<ediri.Vultr.Inputs.GetIsoPrivateFilter>
Query parameters for finding ISO files.
Filters Changes to this property will trigger replacement. []GetIsoPrivateFilter
Query parameters for finding ISO files.
filters Changes to this property will trigger replacement. List<GetIsoPrivateFilter>
Query parameters for finding ISO files.
filters Changes to this property will trigger replacement. GetIsoPrivateFilter[]
Query parameters for finding ISO files.
filters Changes to this property will trigger replacement. Sequence[GetIsoPrivateFilter]
Query parameters for finding ISO files.
filters Changes to this property will trigger replacement. 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 This property is required. string
Attribute name to filter with.
Values This property is required. List<string>
One or more values filter with.
Name This property is required. string
Attribute name to filter with.
Values This property is required. []string
One or more values filter with.
name This property is required. String
Attribute name to filter with.
values This property is required. List<String>
One or more values filter with.
name This property is required. string
Attribute name to filter with.
values This property is required. string[]
One or more values filter with.
name This property is required. str
Attribute name to filter with.
values This property is required. Sequence[str]
One or more values filter with.
name This property is required. String
Attribute name to filter with.
values This property is required. 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 v2.23.1 published on Tuesday, Dec 10, 2024 by dirien