1. Packages
  2. Civo Provider
  3. API Docs
  4. getDatabaseVersion
civo 1.1.5 published on Thursday, Feb 6, 2025 by civo

civo.getDatabaseVersion

Explore with Pulumi AI

Retrieves information about the database versions that Civo supports, with the ability to filter the results.

Using getDatabaseVersion

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 getDatabaseVersion(args: GetDatabaseVersionArgs, opts?: InvokeOptions): Promise<GetDatabaseVersionResult>
function getDatabaseVersionOutput(args: GetDatabaseVersionOutputArgs, opts?: InvokeOptions): Output<GetDatabaseVersionResult>
Copy
def get_database_version(filters: Optional[Sequence[GetDatabaseVersionFilter]] = None,
                         id: Optional[str] = None,
                         sorts: Optional[Sequence[GetDatabaseVersionSort]] = None,
                         opts: Optional[InvokeOptions] = None) -> GetDatabaseVersionResult
def get_database_version_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDatabaseVersionFilterArgs]]]] = None,
                         id: Optional[pulumi.Input[str]] = None,
                         sorts: Optional[pulumi.Input[Sequence[pulumi.Input[GetDatabaseVersionSortArgs]]]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseVersionResult]
Copy
func GetDatabaseVersion(ctx *Context, args *GetDatabaseVersionArgs, opts ...InvokeOption) (*GetDatabaseVersionResult, error)
func GetDatabaseVersionOutput(ctx *Context, args *GetDatabaseVersionOutputArgs, opts ...InvokeOption) GetDatabaseVersionResultOutput
Copy

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

