Linode

Pulumi Official
Package maintained by Pulumi
v3.9.0 published on Friday, Jun 17, 2022 by Pulumi

getDatabaseEngines

Provides information about Linode Managed Database engines that match a set of filters.

Attributes

Each engine will be stored in the engines attribute and will export the following attributes:

  • engine - The Managed Database engine type.

  • id - The Managed Database engine ID in engine/version format.

  • version - The Managed Database engine version.

Example Usage

using Pulumi;
using Linode = Pulumi.Linode;

class MyStack : Stack
{
    public MyStack()
    {
        var all = Output.Create(Linode.GetDatabaseEngines.InvokeAsync());
    }

}
package main

import (
	"github.com/pulumi/pulumi-linode/sdk/v3/go/linode"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := linode.GetDatabaseEngines(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var all = Output.of(LinodeFunctions.getDatabaseEngines());

        }
}
import pulumi
import pulumi_linode as linode

all = linode.get_database_engines()
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";

const all = pulumi.output(linode.getDatabaseEngines());
variables:
  all:
    Fn::Invoke:
      Function: linode:getDatabaseEngines
      Arguments: {}

Using getDatabaseEngines

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 getDatabaseEngines(args: GetDatabaseEnginesArgs, opts?: InvokeOptions): Promise<GetDatabaseEnginesResult>
function getDatabaseEnginesOutput(args: GetDatabaseEnginesOutputArgs, opts?: InvokeOptions): Output<GetDatabaseEnginesResult>
def get_database_engines(filters: Optional[Sequence[GetDatabaseEnginesFilter]] = None,
                         latest: Optional[bool] = None,
                         order: Optional[str] = None,
                         order_by: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetDatabaseEnginesResult
def get_database_engines_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDatabaseEnginesFilterArgs]]]] = None,
                         latest: Optional[pulumi.Input[bool]] = None,
                         order: Optional[pulumi.Input[str]] = None,
                         order_by: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseEnginesResult]
func GetDatabaseEngines(ctx *Context, args *GetDatabaseEnginesArgs, opts ...InvokeOption) (*GetDatabaseEnginesResult, error)
func GetDatabaseEnginesOutput(ctx *Context, args *GetDatabaseEnginesOutputArgs, opts ...InvokeOption) GetDatabaseEnginesResultOutput

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

public static class GetDatabaseEngines 
{
    public static Task<GetDatabaseEnginesResult> InvokeAsync(GetDatabaseEnginesArgs args, InvokeOptions? opts = null)
    public static Output<GetDatabaseEnginesResult> Invoke(GetDatabaseEnginesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDatabaseEnginesResult> getDatabaseEngines(GetDatabaseEnginesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: linode:index/getDatabaseEngines:getDatabaseEngines
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Filters List<GetDatabaseEnginesFilter>
Latest bool

If true, only the latest engine version will be returned.

Order string

The order in which results should be returned. (asc, desc; default asc)

OrderBy string

The attribute to order the results by. (version)

Filters []GetDatabaseEnginesFilter
Latest bool

If true, only the latest engine version will be returned.

Order string

The order in which results should be returned. (asc, desc; default asc)

OrderBy string

The attribute to order the results by. (version)

filters List<GetDatabaseEnginesFilter>
latest Boolean

If true, only the latest engine version will be returned.

order String

The order in which results should be returned. (asc, desc; default asc)

orderBy String

The attribute to order the results by. (version)

filters GetDatabaseEnginesFilter[]
latest boolean

If true, only the latest engine version will be returned.

order string

The order in which results should be returned. (asc, desc; default asc)

orderBy string

The attribute to order the results by. (version)

filters Sequence[GetDatabaseEnginesFilter]
latest bool

If true, only the latest engine version will be returned.

order str

The order in which results should be returned. (asc, desc; default asc)

order_by str

The attribute to order the results by. (version)

filters List<Property Map>
latest Boolean

If true, only the latest engine version will be returned.

order String

The order in which results should be returned. (asc, desc; default asc)

orderBy String

The attribute to order the results by. (version)

getDatabaseEngines Result

The following output properties are available:

Engines List<GetDatabaseEnginesEngine>
Id string

The provider-assigned unique ID for this managed resource.

Filters List<GetDatabaseEnginesFilter>
Latest bool
Order string
OrderBy string
Engines []GetDatabaseEnginesEngine
Id string

The provider-assigned unique ID for this managed resource.

Filters []GetDatabaseEnginesFilter
Latest bool
Order string
OrderBy string
engines List<GetDatabaseEnginesEngine>
id String

The provider-assigned unique ID for this managed resource.

filters List<GetDatabaseEnginesFilter>
latest Boolean
order String
orderBy String
engines GetDatabaseEnginesEngine[]
id string

The provider-assigned unique ID for this managed resource.

filters GetDatabaseEnginesFilter[]
latest boolean
order string
orderBy string
engines Sequence[GetDatabaseEnginesEngine]
id str

The provider-assigned unique ID for this managed resource.

filters Sequence[GetDatabaseEnginesFilter]
latest bool
order str
order_by str
engines List<Property Map>
id String

The provider-assigned unique ID for this managed resource.

filters List<Property Map>
latest Boolean
order String
orderBy String

Supporting Types

GetDatabaseEnginesEngine

Engine string
Id string
Version string
Engine string
Id string
Version string
engine String
id String
version String
engine string
id string
version string
engine str
id str
version str
engine String
id String
version String

GetDatabaseEnginesFilter

Name string

The name of the field to filter by.

Values List<string>

A list of values for the filter to allow. These values should all be in string form.

MatchBy string

The method to match the field by. (exact, regex, substring; default exact)

Name string

The name of the field to filter by.

Values []string

A list of values for the filter to allow. These values should all be in string form.

MatchBy string

The method to match the field by. (exact, regex, substring; default exact)

name String

The name of the field to filter by.

values List<String>

A list of values for the filter to allow. These values should all be in string form.

matchBy String

The method to match the field by. (exact, regex, substring; default exact)

name string

The name of the field to filter by.

values string[]

A list of values for the filter to allow. These values should all be in string form.

matchBy string

The method to match the field by. (exact, regex, substring; default exact)

name str

The name of the field to filter by.

values Sequence[str]

A list of values for the filter to allow. These values should all be in string form.

match_by str

The method to match the field by. (exact, regex, substring; default exact)

name String

The name of the field to filter by.

values List<String>

A list of values for the filter to allow. These values should all be in string form.

matchBy String

The method to match the field by. (exact, regex, substring; default exact)

Package Details

Repository
https://github.com/pulumi/pulumi-linode
License
Apache-2.0
Notes

This Pulumi package is based on the linode Terraform Provider.