1. Packages
  2. Vultr
  3. API Docs
  4. getIsoPublic
Vultr v2.21.1 published on Monday, Jul 22, 2024 by dirien

vultr.getIsoPublic

Explore with Pulumi AI

vultr logo
Vultr v2.21.1 published on Monday, Jul 22, 2024 by dirien

    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.GetIsoPublicFilter>
    Query parameters for finding ISO files.
    Filters []GetIsoPublicFilter
    Query parameters for finding ISO files.
    filters List<GetIsoPublicFilter>
    Query parameters for finding ISO files.
    filters GetIsoPublicFilter[]
    Query parameters for finding ISO files.
    filters Sequence[GetIsoPublicFilter]
    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.GetIsoPublicFilter>
    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 []GetIsoPublicFilter
    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<GetIsoPublicFilter>
    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 GetIsoPublicFilter[]
    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[GetIsoPublicFilter]
    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

    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.21.1 published on Monday, Jul 22, 2024 by dirien