Viewing docs for planetscale 1.8.0
published on Thursday, Aug 13, 2026 by planetscale
published on Thursday, Aug 13, 2026 by planetscale
Viewing docs for planetscale 1.8.0
published on Thursday, Aug 13, 2026 by planetscale
published on Thursday, Aug 13, 2026 by planetscale
VitessKeyspace DataSource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as planetscale from "@pulumi/planetscale";
const myVitesskeyspace = planetscale.getVitessKeyspace({
branch: "...my_branch...",
database: "...my_database...",
name: "...my_name...",
organization: "...my_organization...",
});
import pulumi
import pulumi_planetscale as planetscale
my_vitesskeyspace = planetscale.get_vitess_keyspace(branch="...my_branch...",
database="...my_database...",
name="...my_name...",
organization="...my_organization...")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/planetscale/planetscale"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := planetscale.LookupVitessKeyspace(ctx, &planetscale.LookupVitessKeyspaceArgs{
Branch: "...my_branch...",
Database: "...my_database...",
Name: "...my_name...",
Organization: "...my_organization...",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Planetscale = Pulumi.Planetscale;
return await Deployment.RunAsync(() =>
{
var myVitesskeyspace = Planetscale.GetVitessKeyspace.Invoke(new()
{
Branch = "...my_branch...",
Database = "...my_database...",
Name = "...my_name...",
Organization = "...my_organization...",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.planetscale.PlanetscaleFunctions;
import com.pulumi.planetscale.inputs.GetVitessKeyspaceArgs;
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 myVitesskeyspace = PlanetscaleFunctions.getVitessKeyspace(GetVitessKeyspaceArgs.builder()
.branch("...my_branch...")
.database("...my_database...")
.name("...my_name...")
.organization("...my_organization...")
.build());
}
}
variables:
myVitesskeyspace:
fn::invoke:
function: planetscale:getVitessKeyspace
arguments:
branch: '...my_branch...'
database: '...my_database...'
name: '...my_name...'
organization: '...my_organization...'
Example coming soon!
Using getVitessKeyspace
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 getVitessKeyspace(args: GetVitessKeyspaceArgs, opts?: InvokeOptions): Promise<GetVitessKeyspaceResult>
function getVitessKeyspaceOutput(args: GetVitessKeyspaceOutputArgs, opts?: InvokeOutputOptions): Output<GetVitessKeyspaceResult>def get_vitess_keyspace(branch: Optional[str] = None,
database: Optional[str] = None,
name: Optional[str] = None,
organization: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVitessKeyspaceResult
def get_vitess_keyspace_output(branch: pulumi.Input[Optional[str]] = None,
database: pulumi.Input[Optional[str]] = None,
name: pulumi.Input[Optional[str]] = None,
organization: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetVitessKeyspaceResult]func LookupVitessKeyspace(ctx *Context, args *LookupVitessKeyspaceArgs, opts ...InvokeOption) (*LookupVitessKeyspaceResult, error)
func LookupVitessKeyspaceOutput(ctx *Context, args *LookupVitessKeyspaceOutputArgs, opts ...InvokeOption) LookupVitessKeyspaceResultOutput> Note: This function is named LookupVitessKeyspace in the Go SDK.
public static class GetVitessKeyspace
{
public static Task<GetVitessKeyspaceResult> InvokeAsync(GetVitessKeyspaceArgs args, InvokeOptions? opts = null)
public static Output<GetVitessKeyspaceResult> Invoke(GetVitessKeyspaceInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetVitessKeyspaceResult> Invoke(GetVitessKeyspaceInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetVitessKeyspaceResult> getVitessKeyspace(GetVitessKeyspaceArgs args, InvokeOptions options)
public static Output<GetVitessKeyspaceResult> getVitessKeyspace(GetVitessKeyspaceArgs args, InvokeOptions options)
public static Output<GetVitessKeyspaceResult> getVitessKeyspace(GetVitessKeyspaceArgs args, InvokeOutputOptions options)
fn::invoke:
function: planetscale:index/getVitessKeyspace:getVitessKeyspace
arguments:
# arguments dictionarydata "planetscale_get_vitess_keyspace" "name" {
# arguments
}The following arguments are supported:
- Branch string
- The name of the branch
- Database string
- The name of the database the branch belongs to
- Name string
- Name of the keyspace
- Organization string
- The name of the organization the branch belongs to
- Branch string
- The name of the branch
- Database string
- The name of the database the branch belongs to
- Name string
- Name of the keyspace
- Organization string
- The name of the organization the branch belongs to
- branch string
- The name of the branch
- database string
- The name of the database the branch belongs to
- name string
- Name of the keyspace
- organization string
- The name of the organization the branch belongs to
- branch String
- The name of the branch
- database String
- The name of the database the branch belongs to
- name String
- Name of the keyspace
- organization String
- The name of the organization the branch belongs to
- branch string
- The name of the branch
- database string
- The name of the database the branch belongs to
- name string
- Name of the keyspace
- organization string
- The name of the organization the branch belongs to
- branch str
- The name of the branch
- database str
- The name of the database the branch belongs to
- name str
- Name of the keyspace
- organization str
- The name of the organization the branch belongs to
- branch String
- The name of the branch
- database String
- The name of the database the branch belongs to
- name String
- Name of the keyspace
- organization String
- The name of the organization the branch belongs to
getVitessKeyspace Result
The following output properties are available:
- Branch string
- The name of the branch
- Cluster
Display stringName - The SKU representing the keyspace cluster size for display
- Cluster
Size string - The database cluster size name (e.g.,
PS_10,PS_80). Updates in place via a keyspace resize. - Config
Change boolIn Progress - Is the keyspace undergoing a config change
- Created
At string - When the keyspace was created
- Database string
- The name of the database the branch belongs to
- Extra
Replicas double - The number of additional replicas beyond the included default. Updates in place via a keyspace resize.
- Id string
- The ID of the keyspace
- Imported bool
- Is this keyspace used in an import
- Is
Default bool - True when this is the branch's default keyspace (usually created with the branch). Import that keyspace to manage its size or replicas; do not try to create it with this resource.
- Metal bool
- Is the keyspace running on metal instances
- Name string
- Name of the keyspace
- Node
Ttl stringStrategy - Controls when node TTL drains are allowed
- Organization string
- The name of the organization the branch belongs to
- Ready bool
- Is the keyspace provisioned and serving traffic
- Replicas double
- Total number of replicas in the keyspace
- Replication
Durability GetConstraints Vitess Keyspace Replication Durability Constraints - Resize
In boolProgress - True while any unfinished resize request exists for the keyspace. Computed for observability; apply waits on ready, resizing, resizepending, and configchangeinprogress instead, because this flag can lag after the resize has already applied.
- Resize
Pending bool - True while a resize request is queued. The provider waits for this to become false after create and update.
- Resizing bool
- True while the keyspace is actively resizing. The provider waits for this to become false after create and update.
- bool
- If the keyspace is sharded
- double
- The number of shards. Set only at create time; changing this value requires replacement.
- Updated
At string - When the keyspace was last updated
- Vector
Pool doubleAllocation - Percentage of buffer pool memory allocated to vector indexes
- Vreplication
Flags GetVitess Keyspace Vreplication Flags
- Branch string
- The name of the branch
- Cluster
Display stringName - The SKU representing the keyspace cluster size for display
- Cluster
Size string - The database cluster size name (e.g.,
PS_10,PS_80). Updates in place via a keyspace resize. - Config
Change boolIn Progress - Is the keyspace undergoing a config change
- Created
At string - When the keyspace was created
- Database string
- The name of the database the branch belongs to
- Extra
Replicas float64 - The number of additional replicas beyond the included default. Updates in place via a keyspace resize.
- Id string
- The ID of the keyspace
- Imported bool
- Is this keyspace used in an import
- Is
Default bool - True when this is the branch's default keyspace (usually created with the branch). Import that keyspace to manage its size or replicas; do not try to create it with this resource.
- Metal bool
- Is the keyspace running on metal instances
- Name string
- Name of the keyspace
- Node
Ttl stringStrategy - Controls when node TTL drains are allowed
- Organization string
- The name of the organization the branch belongs to
- Ready bool
- Is the keyspace provisioned and serving traffic
- Replicas float64
- Total number of replicas in the keyspace
- Replication
Durability GetConstraints Vitess Keyspace Replication Durability Constraints - Resize
In boolProgress - True while any unfinished resize request exists for the keyspace. Computed for observability; apply waits on ready, resizing, resizepending, and configchangeinprogress instead, because this flag can lag after the resize has already applied.
- Resize
Pending bool - True while a resize request is queued. The provider waits for this to become false after create and update.
- Resizing bool
- True while the keyspace is actively resizing. The provider waits for this to become false after create and update.
- bool
- If the keyspace is sharded
- float64
- The number of shards. Set only at create time; changing this value requires replacement.
- Updated
At string - When the keyspace was last updated
- Vector
Pool float64Allocation - Percentage of buffer pool memory allocated to vector indexes
- Vreplication
Flags GetVitess Keyspace Vreplication Flags
- branch string
- The name of the branch
- cluster_
display_ stringname - The SKU representing the keyspace cluster size for display
- cluster_
size string - The database cluster size name (e.g.,
PS_10,PS_80). Updates in place via a keyspace resize. - config_
change_ boolin_ progress - Is the keyspace undergoing a config change
- created_
at string - When the keyspace was created
- database string
- The name of the database the branch belongs to
- extra_
replicas number - The number of additional replicas beyond the included default. Updates in place via a keyspace resize.
- id string
- The ID of the keyspace
- imported bool
- Is this keyspace used in an import
- is_
default bool - True when this is the branch's default keyspace (usually created with the branch). Import that keyspace to manage its size or replicas; do not try to create it with this resource.
- metal bool
- Is the keyspace running on metal instances
- name string
- Name of the keyspace
- node_
ttl_ stringstrategy - Controls when node TTL drains are allowed
- organization string
- The name of the organization the branch belongs to
- ready bool
- Is the keyspace provisioned and serving traffic
- replicas number
- Total number of replicas in the keyspace
- replication_
durability_ objectconstraints - resize_
in_ boolprogress - True while any unfinished resize request exists for the keyspace. Computed for observability; apply waits on ready, resizing, resizepending, and configchangeinprogress instead, because this flag can lag after the resize has already applied.
- resize_
pending bool - True while a resize request is queued. The provider waits for this to become false after create and update.
- resizing bool
- True while the keyspace is actively resizing. The provider waits for this to become false after create and update.
- bool
- If the keyspace is sharded
- number
- The number of shards. Set only at create time; changing this value requires replacement.
- updated_
at string - When the keyspace was last updated
- vector_
pool_ numberallocation - Percentage of buffer pool memory allocated to vector indexes
- vreplication_
flags object
- branch String
- The name of the branch
- cluster
Display StringName - The SKU representing the keyspace cluster size for display
- cluster
Size String - The database cluster size name (e.g.,
PS_10,PS_80). Updates in place via a keyspace resize. - config
Change BooleanIn Progress - Is the keyspace undergoing a config change
- created
At String - When the keyspace was created
- database String
- The name of the database the branch belongs to
- extra
Replicas Double - The number of additional replicas beyond the included default. Updates in place via a keyspace resize.
- id String
- The ID of the keyspace
- imported Boolean
- Is this keyspace used in an import
- is
Default Boolean - True when this is the branch's default keyspace (usually created with the branch). Import that keyspace to manage its size or replicas; do not try to create it with this resource.
- metal Boolean
- Is the keyspace running on metal instances
- name String
- Name of the keyspace
- node
Ttl StringStrategy - Controls when node TTL drains are allowed
- organization String
- The name of the organization the branch belongs to
- ready Boolean
- Is the keyspace provisioned and serving traffic
- replicas Double
- Total number of replicas in the keyspace
- replication
Durability GetConstraints Vitess Keyspace Replication Durability Constraints - resize
In BooleanProgress - True while any unfinished resize request exists for the keyspace. Computed for observability; apply waits on ready, resizing, resizepending, and configchangeinprogress instead, because this flag can lag after the resize has already applied.
- resize
Pending Boolean - True while a resize request is queued. The provider waits for this to become false after create and update.
- resizing Boolean
- True while the keyspace is actively resizing. The provider waits for this to become false after create and update.
- Boolean
- If the keyspace is sharded
- Double
- The number of shards. Set only at create time; changing this value requires replacement.
- updated
At String - When the keyspace was last updated
- vector
Pool DoubleAllocation - Percentage of buffer pool memory allocated to vector indexes
- vreplication
Flags GetVitess Keyspace Vreplication Flags
- branch string
- The name of the branch
- cluster
Display stringName - The SKU representing the keyspace cluster size for display
- cluster
Size string - The database cluster size name (e.g.,
PS_10,PS_80). Updates in place via a keyspace resize. - config
Change booleanIn Progress - Is the keyspace undergoing a config change
- created
At string - When the keyspace was created
- database string
- The name of the database the branch belongs to
- extra
Replicas number - The number of additional replicas beyond the included default. Updates in place via a keyspace resize.
- id string
- The ID of the keyspace
- imported boolean
- Is this keyspace used in an import
- is
Default boolean - True when this is the branch's default keyspace (usually created with the branch). Import that keyspace to manage its size or replicas; do not try to create it with this resource.
- metal boolean
- Is the keyspace running on metal instances
- name string
- Name of the keyspace
- node
Ttl stringStrategy - Controls when node TTL drains are allowed
- organization string
- The name of the organization the branch belongs to
- ready boolean
- Is the keyspace provisioned and serving traffic
- replicas number
- Total number of replicas in the keyspace
- replication
Durability GetConstraints Vitess Keyspace Replication Durability Constraints - resize
In booleanProgress - True while any unfinished resize request exists for the keyspace. Computed for observability; apply waits on ready, resizing, resizepending, and configchangeinprogress instead, because this flag can lag after the resize has already applied.
- resize
Pending boolean - True while a resize request is queued. The provider waits for this to become false after create and update.
- resizing boolean
- True while the keyspace is actively resizing. The provider waits for this to become false after create and update.
- boolean
- If the keyspace is sharded
- number
- The number of shards. Set only at create time; changing this value requires replacement.
- updated
At string - When the keyspace was last updated
- vector
Pool numberAllocation - Percentage of buffer pool memory allocated to vector indexes
- vreplication
Flags GetVitess Keyspace Vreplication Flags
- branch str
- The name of the branch
- cluster_
display_ strname - The SKU representing the keyspace cluster size for display
- cluster_
size str - The database cluster size name (e.g.,
PS_10,PS_80). Updates in place via a keyspace resize. - config_
change_ boolin_ progress - Is the keyspace undergoing a config change
- created_
at str - When the keyspace was created
- database str
- The name of the database the branch belongs to
- extra_
replicas float - The number of additional replicas beyond the included default. Updates in place via a keyspace resize.
- id str
- The ID of the keyspace
- imported bool
- Is this keyspace used in an import
- is_
default bool - True when this is the branch's default keyspace (usually created with the branch). Import that keyspace to manage its size or replicas; do not try to create it with this resource.
- metal bool
- Is the keyspace running on metal instances
- name str
- Name of the keyspace
- node_
ttl_ strstrategy - Controls when node TTL drains are allowed
- organization str
- The name of the organization the branch belongs to
- ready bool
- Is the keyspace provisioned and serving traffic
- replicas float
- Total number of replicas in the keyspace
- replication_
durability_ Getconstraints Vitess Keyspace Replication Durability Constraints - resize_
in_ boolprogress - True while any unfinished resize request exists for the keyspace. Computed for observability; apply waits on ready, resizing, resizepending, and configchangeinprogress instead, because this flag can lag after the resize has already applied.
- resize_
pending bool - True while a resize request is queued. The provider waits for this to become false after create and update.
- resizing bool
- True while the keyspace is actively resizing. The provider waits for this to become false after create and update.
- bool
- If the keyspace is sharded
- float
- The number of shards. Set only at create time; changing this value requires replacement.
- updated_
at str - When the keyspace was last updated
- vector_
pool_ floatallocation - Percentage of buffer pool memory allocated to vector indexes
- vreplication_
flags GetVitess Keyspace Vreplication Flags
- branch String
- The name of the branch
- cluster
Display StringName - The SKU representing the keyspace cluster size for display
- cluster
Size String - The database cluster size name (e.g.,
PS_10,PS_80). Updates in place via a keyspace resize. - config
Change BooleanIn Progress - Is the keyspace undergoing a config change
- created
At String - When the keyspace was created
- database String
- The name of the database the branch belongs to
- extra
Replicas Number - The number of additional replicas beyond the included default. Updates in place via a keyspace resize.
- id String
- The ID of the keyspace
- imported Boolean
- Is this keyspace used in an import
- is
Default Boolean - True when this is the branch's default keyspace (usually created with the branch). Import that keyspace to manage its size or replicas; do not try to create it with this resource.
- metal Boolean
- Is the keyspace running on metal instances
- name String
- Name of the keyspace
- node
Ttl StringStrategy - Controls when node TTL drains are allowed
- organization String
- The name of the organization the branch belongs to
- ready Boolean
- Is the keyspace provisioned and serving traffic
- replicas Number
- Total number of replicas in the keyspace
- replication
Durability Property MapConstraints - resize
In BooleanProgress - True while any unfinished resize request exists for the keyspace. Computed for observability; apply waits on ready, resizing, resizepending, and configchangeinprogress instead, because this flag can lag after the resize has already applied.
- resize
Pending Boolean - True while a resize request is queued. The provider waits for this to become false after create and update.
- resizing Boolean
- True while the keyspace is actively resizing. The provider waits for this to become false after create and update.
- Boolean
- If the keyspace is sharded
- Number
- The number of shards. Set only at create time; changing this value requires replacement.
- updated
At String - When the keyspace was last updated
- vector
Pool NumberAllocation - Percentage of buffer pool memory allocated to vector indexes
- vreplication
Flags Property Map
Supporting Types
GetVitessKeyspaceReplicationDurabilityConstraints
- Strategy string
- The replication durability strategy
- Strategy string
- The replication durability strategy
- strategy string
- The replication durability strategy
- strategy String
- The replication durability strategy
- strategy string
- The replication durability strategy
- strategy str
- The replication durability strategy
- strategy String
- The replication durability strategy
GetVitessKeyspaceVreplicationFlags
- Allow
No boolBlob Binlog Row Image - Allow no blob binlog row image
- Optimize
Inserts bool - Enable optimized inserts
- Vplayer
Batching bool - Enable VPlayer batching
- Allow
No boolBlob Binlog Row Image - Allow no blob binlog row image
- Optimize
Inserts bool - Enable optimized inserts
- Vplayer
Batching bool - Enable VPlayer batching
- allow_
no_ boolblob_ binlog_ row_ image - Allow no blob binlog row image
- optimize_
inserts bool - Enable optimized inserts
- vplayer_
batching bool - Enable VPlayer batching
- allow
No BooleanBlob Binlog Row Image - Allow no blob binlog row image
- optimize
Inserts Boolean - Enable optimized inserts
- vplayer
Batching Boolean - Enable VPlayer batching
- allow
No booleanBlob Binlog Row Image - Allow no blob binlog row image
- optimize
Inserts boolean - Enable optimized inserts
- vplayer
Batching boolean - Enable VPlayer batching
- allow_
no_ boolblob_ binlog_ row_ image - Allow no blob binlog row image
- optimize_
inserts bool - Enable optimized inserts
- vplayer_
batching bool - Enable VPlayer batching
- allow
No BooleanBlob Binlog Row Image - Allow no blob binlog row image
- optimize
Inserts Boolean - Enable optimized inserts
- vplayer
Batching Boolean - Enable VPlayer batching
Package Details
- Repository
- planetscale planetscale/terraform-provider-planetscale
- License
- Notes
- This Pulumi package is based on the
planetscaleTerraform Provider.
Viewing docs for planetscale 1.8.0
published on Thursday, Aug 13, 2026 by planetscale
published on Thursday, Aug 13, 2026 by planetscale