Vultr v2.21.0 published on Wednesday, Jun 19, 2024 by dirien
vultr.getIsoPublic
Explore with Pulumi AI
Get information about an ISO file offered in the Vultr ISO library.
Example Usage
Get the information for a ISO file by description
:
import * as pulumi from "@pulumi/pulumi";
import * as vultr from "@pulumi/vultr";
const myIso = vultr.getIsoPublic({
filters: [{
name: "description",
values: ["iso-description"],
}],
});
import pulumi
import pulumi_vultr as vultr
my_iso = vultr.get_iso_public(filters=[vultr.GetIsoPublicFilterArgs(
name="description",
values=["iso-description"],
)])
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.GetIsoPublic(ctx, &vultr.GetIsoPublicArgs{
Filters: []vultr.GetIsoPublicFilter{
{
Name: "description",
Values: []string{
"iso-description",
},
},
},
}, 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.GetIsoPublic.Invoke(new()
{
Filters = new[]
{
new Vultr.Inputs.GetIsoPublicFilterInputArgs
{
Name = "description",
Values = new[]
{
"iso-description",
},
},
},
});
});
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.GetIsoPublicArgs;
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.getIsoPublic(GetIsoPublicArgs.builder()
.filters(GetIsoPublicFilterArgs.builder()
.name("description")
.values("iso-description")
.build())
.build());
}
}
variables:
myIso:
fn::invoke:
Function: vultr:getIsoPublic
Arguments:
filters:
- name: description
values:
- iso-description
Using getIsoPublic
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 getIsoPublic(args: GetIsoPublicArgs, opts?: InvokeOptions): Promise<GetIsoPublicResult>
function getIsoPublicOutput(args: GetIsoPublicOutputArgs, opts?: InvokeOptions): Output<GetIsoPublicResult>
def get_iso_public(filters: Optional[Sequence[GetIsoPublicFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetIsoPublicResult
def get_iso_public_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetIsoPublicFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsoPublicResult]
func GetIsoPublic(ctx *Context, args *GetIsoPublicArgs, opts ...InvokeOption) (*GetIsoPublicResult, error)
func GetIsoPublicOutput(ctx *Context, args *GetIsoPublicOutputArgs, opts ...InvokeOption) GetIsoPublicResultOutput
> Note: This function is named GetIsoPublic
in the Go SDK.
public static class GetIsoPublic
{
public static Task<GetIsoPublicResult> InvokeAsync(GetIsoPublicArgs args, InvokeOptions? opts = null)
public static Output<GetIsoPublicResult> Invoke(GetIsoPublicInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsoPublicResult> getIsoPublic(GetIsoPublicArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: vultr:index/getIsoPublic:getIsoPublic
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<ediri.
Vultr. Inputs. Get Iso Public Filter> - Query parameters for finding ISO files.
- Filters
[]Get
Iso Public Filter - Query parameters for finding ISO files.
- filters
List<Get
Iso Public Filter> - Query parameters for finding ISO files.
- filters
Get
Iso Public Filter[] - Query parameters for finding ISO files.
- filters
Sequence[Get
Iso Public Filter] - Query parameters for finding ISO files.
- filters List<Property Map>
- Query parameters for finding ISO files.
getIsoPublic Result
The following output properties are available:
- Description string
- The description of the ISO file.
- Id string
- The provider-assigned unique ID for this managed resource.
- Md5sum string
- The MD5Sum of the ISO file.
- Name string
- The ISO file's name.
- Filters
List<ediri.
Vultr. Outputs. Get Iso Public Filter>
- Description string
- The description of the ISO file.
- Id string
- The provider-assigned unique ID for this managed resource.
- Md5sum string
- The MD5Sum of the ISO file.
- Name string
- The ISO file's name.
- Filters
[]Get
Iso Public Filter
- description String
- The description of the ISO file.
- id String
- The provider-assigned unique ID for this managed resource.
- md5sum String
- The MD5Sum of the ISO file.
- name String
- The ISO file's name.
- filters
List<Get
Iso Public Filter>
- description string
- The description of the ISO file.
- id string
- The provider-assigned unique ID for this managed resource.
- md5sum string
- The MD5Sum of the ISO file.
- name string
- The ISO file's name.
- filters
Get
Iso Public Filter[]
- description str
- The description of the ISO file.
- id str
- The provider-assigned unique ID for this managed resource.
- md5sum str
- The MD5Sum of the ISO file.
- name str
- The ISO file's name.
- filters
Sequence[Get
Iso Public Filter]
- description String
- The description of the ISO file.
- id String
- The provider-assigned unique ID for this managed resource.
- md5sum String
- The MD5Sum of the ISO file.
- name String
- The ISO file's name.
- filters List<Property Map>
Supporting Types
GetIsoPublicFilter
Package Details
- Repository
- vultr dirien/pulumi-vultr
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vultr
Terraform Provider.