Civo v2.4.1 published on Thursday, Aug 22, 2024 by Pulumi
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>
def get_database_version(filters: Optional[Sequence[GetDatabaseVersionFilter]] = 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,
sorts: Optional[pulumi.Input[Sequence[pulumi.Input[GetDatabaseVersionSortArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseVersionResult]
func GetDatabaseVersion(ctx *Context, args *GetDatabaseVersionArgs, opts ...InvokeOption) (*GetDatabaseVersionResult, error)
func GetDatabaseVersionOutput(ctx *Context, args *GetDatabaseVersionOutputArgs, opts ...InvokeOption) GetDatabaseVersionResultOutput
> 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)
}
public static CompletableFuture<GetDatabaseVersionResult> getDatabaseVersion(GetDatabaseVersionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: civo:index/getDatabaseVersion:getDatabaseVersion
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<Get
Database Version Filter> - One or more key/value pairs on which to filter results
- Sorts
List<Get
Database Version Sort> - One or more key/direction pairs on which to sort results
- Filters
[]Get
Database Version Filter - One or more key/value pairs on which to filter results
- Sorts
[]Get
Database Version Sort - One or more key/direction pairs on which to sort results
- filters
List<Get
Database Version Filter> - One or more key/value pairs on which to filter results
- sorts
List<Get
Database Version Sort> - One or more key/direction pairs on which to sort results
- filters
Get
Database Version Filter[] - One or more key/value pairs on which to filter results
- sorts
Get
Database Version Sort[] - One or more key/direction pairs on which to sort results
- filters
Sequence[Get
Database Version Filter] - One or more key/value pairs on which to filter results
- sorts
Sequence[Get
Database Version Sort] - 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
- 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 provider-assigned unique ID for this managed resource.
- Versions
List<Get
Database Version Version> - Filters
List<Get
Database Version Filter> - One or more key/value pairs on which to filter results
- Sorts
List<Get
Database Version Sort> - One or more key/direction pairs on which to sort results
- Id string
- The provider-assigned unique ID for this managed resource.
- Versions
[]Get
Database Version Version - Filters
[]Get
Database Version Filter - One or more key/value pairs on which to filter results
- Sorts
[]Get
Database Version Sort - One or more key/direction pairs on which to sort results
- id String
- The provider-assigned unique ID for this managed resource.
- versions
List<Get
Database Version Version> - filters
List<Get
Database Version Filter> - One or more key/value pairs on which to filter results
- sorts
List<Get
Database Version Sort> - One or more key/direction pairs on which to sort results
- id string
- The provider-assigned unique ID for this managed resource.
- versions
Get
Database Version Version[] - filters
Get
Database Version Filter[] - One or more key/value pairs on which to filter results
- sorts
Get
Database Version Sort[] - One or more key/direction pairs on which to sort results
- id str
- The provider-assigned unique ID for this managed resource.
- versions
Sequence[Get
Database Version Version] - filters
Sequence[Get
Database Version Filter] - One or more key/value pairs on which to filter results
- sorts
Sequence[Get
Database Version Sort] - One or more key/direction pairs on which to sort results
- id String
- The provider-assigned unique ID for this managed 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 string
- Filter versions by this key. This may be one of
default
,engine
,version
. - Values 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 thevalues
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 thevalues
are present in the list or set. - Match
By string - One of
exact
(default),re
, orsubstring
. For string-typed fields, specifyre
to match by using thevalues
as regular expressions, or specifysubstring
to match by treating thevalues
as substrings to find within the string field.
- Key string
- Filter versions by this key. This may be one of
default
,engine
,version
. - Values []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 thevalues
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 thevalues
are present in the list or set. - Match
By string - One of
exact
(default),re
, orsubstring
. For string-typed fields, specifyre
to match by using thevalues
as regular expressions, or specifysubstring
to match by treating thevalues
as substrings to find within the string field.
- key String
- Filter versions by this key. This may be one of
default
,engine
,version
. - values 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 thevalues
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 thevalues
are present in the list or set. - match
By String - One of
exact
(default),re
, orsubstring
. For string-typed fields, specifyre
to match by using thevalues
as regular expressions, or specifysubstring
to match by treating thevalues
as substrings to find within the string field.
- key string
- Filter versions by this key. This may be one of
default
,engine
,version
. - values 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 thevalues
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 thevalues
are present in the list or set. - match
By string - One of
exact
(default),re
, orsubstring
. For string-typed fields, specifyre
to match by using thevalues
as regular expressions, or specifysubstring
to match by treating thevalues
as substrings to find within the string field.
- key str
- Filter versions by this key. This may be one of
default
,engine
,version
. - values 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 thevalues
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 thevalues
are present in the list or set. - match_
by str - One of
exact
(default),re
, orsubstring
. For string-typed fields, specifyre
to match by using thevalues
as regular expressions, or specifysubstring
to match by treating thevalues
as substrings to find within the string field.
- key String
- Filter versions by this key. This may be one of
default
,engine
,version
. - values 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 thevalues
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 thevalues
are present in the list or set. - match
By String - One of
exact
(default),re
, orsubstring
. For string-typed fields, specifyre
to match by using thevalues
as regular expressions, or specifysubstring
to match by treating thevalues
as substrings to find within the string field.
GetDatabaseVersionSort
GetDatabaseVersionVersion
Package Details
- Repository
- Civo pulumi/pulumi-civo
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
civo
Terraform Provider.