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
List PlanetScale Vitess keyspaces on a branch. See planetscale.VitessKeyspace for create, resize, and default-keyspace guidance.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as planetscale from "@pulumi/planetscale";
const myVitesskeyspaces = planetscale.getVitessKeyspaces({
branch: "...my_branch...",
database: "...my_database...",
organization: "...my_organization...",
});
import pulumi
import pulumi_planetscale as planetscale
my_vitesskeyspaces = planetscale.get_vitess_keyspaces(branch="...my_branch...",
database="...my_database...",
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.GetVitessKeyspaces(ctx, &planetscale.GetVitessKeyspacesArgs{
Branch: "...my_branch...",
Database: "...my_database...",
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 myVitesskeyspaces = Planetscale.GetVitessKeyspaces.Invoke(new()
{
Branch = "...my_branch...",
Database = "...my_database...",
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.GetVitessKeyspacesArgs;
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 myVitesskeyspaces = PlanetscaleFunctions.getVitessKeyspaces(GetVitessKeyspacesArgs.builder()
.branch("...my_branch...")
.database("...my_database...")
.organization("...my_organization...")
.build());
}
}
variables:
myVitesskeyspaces:
fn::invoke:
function: planetscale:getVitessKeyspaces
arguments:
branch: '...my_branch...'
database: '...my_database...'
organization: '...my_organization...'
Example coming soon!
Using getVitessKeyspaces
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 getVitessKeyspaces(args: GetVitessKeyspacesArgs, opts?: InvokeOptions): Promise<GetVitessKeyspacesResult>
function getVitessKeyspacesOutput(args: GetVitessKeyspacesOutputArgs, opts?: InvokeOutputOptions): Output<GetVitessKeyspacesResult>def get_vitess_keyspaces(branch: Optional[str] = None,
database: Optional[str] = None,
organization: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVitessKeyspacesResult
def get_vitess_keyspaces_output(branch: pulumi.Input[Optional[str]] = None,
database: pulumi.Input[Optional[str]] = None,
organization: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetVitessKeyspacesResult]func GetVitessKeyspaces(ctx *Context, args *GetVitessKeyspacesArgs, opts ...InvokeOption) (*GetVitessKeyspacesResult, error)
func GetVitessKeyspacesOutput(ctx *Context, args *GetVitessKeyspacesOutputArgs, opts ...InvokeOption) GetVitessKeyspacesResultOutput> Note: This function is named GetVitessKeyspaces in the Go SDK.
public static class GetVitessKeyspaces
{
public static Task<GetVitessKeyspacesResult> InvokeAsync(GetVitessKeyspacesArgs args, InvokeOptions? opts = null)
public static Output<GetVitessKeyspacesResult> Invoke(GetVitessKeyspacesInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetVitessKeyspacesResult> Invoke(GetVitessKeyspacesInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetVitessKeyspacesResult> getVitessKeyspaces(GetVitessKeyspacesArgs args, InvokeOptions options)
public static Output<GetVitessKeyspacesResult> getVitessKeyspaces(GetVitessKeyspacesArgs args, InvokeOptions options)
public static Output<GetVitessKeyspacesResult> getVitessKeyspaces(GetVitessKeyspacesArgs args, InvokeOutputOptions options)
fn::invoke:
function: planetscale:index/getVitessKeyspaces:getVitessKeyspaces
arguments:
# arguments dictionarydata "planetscale_get_vitess_keyspaces" "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
- 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
- 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
- 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
- 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
- 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
- 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
- organization String
- The name of the organization the branch belongs to
getVitessKeyspaces Result
The following output properties are available:
- Branch string
- The name of the branch
- Database string
- The name of the database the branch belongs to
- Datas
List<Get
Vitess Keyspaces Data> - Id string
- The provider-assigned unique ID for this managed resource.
- Organization string
- The name of the organization the branch belongs to
- Type string
- The response type. Always "list" for paginated responses.
- Branch string
- The name of the branch
- Database string
- The name of the database the branch belongs to
- Datas
[]Get
Vitess Keyspaces Data - Id string
- The provider-assigned unique ID for this managed resource.
- Organization string
- The name of the organization the branch belongs to
- Type string
- The response type. Always "list" for paginated responses.
- branch string
- The name of the branch
- database string
- The name of the database the branch belongs to
- datas list(object)
- id string
- The provider-assigned unique ID for this managed resource.
- organization string
- The name of the organization the branch belongs to
- type string
- The response type. Always "list" for paginated responses.
- branch String
- The name of the branch
- database String
- The name of the database the branch belongs to
- datas
List<Get
Vitess Keyspaces Data> - id String
- The provider-assigned unique ID for this managed resource.
- organization String
- The name of the organization the branch belongs to
- type String
- The response type. Always "list" for paginated responses.
- branch string
- The name of the branch
- database string
- The name of the database the branch belongs to
- datas
Get
Vitess Keyspaces Data[] - id string
- The provider-assigned unique ID for this managed resource.
- organization string
- The name of the organization the branch belongs to
- type string
- The response type. Always "list" for paginated responses.
- branch str
- The name of the branch
- database str
- The name of the database the branch belongs to
- datas
Sequence[Get
Vitess Keyspaces Data] - id str
- The provider-assigned unique ID for this managed resource.
- organization str
- The name of the organization the branch belongs to
- type str
- The response type. Always "list" for paginated responses.
- branch String
- The name of the branch
- database String
- The name of the database the branch belongs to
- datas List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- organization String
- The name of the organization the branch belongs to
- type String
- The response type. Always "list" for paginated responses.
Supporting Types
GetVitessKeyspacesData
- 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
- 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.
- 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
- Ready bool
- Is the keyspace provisioned and serving traffic
- Replicas double
- Total number of replicas in the keyspace
- Replication
Durability GetConstraints Vitess Keyspaces Data Replication Durability Constraints - Resize
In boolProgress - True while any unfinished resize request exists for the keyspace.
- Resize
Pending bool - True while a resize request is queued.
- Resizing bool
- True while the keyspace is actively resizing.
- bool
- If the keyspace is sharded
- double
- The number of keyspace shards
- Updated
At string - When the keyspace was last updated
- Vector
Pool doubleAllocation - Percentage of buffer pool memory allocated to vector indexes
- Vreplication
Flags GetVitess Keyspaces Data Vreplication Flags
- 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
- 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.
- 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
- Ready bool
- Is the keyspace provisioned and serving traffic
- Replicas float64
- Total number of replicas in the keyspace
- Replication
Durability GetConstraints Vitess Keyspaces Data Replication Durability Constraints - Resize
In boolProgress - True while any unfinished resize request exists for the keyspace.
- Resize
Pending bool - True while a resize request is queued.
- Resizing bool
- True while the keyspace is actively resizing.
- bool
- If the keyspace is sharded
- float64
- The number of keyspace shards
- Updated
At string - When the keyspace was last updated
- Vector
Pool float64Allocation - Percentage of buffer pool memory allocated to vector indexes
- Vreplication
Flags GetVitess Keyspaces Data Vreplication Flags
- 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
- 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.
- 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
- 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.
- resize_
pending bool - True while a resize request is queued.
- resizing bool
- True while the keyspace is actively resizing.
- bool
- If the keyspace is sharded
- number
- The number of keyspace shards
- updated_
at string - When the keyspace was last updated
- vector_
pool_ numberallocation - Percentage of buffer pool memory allocated to vector indexes
- vreplication_
flags object
- 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
- 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.
- 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
- ready Boolean
- Is the keyspace provisioned and serving traffic
- replicas Double
- Total number of replicas in the keyspace
- replication
Durability GetConstraints Vitess Keyspaces Data Replication Durability Constraints - resize
In BooleanProgress - True while any unfinished resize request exists for the keyspace.
- resize
Pending Boolean - True while a resize request is queued.
- resizing Boolean
- True while the keyspace is actively resizing.
- Boolean
- If the keyspace is sharded
- Double
- The number of keyspace shards
- updated
At String - When the keyspace was last updated
- vector
Pool DoubleAllocation - Percentage of buffer pool memory allocated to vector indexes
- vreplication
Flags GetVitess Keyspaces Data Vreplication Flags
- 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
- 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.
- 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
- ready boolean
- Is the keyspace provisioned and serving traffic
- replicas number
- Total number of replicas in the keyspace
- replication
Durability GetConstraints Vitess Keyspaces Data Replication Durability Constraints - resize
In booleanProgress - True while any unfinished resize request exists for the keyspace.
- resize
Pending boolean - True while a resize request is queued.
- resizing boolean
- True while the keyspace is actively resizing.
- boolean
- If the keyspace is sharded
- number
- The number of keyspace shards
- updated
At string - When the keyspace was last updated
- vector
Pool numberAllocation - Percentage of buffer pool memory allocated to vector indexes
- vreplication
Flags GetVitess Keyspaces Data Vreplication Flags
- 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
- 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.
- 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
- ready bool
- Is the keyspace provisioned and serving traffic
- replicas float
- Total number of replicas in the keyspace
- replication_
durability_ Getconstraints Vitess Keyspaces Data Replication Durability Constraints - resize_
in_ boolprogress - True while any unfinished resize request exists for the keyspace.
- resize_
pending bool - True while a resize request is queued.
- resizing bool
- True while the keyspace is actively resizing.
- bool
- If the keyspace is sharded
- float
- The number of keyspace shards
- updated_
at str - When the keyspace was last updated
- vector_
pool_ floatallocation - Percentage of buffer pool memory allocated to vector indexes
- vreplication_
flags GetVitess Keyspaces Data Vreplication Flags
- 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
- 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.
- 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
- 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.
- resize
Pending Boolean - True while a resize request is queued.
- resizing Boolean
- True while the keyspace is actively resizing.
- Boolean
- If the keyspace is sharded
- Number
- The number of keyspace shards
- 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
GetVitessKeyspacesDataReplicationDurabilityConstraints
- 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
GetVitessKeyspacesDataVreplicationFlags
- 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