vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs
vkcs.getDbDatastoreParameters
Explore with Pulumi AI
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:
- Datastore
Name string - required string → Name of the data store.
- Datastore
Version stringId - 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 string - required string → Name of the data store.
- Datastore
Version stringId - 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 String - required string → Name of the data store.
- datastore
Version StringId - 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 string - required string → Name of the data store.
- datastore
Version stringId - 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_ strid - 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.
- datastore
Name String - required string → Name of the data store.
- datastore
Version StringId - 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:
- Datastore
Name string - Datastore
Version stringId - Id string
- string → ID of the resource.
- Parameters
List<Get
Db Datastore Parameters Parameter> - list → Configuration parameters supported for the datastore.
- Region string
- Datastore
Name string - Datastore
Version stringId - Id string
- string → ID of the resource.
- Parameters
[]Get
Db Datastore Parameters Parameter - list → Configuration parameters supported for the datastore.
- Region string
- datastore
Name String - datastore
Version StringId - id String
- string → ID of the resource.
- parameters
List<Get
Db Datastore Parameters Parameter> - list → Configuration parameters supported for the datastore.
- region String
- datastore
Name string - datastore
Version stringId - id string
- string → ID of the resource.
- parameters
Get
Db Datastore Parameters Parameter[] - list → Configuration parameters supported for the datastore.
- region string
- datastore_
name str - datastore_
version_ strid - id str
- string → ID of the resource.
- parameters
Sequence[Get
Db Datastore Parameters Parameter] - list → Configuration parameters supported for the datastore.
- region str
- datastore
Name String - datastore
Version StringId - 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.
- Restart
Required 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.
- Restart
Required 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.
- restart
Required 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.
- restart
Required 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.
- restart
Required 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.