public static class GetDatabaseVersion 
{
    public static Task<GetDatabaseVersionResult> InvokeAsync(GetDatabaseVersionArgs args, InvokeOptions? opts = null)
    public static Output<GetDatabaseVersionResult> Invoke(GetDatabaseVersionInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDatabaseVersionResult> getDatabaseVersion(GetDatabaseVersionArgs args, InvokeOptions options)
public static Output<GetDatabaseVersionResult> getDatabaseVersion(GetDatabaseVersionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: civo:index/getDatabaseVersion:getDatabaseVersion
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filters List<GetDatabaseVersionFilter>
One or more key/value pairs on which to filter results
Id string
The ID of this resource.
Sorts List<GetDatabaseVersionSort>
One or more key/direction pairs on which to sort results
Filters []GetDatabaseVersionFilter
One or more key/value pairs on which to filter results
Id string
The ID of this resource.
Sorts []GetDatabaseVersionSort
One or more key/direction pairs on which to sort results
filters List<GetDatabaseVersionFilter>
One or more key/value pairs on which to filter results
id String
The ID of this resource.
sorts List<GetDatabaseVersionSort>
One or more key/direction pairs on which to sort results
filters GetDatabaseVersionFilter[]
One or more key/value pairs on which to filter results
id string
The ID of this resource.
sorts GetDatabaseVersionSort[]
One or more key/direction pairs on which to sort results
filters Sequence[GetDatabaseVersionFilter]
One or more key/value pairs on which to filter results
id str
The ID of this resource.
sorts Sequence[GetDatabaseVersionSort]
One or more key/direction pairs on which to sort results
filters List<Property Map>
One or more key/value pairs on which to filter results
id String
The ID of this resource.
sorts List<Property Map>
One or more key/direction pairs on which to sort results

getDatabaseVersion Result

The following output properties are available:

Id string
The ID of this resource.
Versions List<GetDatabaseVersionVersion>
Filters List<GetDatabaseVersionFilter>
One or more key/value pairs on which to filter results
Sorts List<GetDatabaseVersionSort>
One or more key/direction pairs on which to sort results
Id string
The ID of this resource.
Versions []GetDatabaseVersionVersion
Filters []GetDatabaseVersionFilter
One or more key/value pairs on which to filter results
Sorts []GetDatabaseVersionSort
One or more key/direction pairs on which to sort results
id String
The ID of this resource.
versions List<GetDatabaseVersionVersion>
filters List<GetDatabaseVersionFilter>
One or more key/value pairs on which to filter results
sorts List<GetDatabaseVersionSort>
One or more key/direction pairs on which to sort results
id string
The ID of this resource.
versions GetDatabaseVersionVersion[]
filters GetDatabaseVersionFilter[]
One or more key/value pairs on which to filter results
sorts GetDatabaseVersionSort[]
One or more key/direction pairs on which to sort results
id str
The ID of this resource.
versions Sequence[GetDatabaseVersionVersion]
filters Sequence[GetDatabaseVersionFilter]
One or more key/value pairs on which to filter results
sorts Sequence[GetDatabaseVersionSort]
One or more key/direction pairs on which to sort results
id String
The ID of this resource.
versions List<Property Map>
filters List<Property Map>
One or more key/value pairs on which to filter results
sorts List<Property Map>
One or more key/direction pairs on which to sort results

Supporting Types

GetDatabaseVersionFilter

Key This property is required. string
Filter versions by this key. This may be one of default, engine, version.
Values This property is required. List<string>
Only retrieves versions which keys has value that matches one of the values provided here
All bool
Set to true to require that a field match all of the values instead of just one or more of them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure that all of the values are present in the list or set.
MatchBy string
One of exact (default), re, or substring. For string-typed fields, specify re to match by using the values as regular expressions, or specify substring to match by treating the values as substrings to find within the string field.
Key This property is required. string
Filter versions by this key. This may be one of default, engine, version.
Values This property is required. []string
Only retrieves versions which keys has value that matches one of the values provided here
All bool
Set to true to require that a field match all of the values instead of just one or more of them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure that all of the values are present in the list or set.
MatchBy string
One of exact (default), re, or substring. For string-typed fields, specify re to match by using the values as regular expressions, or specify substring to match by treating the values as substrings to find within the string field.
key This property is required. String
Filter versions by this key. This may be one of default, engine, version.
values This property is required. List<String>
Only retrieves versions which keys has value that matches one of the values provided here
all Boolean
Set to true to require that a field match all of the values instead of just one or more of them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure that all of the values are present in the list or set.
matchBy String
One of exact (default), re, or substring. For string-typed fields, specify re to match by using the values as regular expressions, or specify substring to match by treating the values as substrings to find within the string field.
key This property is required. string
Filter versions by this key. This may be one of default, engine, version.
values This property is required. string[]
Only retrieves versions which keys has value that matches one of the values provided here
all boolean
Set to true to require that a field match all of the values instead of just one or more of them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure that all of the values are present in the list or set.
matchBy string
One of exact (default), re, or substring. For string-typed fields, specify re to match by using the values as regular expressions, or specify substring to match by treating the values as substrings to find within the string field.
key This property is required. str
Filter versions by this key. This may be one of default, engine, version.
values This property is required. Sequence[str]
Only retrieves versions which keys has value that matches one of the values provided here
all bool
Set to true to require that a field match all of the values instead of just one or more of them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure that all of the values are present in the list or set.
match_by str
One of exact (default), re, or substring. For string-typed fields, specify re to match by using the values as regular expressions, or specify substring to match by treating the values as substrings to find within the string field.
key This property is required. String
Filter versions by this key. This may be one of default, engine, version.
values This property is required. List<String>
Only retrieves versions which keys has value that matches one of the values provided here
all Boolean
Set to true to require that a field match all of the values instead of just one or more of them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure that all of the values are present in the list or set.
matchBy String
One of exact (default), re, or substring. For string-typed fields, specify re to match by using the values as regular expressions, or specify substring to match by treating the values as substrings to find within the string field.

GetDatabaseVersionSort

Key This property is required. string
Sort versions by this key. This may be one of default, engine, version.
Direction string
The sort direction. This may be either asc or desc.
Key This property is required. string
Sort versions by this key. This may be one of default, engine, version.
Direction string
The sort direction. This may be either asc or desc.
key This property is required. String
Sort versions by this key. This may be one of default, engine, version.
direction String
The sort direction. This may be either asc or desc.
key This property is required. string
Sort versions by this key. This may be one of default, engine, version.
direction string
The sort direction. This may be either asc or desc.
key This property is required. str
Sort versions by this key. This may be one of default, engine, version.
direction str
The sort direction. This may be either asc or desc.
key This property is required. String
Sort versions by this key. This may be one of default, engine, version.
direction String
The sort direction. This may be either asc or desc.

GetDatabaseVersionVersion

Default This property is required. bool
Engine This property is required. string
Version This property is required. string
Default This property is required. bool
Engine This property is required. string
Version This property is required. string
default_ This property is required. Boolean
engine This property is required. String
version This property is required. String
default This property is required. boolean
engine This property is required. string
version This property is required. string
default This property is required. bool
engine This property is required. str
version This property is required. str
default This property is required. Boolean
engine This property is required. String
version This property is required. String

Package Details

Repository
Civo civo/terraform-provider-civo
License
Notes
This Pulumi package is based on the civo Terraform Provider.