1. Packages
  2. Vkcs Provider
  3. API Docs
  4. getDbDatastoreParameters
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

vkcs.getDbDatastoreParameters

Explore with Pulumi AI

vkcs logo
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

    Use this data source to get configuration parameters supported for a VKCS datastore.

    New since v0.2.0.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vkcs from "@pulumi/vkcs";
    
    const mysqlParams = vkcs.getDbDatastoreParameters({
        datastoreName: data.vkcs_db_datastore.mysql,
        datastoreVersionId: local.mysql_v8_version_id,
    });
    export const mysqlParameters = mysqlParams.then(mysqlParams => mysqlParams.parameters);
    
    import pulumi
    import pulumi_vkcs as vkcs
    
    mysql_params = vkcs.get_db_datastore_parameters(datastore_name=data["vkcs_db_datastore"]["mysql"],
        datastore_version_id=local["mysql_v8_version_id"])
    pulumi.export("mysqlParameters", mysql_params.parameters)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		mysqlParams, err := vkcs.GetDbDatastoreParameters(ctx, &vkcs.GetDbDatastoreParametersArgs{
    			DatastoreName:      data.Vkcs_db_datastore.Mysql,
    			DatastoreVersionId: local.Mysql_v8_version_id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("mysqlParameters", mysqlParams.Parameters)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vkcs = Pulumi.Vkcs;
    
    return await Deployment.RunAsync(() => 
    {
        var mysqlParams = Vkcs.GetDbDatastoreParameters.Invoke(new()
        {
            DatastoreName = data.Vkcs_db_datastore.Mysql,
            DatastoreVersionId = local.Mysql_v8_version_id,
        });
    
        return new Dictionary<string, object?>
        {
            ["mysqlParameters"] = mysqlParams.Apply(getDbDatastoreParametersResult => getDbDatastoreParametersResult.Parameters),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vkcs.VkcsFunctions;
    import com.pulumi.vkcs.inputs.GetDbDatastoreParametersArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var mysqlParams = VkcsFunctions.getDbDatastoreParameters(GetDbDatastoreParametersArgs.builder()
                .datastoreName(data.vkcs_db_datastore().mysql())
                .datastoreVersionId(local.mysql_v8_version_id())
                .build());
    
            ctx.export("mysqlParameters", mysqlParams.applyValue(getDbDatastoreParametersResult -> getDbDatastoreParametersResult.parameters()));
        }
    }
    
    variables:
      mysqlParams:
        fn::invoke:
          function: vkcs:getDbDatastoreParameters
          arguments:
            datastoreName: ${data.vkcs_db_datastore.mysql}
            datastoreVersionId: ${local.mysql_v8_version_id}
    outputs:
      mysqlParameters: ${mysqlParams.parameters}
    

    Using getDbDatastoreParameters

    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 getDbDatastoreParameters(args: GetDbDatastoreParametersArgs, opts?: InvokeOptions): Promise<GetDbDatastoreParametersResult>
    function getDbDatastoreParametersOutput(args: GetDbDatastoreParametersOutputArgs, opts?: InvokeOptions): Output<GetDbDatastoreParametersResult>
    def get_db_datastore_parameters(datastore_name: Optional[str] = None,
                                    datastore_version_id: Optional[str] = None,
                                    id: Optional[str] = None,
                                    region: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetDbDatastoreParametersResult
    def get_db_datastore_parameters_output(datastore_name: Optional[pulumi.Input[str]] = None,
                                    datastore_version_id: Optional[pulumi.Input[str]] = None,
                                    id: Optional[pulumi.Input[str]] = None,
                                    region: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetDbDatastoreParametersResult]
    func GetDbDatastoreParameters(ctx *Context, args *GetDbDatastoreParametersArgs, opts ...InvokeOption) (*GetDbDatastoreParametersResult, error)
    func GetDbDatastoreParametersOutput(ctx *Context, args *GetDbDatastoreParametersOutputArgs, opts ...InvokeOption) GetDbDatastoreParametersResultOutput

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

    public static class GetDbDatastoreParameters 
    {
        public static Task<GetDbDatastoreParametersResult> InvokeAsync(GetDbDatastoreParametersArgs args, InvokeOptions? opts = null)
        public static Output<GetDbDatastoreParametersResult> Invoke(GetDbDatastoreParametersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbDatastoreParametersResult> getDbDatastoreParameters(GetDbDatastoreParametersArgs args, InvokeOptions options)
    public static Output<GetDbDatastoreParametersResult> getDbDatastoreParameters(GetDbDatastoreParametersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vkcs:index/getDbDatastoreParameters:getDbDatastoreParameters
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DatastoreName string
    required string → Name of the data store.
    DatastoreVersionId string
    required string → ID of the version of the data store.
    Id string
    string → ID of the resource.
    Region string
    optional string → The region to obtain the service client. If omitted, the region argument of the provider is used.
    DatastoreName string
    required string → Name of the data store.
    DatastoreVersionId string
    required string → ID of the version of the data store.
    Id string
    string → ID of the resource.
    Region string
    optional string → The region to obtain the service client. If omitted, the region argument of the provider is used.
    datastoreName String
    required string → Name of the data store.
    datastoreVersionId String
    required string → ID of the version of the data store.
    id String
    string → ID of the resource.
    region String
    optional string → The region to obtain the service client. If omitted, the region argument of the provider is used.
    datastoreName string
    required string → Name of the data store.
    datastoreVersionId string
    required string → ID of the version of the data store.
    id string
    string → ID of the resource.
    region string
    optional string → The region to obtain the service client. If omitted, the region argument of the provider is used.
    datastore_name str
    required string → Name of the data store.
    datastore_version_id str
    required string → ID of the version of the data store.
    id str
    string → ID of the resource.
    region str
    optional string → The region to obtain the service client. If omitted, the region argument of the provider is used.
    datastoreName String
    required string → Name of the data store.
    datastoreVersionId String
    required string → ID of the version of the data store.
    id String
    string → ID of the resource.
    region String
    optional string → The region to obtain the service client. If omitted, the region argument of the provider is used.

    getDbDatastoreParameters Result

    The following output properties are available:

    DatastoreName string
    DatastoreVersionId string
    Id string
    string → ID of the resource.
    Parameters List<GetDbDatastoreParametersParameter>
    list → Configuration parameters supported for the datastore.
    Region string
    DatastoreName string
    DatastoreVersionId string
    Id string
    string → ID of the resource.
    Parameters []GetDbDatastoreParametersParameter
    list → Configuration parameters supported for the datastore.
    Region string
    datastoreName String
    datastoreVersionId String
    id String
    string → ID of the resource.
    parameters List<GetDbDatastoreParametersParameter>
    list → Configuration parameters supported for the datastore.
    region String
    datastoreName string
    datastoreVersionId string
    id string
    string → ID of the resource.
    parameters GetDbDatastoreParametersParameter[]
    list → Configuration parameters supported for the datastore.
    region string
    datastore_name str
    datastore_version_id str
    id str
    string → ID of the resource.
    parameters Sequence[GetDbDatastoreParametersParameter]
    list → Configuration parameters supported for the datastore.
    region str
    datastoreName String
    datastoreVersionId String
    id String
    string → ID of the resource.
    parameters List<Property Map>
    list → Configuration parameters supported for the datastore.
    region String

    Supporting Types

    GetDbDatastoreParametersParameter

    Max double
    number → Maximum value of a configuration parameter.
    Min double
    number → Minimum value of a configuration parameter.
    Name string
    string → Name of a configuration parameter.
    RestartRequired bool
    boolean → This attribute indicates whether a restart required when a parameter is set.
    Type string
    string → Type of a configuration parameter.
    Max float64
    number → Maximum value of a configuration parameter.
    Min float64
    number → Minimum value of a configuration parameter.
    Name string
    string → Name of a configuration parameter.
    RestartRequired bool
    boolean → This attribute indicates whether a restart required when a parameter is set.
    Type string
    string → Type of a configuration parameter.
    max Double
    number → Maximum value of a configuration parameter.
    min Double
    number → Minimum value of a configuration parameter.
    name String
    string → Name of a configuration parameter.
    restartRequired Boolean
    boolean → This attribute indicates whether a restart required when a parameter is set.
    type String
    string → Type of a configuration parameter.
    max number
    number → Maximum value of a configuration parameter.
    min number
    number → Minimum value of a configuration parameter.
    name string
    string → Name of a configuration parameter.
    restartRequired boolean
    boolean → This attribute indicates whether a restart required when a parameter is set.
    type string
    string → Type of a configuration parameter.
    max float
    number → Maximum value of a configuration parameter.
    min float
    number → Minimum value of a configuration parameter.
    name str
    string → Name of a configuration parameter.
    restart_required bool
    boolean → This attribute indicates whether a restart required when a parameter is set.
    type str
    string → Type of a configuration parameter.
    max Number
    number → Maximum value of a configuration parameter.
    min Number
    number → Minimum value of a configuration parameter.
    name String
    string → Name of a configuration parameter.
    restartRequired Boolean
    boolean → This attribute indicates whether a restart required when a parameter is set.
    type String
    string → Type of a configuration parameter.

    Package Details

    Repository
    vkcs vk-cs/terraform-provider-vkcs
    License
    Notes
    This Pulumi package is based on the vkcs Terraform Provider.
    vkcs logo
    vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs