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

vultr.getApplication

Explore with Pulumi AI

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

Get information about applications that can be launched when creating a Vultr VPS.

Example Usage

Get the information for an application by deploy_name:

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

const docker = vultr.getApplication({
    filters: [{
        name: "deploy_name",
        values: ["Docker on CentOS 7 x64"],
    }],
});
Copy
import pulumi
import pulumi_vultr as vultr

docker = vultr.get_application(filters=[{
    "name": "deploy_name",
    "values": ["Docker on CentOS 7 x64"],
}])
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.GetApplication(ctx, &vultr.GetApplicationArgs{
			Filters: []vultr.GetApplicationFilter{
				{
					Name: "deploy_name",
					Values: []string{
						"Docker on CentOS 7 x64",
					},
				},
			},
		}, 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 docker = Vultr.GetApplication.Invoke(new()
    {
        Filters = new[]
        {
            new Vultr.Inputs.GetApplicationFilterInputArgs
            {
                Name = "deploy_name",
                Values = new[]
                {
                    "Docker on CentOS 7 x64",
                },
            },
        },
    });

});
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.GetApplicationArgs;
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 docker = VultrFunctions.getApplication(GetApplicationArgs.builder()
            .filters(GetApplicationFilterArgs.builder()
                .name("deploy_name")
                .values("Docker on CentOS 7 x64")
                .build())
            .build());

    }
}
Copy
variables:
  docker:
    fn::invoke:
      Function: vultr:getApplication
      Arguments:
        filters:
          - name: deploy_name
            values:
              - Docker on CentOS 7 x64
Copy

Using getApplication

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 getApplication(args: GetApplicationArgs, opts?: InvokeOptions): Promise<GetApplicationResult>
function getApplicationOutput(args: GetApplicationOutputArgs, opts?: InvokeOptions): Output<GetApplicationResult>
Copy
def get_application(filters: Optional[Sequence[GetApplicationFilter]] = None,
                    opts: Optional[InvokeOptions] = None) -> GetApplicationResult
def get_application_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetApplicationFilterArgs]]]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetApplicationResult]
Copy
func GetApplication(ctx *Context, args *GetApplicationArgs, opts ...InvokeOption) (*GetApplicationResult, error)
func GetApplicationOutput(ctx *Context, args *GetApplicationOutputArgs, opts ...InvokeOption) GetApplicationResultOutput
Copy

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

public static class GetApplication 
{
    public static Task<GetApplicationResult> InvokeAsync(GetApplicationArgs args, InvokeOptions? opts = null)
    public static Output<GetApplicationResult> Invoke(GetApplicationInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetApplicationResult> getApplication(GetApplicationArgs args, InvokeOptions options)
public static Output<GetApplicationResult> getApplication(GetApplicationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: vultr:index/getApplication:getApplication
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filters Changes to this property will trigger replacement. List<ediri.Vultr.Inputs.GetApplicationFilter>
Query parameters for finding applications.
Filters Changes to this property will trigger replacement. []GetApplicationFilter
Query parameters for finding applications.
filters Changes to this property will trigger replacement. List<GetApplicationFilter>
Query parameters for finding applications.
filters Changes to this property will trigger replacement. GetApplicationFilter[]
Query parameters for finding applications.
filters Changes to this property will trigger replacement. Sequence[GetApplicationFilter]
Query parameters for finding applications.
filters Changes to this property will trigger replacement. List<Property Map>
Query parameters for finding applications.

getApplication Result

The following output properties are available:

DeployName string
The deploy name of the application.
Id string
The provider-assigned unique ID for this managed resource.
ImageId string
The Marketplace ID for this application.
Name string
The name of the application.
ShortName string
The short name of the application.
Type string
This defines if an application is one-click or marketplace .
Vendor string
The vendor who authored the application.
Filters List<ediri.Vultr.Outputs.GetApplicationFilter>
DeployName string
The deploy name of the application.
Id string
The provider-assigned unique ID for this managed resource.
ImageId string
The Marketplace ID for this application.
Name string
The name of the application.
ShortName string
The short name of the application.
Type string
This defines if an application is one-click or marketplace .
Vendor string
The vendor who authored the application.
Filters []GetApplicationFilter
deployName String
The deploy name of the application.
id String
The provider-assigned unique ID for this managed resource.
imageId String
The Marketplace ID for this application.
name String
The name of the application.
shortName String
The short name of the application.
type String
This defines if an application is one-click or marketplace .
vendor String
The vendor who authored the application.
filters List<GetApplicationFilter>
deployName string
The deploy name of the application.
id string
The provider-assigned unique ID for this managed resource.
imageId string
The Marketplace ID for this application.
name string
The name of the application.
shortName string
The short name of the application.
type string
This defines if an application is one-click or marketplace .
vendor string
The vendor who authored the application.
filters GetApplicationFilter[]
deploy_name str
The deploy name of the application.
id str
The provider-assigned unique ID for this managed resource.
image_id str
The Marketplace ID for this application.
name str
The name of the application.
short_name str
The short name of the application.
type str
This defines if an application is one-click or marketplace .
vendor str
The vendor who authored the application.
filters Sequence[GetApplicationFilter]
deployName String
The deploy name of the application.
id String
The provider-assigned unique ID for this managed resource.
imageId String
The Marketplace ID for this application.
name String
The name of the application.
shortName String
The short name of the application.
type String
This defines if an application is one-click or marketplace .
vendor String
The vendor who authored the application.
filters List<Property Map>

Supporting Types

GetApplicationFilter

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