1. Packages
  2. Civo
  3. API Docs
  4. getDatabaseVersion
Civo v2.3.13 published on Friday, Jan 19, 2024 by Pulumi

civo.getDatabaseVersion

Explore with Pulumi AI

civo logo
Civo v2.3.13 published on Friday, Jan 19, 2024 by Pulumi

    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<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
    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
    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
    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
    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
    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<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 provider-assigned unique ID for this managed 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 provider-assigned unique ID for this managed 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 provider-assigned unique ID for this managed 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 provider-assigned unique ID for this managed 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 bool
    Engine string
    Version string
    Default bool
    Engine string
    Version string
    default_ Boolean
    engine String
    version String
    default boolean
    engine string
    version string
    default Boolean
    engine String
    version String

    Package Details

    Repository
    Civo pulumi/pulumi-civo
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the civo Terraform Provider.
    civo logo
    Civo v2.3.13 published on Friday, Jan 19, 2024 by Pulumi