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>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]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)
public static Output<GetDatabaseVersionResult> getDatabaseVersion(GetDatabaseVersionArgs args, InvokeOptions options)
fn::invoke:
  function: civo:index/getDatabaseVersion:getDatabaseVersion
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Filters
List<GetDatabase Version Filter> 
- One or more key/value pairs on which to filter results
- Id string
- The ID of this resource.
- Sorts
List<GetDatabase Version Sort> 
- One or more key/direction pairs on which to sort results
- Filters
[]GetDatabase Version Filter 
- One or more key/value pairs on which to filter results
- Id string
- The ID of this resource.
- Sorts
[]GetDatabase Version Sort 
- One or more key/direction pairs on which to sort results
- filters
List<GetDatabase Version Filter> 
- One or more key/value pairs on which to filter results
- id String
- The ID of this resource.
- sorts
List<GetDatabase Version Sort> 
- One or more key/direction pairs on which to sort results
- filters
GetDatabase Version Filter[] 
- One or more key/value pairs on which to filter results
- id string
- The ID of this resource.
- sorts
GetDatabase Version Sort[] 
- One or more key/direction pairs on which to sort results
- filters
Sequence[GetDatabase Version Filter] 
- One or more key/value pairs on which to filter results
- id str
- The ID of this resource.
- sorts
Sequence[GetDatabase 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
- 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<GetDatabase Version Version> 
- Filters
List<GetDatabase Version Filter> 
- One or more key/value pairs on which to filter results
- Sorts
List<GetDatabase Version Sort> 
- One or more key/direction pairs on which to sort results
- Id string
- The ID of this resource.
- Versions
[]GetDatabase Version Version 
- Filters
[]GetDatabase Version Filter 
- One or more key/value pairs on which to filter results
- Sorts
[]GetDatabase Version Sort 
- One or more key/direction pairs on which to sort results
- id String
- The ID of this resource.
- versions
List<GetDatabase Version Version> 
- filters
List<GetDatabase Version Filter> 
- One or more key/value pairs on which to filter results
- sorts
List<GetDatabase Version Sort> 
- One or more key/direction pairs on which to sort results
- id string
- The ID of this resource.
- versions
GetDatabase Version Version[] 
- filters
GetDatabase Version Filter[] 
- One or more key/value pairs on which to filter results
- sorts
GetDatabase Version Sort[] 
- One or more key/direction pairs on which to sort results
- id str
- The ID of this resource.
- versions
Sequence[GetDatabase Version Version] 
- filters
Sequence[GetDatabase Version Filter] 
- One or more key/value pairs on which to filter results
- sorts
Sequence[GetDatabase Version Sort] 
- 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 string
- Filter versions by this key. This may be one of default,engine,version.
- Values List<string>
- Only retrieves versionswhich keys has value that matches one of the values provided here
- All bool
- Set to trueto require that a field match all of thevaluesinstead 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 thevaluesare present in the list or set.
- MatchBy string
- One of exact(default),re, orsubstring. For string-typed fields, specifyreto match by using thevaluesas regular expressions, or specifysubstringto match by treating thevaluesas 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 versionswhich keys has value that matches one of the values provided here
- All bool
- Set to trueto require that a field match all of thevaluesinstead 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 thevaluesare present in the list or set.
- MatchBy string
- One of exact(default),re, orsubstring. For string-typed fields, specifyreto match by using thevaluesas regular expressions, or specifysubstringto match by treating thevaluesas 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 versionswhich keys has value that matches one of the values provided here
- all Boolean
- Set to trueto require that a field match all of thevaluesinstead 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 thevaluesare present in the list or set.
- matchBy String
- One of exact(default),re, orsubstring. For string-typed fields, specifyreto match by using thevaluesas regular expressions, or specifysubstringto match by treating thevaluesas 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 versionswhich keys has value that matches one of the values provided here
- all boolean
- Set to trueto require that a field match all of thevaluesinstead 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 thevaluesare present in the list or set.
- matchBy string
- One of exact(default),re, orsubstring. For string-typed fields, specifyreto match by using thevaluesas regular expressions, or specifysubstringto match by treating thevaluesas 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 versionswhich keys has value that matches one of the values provided here
- all bool
- Set to trueto require that a field match all of thevaluesinstead 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 thevaluesare present in the list or set.
- match_by str
- One of exact(default),re, orsubstring. For string-typed fields, specifyreto match by using thevaluesas regular expressions, or specifysubstringto match by treating thevaluesas 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 versionswhich keys has value that matches one of the values provided here
- all Boolean
- Set to trueto require that a field match all of thevaluesinstead 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 thevaluesare present in the list or set.
- matchBy String
- One of exact(default),re, orsubstring. For string-typed fields, specifyreto match by using thevaluesas regular expressions, or specifysubstringto match by treating thevaluesas substrings to find within the string field.
GetDatabaseVersionSort   
GetDatabaseVersionVersion   
Package Details
- Repository
- Civo civo/terraform-provider-civo
- License
- Notes
- This Pulumi package is based on the civoTerraform Provider.