vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs
vkcs.getDbDatastoreCapabilities
Explore with Pulumi AI
Use this data source to get capabilities 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 postgresCaps = vkcs.getDbDatastoreCapabilities({
datastoreName: data.vkcs_db_datastore.postgres,
datastoreVersionId: local.pg_v14_version_id,
});
export const postgresqlCapabilities = postgresCaps.then(postgresCaps => postgresCaps.capabilities);
import pulumi
import pulumi_vkcs as vkcs
postgres_caps = vkcs.get_db_datastore_capabilities(datastore_name=data["vkcs_db_datastore"]["postgres"],
datastore_version_id=local["pg_v14_version_id"])
pulumi.export("postgresqlCapabilities", postgres_caps.capabilities)
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 {
postgresCaps, err := vkcs.GetDbDatastoreCapabilities(ctx, &vkcs.GetDbDatastoreCapabilitiesArgs{
DatastoreName: data.Vkcs_db_datastore.Postgres,
DatastoreVersionId: local.Pg_v14_version_id,
}, nil)
if err != nil {
return err
}
ctx.Export("postgresqlCapabilities", postgresCaps.Capabilities)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
var postgresCaps = Vkcs.GetDbDatastoreCapabilities.Invoke(new()
{
DatastoreName = data.Vkcs_db_datastore.Postgres,
DatastoreVersionId = local.Pg_v14_version_id,
});
return new Dictionary<string, object?>
{
["postgresqlCapabilities"] = postgresCaps.Apply(getDbDatastoreCapabilitiesResult => getDbDatastoreCapabilitiesResult.Capabilities),
};
});
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.GetDbDatastoreCapabilitiesArgs;
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 postgresCaps = VkcsFunctions.getDbDatastoreCapabilities(GetDbDatastoreCapabilitiesArgs.builder()
.datastoreName(data.vkcs_db_datastore().postgres())
.datastoreVersionId(local.pg_v14_version_id())
.build());
ctx.export("postgresqlCapabilities", postgresCaps.applyValue(getDbDatastoreCapabilitiesResult -> getDbDatastoreCapabilitiesResult.capabilities()));
}
}
variables:
postgresCaps:
fn::invoke:
function: vkcs:getDbDatastoreCapabilities
arguments:
datastoreName: ${data.vkcs_db_datastore.postgres}
datastoreVersionId: ${local.pg_v14_version_id}
outputs:
postgresqlCapabilities: ${postgresCaps.capabilities}
Using getDbDatastoreCapabilities
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 getDbDatastoreCapabilities(args: GetDbDatastoreCapabilitiesArgs, opts?: InvokeOptions): Promise<GetDbDatastoreCapabilitiesResult>
function getDbDatastoreCapabilitiesOutput(args: GetDbDatastoreCapabilitiesOutputArgs, opts?: InvokeOptions): Output<GetDbDatastoreCapabilitiesResult>
def get_db_datastore_capabilities(datastore_name: Optional[str] = None,
datastore_version_id: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDbDatastoreCapabilitiesResult
def get_db_datastore_capabilities_output(datastore_name: Optional[pulumi.Input[str]] = None,
datastore_version_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDbDatastoreCapabilitiesResult]
func GetDbDatastoreCapabilities(ctx *Context, args *GetDbDatastoreCapabilitiesArgs, opts ...InvokeOption) (*GetDbDatastoreCapabilitiesResult, error)
func GetDbDatastoreCapabilitiesOutput(ctx *Context, args *GetDbDatastoreCapabilitiesOutputArgs, opts ...InvokeOption) GetDbDatastoreCapabilitiesResultOutput
> Note: This function is named GetDbDatastoreCapabilities
in the Go SDK.
public static class GetDbDatastoreCapabilities
{
public static Task<GetDbDatastoreCapabilitiesResult> InvokeAsync(GetDbDatastoreCapabilitiesArgs args, InvokeOptions? opts = null)
public static Output<GetDbDatastoreCapabilitiesResult> Invoke(GetDbDatastoreCapabilitiesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDbDatastoreCapabilitiesResult> getDbDatastoreCapabilities(GetDbDatastoreCapabilitiesArgs args, InvokeOptions options)
public static Output<GetDbDatastoreCapabilitiesResult> getDbDatastoreCapabilities(GetDbDatastoreCapabilitiesArgs args, InvokeOptions options)
fn::invoke:
function: vkcs:index/getDbDatastoreCapabilities:getDbDatastoreCapabilities
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.
- Region string
- optional string → The
region
to fetch availability zones from, defaults to the provider'sregion
.
- Datastore
Name string - required string → Name of the data store.
- Datastore
Version stringId - required string → ID of the version of the data store.
- Region string
- optional string → The
region
to fetch availability zones from, defaults to the provider'sregion
.
- datastore
Name String - required string → Name of the data store.
- datastore
Version StringId - required string → ID of the version of the data store.
- region String
- optional string → The
region
to fetch availability zones from, defaults to the provider'sregion
.
- datastore
Name string - required string → Name of the data store.
- datastore
Version stringId - required string → ID of the version of the data store.
- region string
- optional string → The
region
to fetch availability zones from, defaults to the provider'sregion
.
- datastore_
name str - required string → Name of the data store.
- datastore_
version_ strid - required string → ID of the version of the data store.
- region str
- optional string → The
region
to fetch availability zones from, defaults to the provider'sregion
.
- datastore
Name String - required string → Name of the data store.
- datastore
Version StringId - required string → ID of the version of the data store.
- region String
- optional string → The
region
to fetch availability zones from, defaults to the provider'sregion
.
getDbDatastoreCapabilities Result
The following output properties are available:
- Capabilities
List<Get
Db Datastore Capabilities Capability> - list → Capabilities of the datastore.
- Datastore
Name string - Datastore
Version stringId - Id string
- string → ID of the resource
- Region string
- Capabilities
[]Get
Db Datastore Capabilities Capability - list → Capabilities of the datastore.
- Datastore
Name string - Datastore
Version stringId - Id string
- string → ID of the resource
- Region string
- capabilities
List<Get
Db Datastore Capabilities Capability> - list → Capabilities of the datastore.
- datastore
Name String - datastore
Version StringId - id String
- string → ID of the resource
- region String
- capabilities
Get
Db Datastore Capabilities Capability[] - list → Capabilities of the datastore.
- datastore
Name string - datastore
Version stringId - id string
- string → ID of the resource
- region string
- capabilities
Sequence[Get
Db Datastore Capabilities Capability] - list → Capabilities of the datastore.
- datastore_
name str - datastore_
version_ strid - id str
- string → ID of the resource
- region str
- capabilities List<Property Map>
- list → Capabilities of the datastore.
- datastore
Name String - datastore
Version StringId - id String
- string → ID of the resource
- region String
Supporting Types
GetDbDatastoreCapabilitiesCapability
- Allow
Major boolUpgrade - boolean → This attribute indicates whether a capability can be applied in the next major version of data store.
- Allow
Upgrade boolFrom Backup - boolean → This attribute indicates whether a capability can be applied to upgrade from backup.
- Description string
- string → Description of data store capability.
- Name string
- string → Name of a parameter.
- Params
List<Get
Db Datastore Capabilities Capability Param> - list
- Should
Be boolOn Master - boolean → This attribute indicates whether a capability applies only to the master node.
- Allow
Major boolUpgrade - boolean → This attribute indicates whether a capability can be applied in the next major version of data store.
- Allow
Upgrade boolFrom Backup - boolean → This attribute indicates whether a capability can be applied to upgrade from backup.
- Description string
- string → Description of data store capability.
- Name string
- string → Name of a parameter.
- Params
[]Get
Db Datastore Capabilities Capability Param - list
- Should
Be boolOn Master - boolean → This attribute indicates whether a capability applies only to the master node.
- allow
Major BooleanUpgrade - boolean → This attribute indicates whether a capability can be applied in the next major version of data store.
- allow
Upgrade BooleanFrom Backup - boolean → This attribute indicates whether a capability can be applied to upgrade from backup.
- description String
- string → Description of data store capability.
- name String
- string → Name of a parameter.
- params
List<Get
Db Datastore Capabilities Capability Param> - list
- should
Be BooleanOn Master - boolean → This attribute indicates whether a capability applies only to the master node.
- allow
Major booleanUpgrade - boolean → This attribute indicates whether a capability can be applied in the next major version of data store.
- allow
Upgrade booleanFrom Backup - boolean → This attribute indicates whether a capability can be applied to upgrade from backup.
- description string
- string → Description of data store capability.
- name string
- string → Name of a parameter.
- params
Get
Db Datastore Capabilities Capability Param[] - list
- should
Be booleanOn Master - boolean → This attribute indicates whether a capability applies only to the master node.
- allow_
major_ boolupgrade - boolean → This attribute indicates whether a capability can be applied in the next major version of data store.
- allow_
upgrade_ boolfrom_ backup - boolean → This attribute indicates whether a capability can be applied to upgrade from backup.
- description str
- string → Description of data store capability.
- name str
- string → Name of a parameter.
- params
Sequence[Get
Db Datastore Capabilities Capability Param] - list
- should_
be_ boolon_ master - boolean → This attribute indicates whether a capability applies only to the master node.
- allow
Major BooleanUpgrade - boolean → This attribute indicates whether a capability can be applied in the next major version of data store.
- allow
Upgrade BooleanFrom Backup - boolean → This attribute indicates whether a capability can be applied to upgrade from backup.
- description String
- string → Description of data store capability.
- name String
- string → Name of a parameter.
- params List<Property Map>
- list
- should
Be BooleanOn Master - boolean → This attribute indicates whether a capability applies only to the master node.
GetDbDatastoreCapabilitiesCapabilityParam
- Default
Value string - string → Default value for a parameter.
- Element
Type string - string → Type of element value for a parameter of
list
type. - Enum
Values List<string> - string → Supported values for a parameter.
- Masked bool
- boolean → Masked indicates whether a parameter value must be a boolean mask.
- Max double
- number → Maximum value for a parameter.
- Min double
- number → Minimum value for a parameter.
- Name string
- string → Name of a parameter.
- Regex string
- string → Regular expression that a parameter value must match.
- Required bool
- boolean → Required indicates whether a parameter value must be set.
- Type string
- string → Type of value for a parameter.
- Default
Value string - string → Default value for a parameter.
- Element
Type string - string → Type of element value for a parameter of
list
type. - Enum
Values []string - string → Supported values for a parameter.
- Masked bool
- boolean → Masked indicates whether a parameter value must be a boolean mask.
- Max float64
- number → Maximum value for a parameter.
- Min float64
- number → Minimum value for a parameter.
- Name string
- string → Name of a parameter.
- Regex string
- string → Regular expression that a parameter value must match.
- Required bool
- boolean → Required indicates whether a parameter value must be set.
- Type string
- string → Type of value for a parameter.
- default
Value String - string → Default value for a parameter.
- element
Type String - string → Type of element value for a parameter of
list
type. - enum
Values List<String> - string → Supported values for a parameter.
- masked Boolean
- boolean → Masked indicates whether a parameter value must be a boolean mask.
- max Double
- number → Maximum value for a parameter.
- min Double
- number → Minimum value for a parameter.
- name String
- string → Name of a parameter.
- regex String
- string → Regular expression that a parameter value must match.
- required Boolean
- boolean → Required indicates whether a parameter value must be set.
- type String
- string → Type of value for a parameter.
- default
Value string - string → Default value for a parameter.
- element
Type string - string → Type of element value for a parameter of
list
type. - enum
Values string[] - string → Supported values for a parameter.
- masked boolean
- boolean → Masked indicates whether a parameter value must be a boolean mask.
- max number
- number → Maximum value for a parameter.
- min number
- number → Minimum value for a parameter.
- name string
- string → Name of a parameter.
- regex string
- string → Regular expression that a parameter value must match.
- required boolean
- boolean → Required indicates whether a parameter value must be set.
- type string
- string → Type of value for a parameter.
- default_
value str - string → Default value for a parameter.
- element_
type str - string → Type of element value for a parameter of
list
type. - enum_
values Sequence[str] - string → Supported values for a parameter.
- masked bool
- boolean → Masked indicates whether a parameter value must be a boolean mask.
- max float
- number → Maximum value for a parameter.
- min float
- number → Minimum value for a parameter.
- name str
- string → Name of a parameter.
- regex str
- string → Regular expression that a parameter value must match.
- required bool
- boolean → Required indicates whether a parameter value must be set.
- type str
- string → Type of value for a parameter.
- default
Value String - string → Default value for a parameter.
- element
Type String - string → Type of element value for a parameter of
list
type. - enum
Values List<String> - string → Supported values for a parameter.
- masked Boolean
- boolean → Masked indicates whether a parameter value must be a boolean mask.
- max Number
- number → Maximum value for a parameter.
- min Number
- number → Minimum value for a parameter.
- name String
- string → Name of a parameter.
- regex String
- string → Regular expression that a parameter value must match.
- required Boolean
- boolean → Required indicates whether a parameter value must be set.
- type String
- string → Type of value for a parameter.
Package Details
- Repository
- vkcs vk-cs/terraform-provider-vkcs
- License
- Notes
- This Pulumi package is based on the
vkcs
Terraform Provider.