Vultr v2.21.1 published on Monday, Jul 22, 2024 by dirien
vultr.getIsoPrivate
Explore with Pulumi AI
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"],
}],
});
import pulumi
import pulumi_vultr as vultr
my_iso = vultr.get_iso_private(filters=[vultr.GetIsoPrivateFilterArgs(
name="filename",
values=["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
})
}
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 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());
}
}
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. Get Iso Private Filter> - Query parameters for finding ISO files.
- Filters
[]Get
Iso Private Filter - Query parameters for finding ISO files.
- filters
List<Get
Iso Private Filter> - Query parameters for finding ISO files.
- filters
Get
Iso Private Filter[] - Query parameters for finding ISO files.
- filters
Sequence[Get
Iso Private Filter] - Query parameters for finding ISO files.
- filters List<Property Map>
- Query parameters for finding ISO files.
getIsoPrivate Result
The following output properties are available:
- Date
Created 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. Get Iso Private Filter>
- Date
Created 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
[]Get
Iso Private Filter
- date
Created 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<Get
Iso Private Filter>
- date
Created 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
Get
Iso Private Filter[]
- 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[Get
Iso Private Filter]
- date
Created 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
Package Details
- Repository
- vultr dirien/pulumi-vultr
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vultr
Terraform Provider.