Viewing docs for planetscale 1.0.0
published on Monday, Mar 2, 2026 by planetscale
published on Monday, Mar 2, 2026 by planetscale
Viewing docs for planetscale 1.0.0
published on Monday, Mar 2, 2026 by planetscale
published on Monday, Mar 2, 2026 by planetscale
VitessBranchPasswords DataSource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as planetscale from "@pulumi/planetscale";
const myVitessbranchpasswords = planetscale.getVitessBranchPasswords({
branch: "...my_branch...",
database: "...my_database...",
organization: "...my_organization...",
readOnlyRegionId: "...my_read_only_region_id...",
});
import pulumi
import pulumi_planetscale as planetscale
my_vitessbranchpasswords = planetscale.get_vitess_branch_passwords(branch="...my_branch...",
database="...my_database...",
organization="...my_organization...",
read_only_region_id="...my_read_only_region_id...")
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.GetVitessBranchPasswords(ctx, &planetscale.GetVitessBranchPasswordsArgs{
Branch: "...my_branch...",
Database: "...my_database...",
Organization: "...my_organization...",
ReadOnlyRegionId: pulumi.StringRef("...my_read_only_region_id..."),
}, 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 myVitessbranchpasswords = Planetscale.GetVitessBranchPasswords.Invoke(new()
{
Branch = "...my_branch...",
Database = "...my_database...",
Organization = "...my_organization...",
ReadOnlyRegionId = "...my_read_only_region_id...",
});
});
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.GetVitessBranchPasswordsArgs;
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 myVitessbranchpasswords = PlanetscaleFunctions.getVitessBranchPasswords(GetVitessBranchPasswordsArgs.builder()
.branch("...my_branch...")
.database("...my_database...")
.organization("...my_organization...")
.readOnlyRegionId("...my_read_only_region_id...")
.build());
}
}
variables:
myVitessbranchpasswords:
fn::invoke:
function: planetscale:getVitessBranchPasswords
arguments:
branch: '...my_branch...'
database: '...my_database...'
organization: '...my_organization...'
readOnlyRegionId: '...my_read_only_region_id...'
Using getVitessBranchPasswords
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 getVitessBranchPasswords(args: GetVitessBranchPasswordsArgs, opts?: InvokeOptions): Promise<GetVitessBranchPasswordsResult>
function getVitessBranchPasswordsOutput(args: GetVitessBranchPasswordsOutputArgs, opts?: InvokeOptions): Output<GetVitessBranchPasswordsResult>def get_vitess_branch_passwords(branch: Optional[str] = None,
database: Optional[str] = None,
organization: Optional[str] = None,
read_only_region_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVitessBranchPasswordsResult
def get_vitess_branch_passwords_output(branch: Optional[pulumi.Input[str]] = None,
database: Optional[pulumi.Input[str]] = None,
organization: Optional[pulumi.Input[str]] = None,
read_only_region_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVitessBranchPasswordsResult]func GetVitessBranchPasswords(ctx *Context, args *GetVitessBranchPasswordsArgs, opts ...InvokeOption) (*GetVitessBranchPasswordsResult, error)
func GetVitessBranchPasswordsOutput(ctx *Context, args *GetVitessBranchPasswordsOutputArgs, opts ...InvokeOption) GetVitessBranchPasswordsResultOutput> Note: This function is named GetVitessBranchPasswords in the Go SDK.
public static class GetVitessBranchPasswords
{
public static Task<GetVitessBranchPasswordsResult> InvokeAsync(GetVitessBranchPasswordsArgs args, InvokeOptions? opts = null)
public static Output<GetVitessBranchPasswordsResult> Invoke(GetVitessBranchPasswordsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVitessBranchPasswordsResult> getVitessBranchPasswords(GetVitessBranchPasswordsArgs args, InvokeOptions options)
public static Output<GetVitessBranchPasswordsResult> getVitessBranchPasswords(GetVitessBranchPasswordsArgs args, InvokeOptions options)
fn::invoke:
function: planetscale:index/getVitessBranchPasswords:getVitessBranchPasswords
arguments:
# arguments dictionaryThe following arguments are supported:
- Branch string
- The name of the branch the password belongs to
- Database string
- The name of the database the password belongs to
- Organization string
- The name of the organization the password belongs to
- Read
Only stringRegion Id - A read-only region of the database branch. If present, the password results will be filtered to only those in the region
- Branch string
- The name of the branch the password belongs to
- Database string
- The name of the database the password belongs to
- Organization string
- The name of the organization the password belongs to
- Read
Only stringRegion Id - A read-only region of the database branch. If present, the password results will be filtered to only those in the region
- branch String
- The name of the branch the password belongs to
- database String
- The name of the database the password belongs to
- organization String
- The name of the organization the password belongs to
- read
Only StringRegion Id - A read-only region of the database branch. If present, the password results will be filtered to only those in the region
- branch string
- The name of the branch the password belongs to
- database string
- The name of the database the password belongs to
- organization string
- The name of the organization the password belongs to
- read
Only stringRegion Id - A read-only region of the database branch. If present, the password results will be filtered to only those in the region
- branch str
- The name of the branch the password belongs to
- database str
- The name of the database the password belongs to
- organization str
- The name of the organization the password belongs to
- read_
only_ strregion_ id - A read-only region of the database branch. If present, the password results will be filtered to only those in the region
- branch String
- The name of the branch the password belongs to
- database String
- The name of the database the password belongs to
- organization String
- The name of the organization the password belongs to
- read
Only StringRegion Id - A read-only region of the database branch. If present, the password results will be filtered to only those in the region
getVitessBranchPasswords Result
The following output properties are available:
- Branch string
- The name of the branch the password belongs to
- Database string
- The name of the database the password belongs to
- Datas
List<Get
Vitess Branch Passwords Data> - Id string
- The provider-assigned unique ID for this managed resource.
- Organization string
- The name of the organization the password belongs to
- Read
Only stringRegion Id - A read-only region of the database branch. If present, the password results will be filtered to only those in the region
- Branch string
- The name of the branch the password belongs to
- Database string
- The name of the database the password belongs to
- Datas
[]Get
Vitess Branch Passwords Data - Id string
- The provider-assigned unique ID for this managed resource.
- Organization string
- The name of the organization the password belongs to
- Read
Only stringRegion Id - A read-only region of the database branch. If present, the password results will be filtered to only those in the region
- branch String
- The name of the branch the password belongs to
- database String
- The name of the database the password belongs to
- datas
List<Get
Vitess Branch Passwords Data> - id String
- The provider-assigned unique ID for this managed resource.
- organization String
- The name of the organization the password belongs to
- read
Only StringRegion Id - A read-only region of the database branch. If present, the password results will be filtered to only those in the region
- branch string
- The name of the branch the password belongs to
- database string
- The name of the database the password belongs to
- datas
Get
Vitess Branch Passwords Data[] - id string
- The provider-assigned unique ID for this managed resource.
- organization string
- The name of the organization the password belongs to
- read
Only stringRegion Id - A read-only region of the database branch. If present, the password results will be filtered to only those in the region
- branch str
- The name of the branch the password belongs to
- database str
- The name of the database the password belongs to
- datas
Sequence[Get
Vitess Branch Passwords Data] - id str
- The provider-assigned unique ID for this managed resource.
- organization str
- The name of the organization the password belongs to
- read_
only_ strregion_ id - A read-only region of the database branch. If present, the password results will be filtered to only those in the region
- branch String
- The name of the branch the password belongs to
- database String
- The name of the database the password 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 password belongs to
- read
Only StringRegion Id - A read-only region of the database branch. If present, the password results will be filtered to only those in the region
Supporting Types
GetVitessBranchPasswordsData
- Access
Host stringRegional Url - The regional host URL
- Access
Host List<string>Regional Urls - The read-only replica host URLs
- Access
Host stringUrl - The host URL for the password
- Actor
Get
Vitess Branch Passwords Data Actor - Cidrs List<string>
- List of IP addresses or CIDR ranges that can use this password
- Created
At string - When the password was created
- Database
Branch GetVitess Branch Passwords Data Database Branch - Deleted
At string - When the password was deleted
- Direct
Vtgate bool - True if the credentials connect directly to a vtgate, bypassing load balancers
- Direct
Vtgate List<string>Addresses - The list of hosts in each availability zone providing direct access to a vtgate
- Expired bool
- True if the credentials are expired
- Expires
At string - When the password will expire
- Id string
- The ID for the password
- Last
Used stringAt - When the password was last used to execute a query
- Name string
- The display name for the password
- Plain
Text string - The plain text password, available only after create
- Region
Get
Vitess Branch Passwords Data Region - Renewable bool
- Whether or not the password can be renewed
- Replica bool
- Whether or not the password is for a read replica
- Role string
- The role for the password
- Ttl
Seconds double - Time to live (in seconds) for the password. The password will be invalid when TTL has passed
- Username string
- The username for the password
- Access
Host stringRegional Url - The regional host URL
- Access
Host []stringRegional Urls - The read-only replica host URLs
- Access
Host stringUrl - The host URL for the password
- Actor
Get
Vitess Branch Passwords Data Actor - Cidrs []string
- List of IP addresses or CIDR ranges that can use this password
- Created
At string - When the password was created
- Database
Branch GetVitess Branch Passwords Data Database Branch - Deleted
At string - When the password was deleted
- Direct
Vtgate bool - True if the credentials connect directly to a vtgate, bypassing load balancers
- Direct
Vtgate []stringAddresses - The list of hosts in each availability zone providing direct access to a vtgate
- Expired bool
- True if the credentials are expired
- Expires
At string - When the password will expire
- Id string
- The ID for the password
- Last
Used stringAt - When the password was last used to execute a query
- Name string
- The display name for the password
- Plain
Text string - The plain text password, available only after create
- Region
Get
Vitess Branch Passwords Data Region - Renewable bool
- Whether or not the password can be renewed
- Replica bool
- Whether or not the password is for a read replica
- Role string
- The role for the password
- Ttl
Seconds float64 - Time to live (in seconds) for the password. The password will be invalid when TTL has passed
- Username string
- The username for the password
- access
Host StringRegional Url - The regional host URL
- access
Host List<String>Regional Urls - The read-only replica host URLs
- access
Host StringUrl - The host URL for the password
- actor
Get
Vitess Branch Passwords Data Actor - cidrs List<String>
- List of IP addresses or CIDR ranges that can use this password
- created
At String - When the password was created
- database
Branch GetVitess Branch Passwords Data Database Branch - deleted
At String - When the password was deleted
- direct
Vtgate Boolean - True if the credentials connect directly to a vtgate, bypassing load balancers
- direct
Vtgate List<String>Addresses - The list of hosts in each availability zone providing direct access to a vtgate
- expired Boolean
- True if the credentials are expired
- expires
At String - When the password will expire
- id String
- The ID for the password
- last
Used StringAt - When the password was last used to execute a query
- name String
- The display name for the password
- plain
Text String - The plain text password, available only after create
- region
Get
Vitess Branch Passwords Data Region - renewable Boolean
- Whether or not the password can be renewed
- replica Boolean
- Whether or not the password is for a read replica
- role String
- The role for the password
- ttl
Seconds Double - Time to live (in seconds) for the password. The password will be invalid when TTL has passed
- username String
- The username for the password
- access
Host stringRegional Url - The regional host URL
- access
Host string[]Regional Urls - The read-only replica host URLs
- access
Host stringUrl - The host URL for the password
- actor
Get
Vitess Branch Passwords Data Actor - cidrs string[]
- List of IP addresses or CIDR ranges that can use this password
- created
At string - When the password was created
- database
Branch GetVitess Branch Passwords Data Database Branch - deleted
At string - When the password was deleted
- direct
Vtgate boolean - True if the credentials connect directly to a vtgate, bypassing load balancers
- direct
Vtgate string[]Addresses - The list of hosts in each availability zone providing direct access to a vtgate
- expired boolean
- True if the credentials are expired
- expires
At string - When the password will expire
- id string
- The ID for the password
- last
Used stringAt - When the password was last used to execute a query
- name string
- The display name for the password
- plain
Text string - The plain text password, available only after create
- region
Get
Vitess Branch Passwords Data Region - renewable boolean
- Whether or not the password can be renewed
- replica boolean
- Whether or not the password is for a read replica
- role string
- The role for the password
- ttl
Seconds number - Time to live (in seconds) for the password. The password will be invalid when TTL has passed
- username string
- The username for the password
- access_
host_ strregional_ url - The regional host URL
- access_
host_ Sequence[str]regional_ urls - The read-only replica host URLs
- access_
host_ strurl - The host URL for the password
- actor
Get
Vitess Branch Passwords Data Actor - cidrs Sequence[str]
- List of IP addresses or CIDR ranges that can use this password
- created_
at str - When the password was created
- database_
branch GetVitess Branch Passwords Data Database Branch - deleted_
at str - When the password was deleted
- direct_
vtgate bool - True if the credentials connect directly to a vtgate, bypassing load balancers
- direct_
vtgate_ Sequence[str]addresses - The list of hosts in each availability zone providing direct access to a vtgate
- expired bool
- True if the credentials are expired
- expires_
at str - When the password will expire
- id str
- The ID for the password
- last_
used_ strat - When the password was last used to execute a query
- name str
- The display name for the password
- plain_
text str - The plain text password, available only after create
- region
Get
Vitess Branch Passwords Data Region - renewable bool
- Whether or not the password can be renewed
- replica bool
- Whether or not the password is for a read replica
- role str
- The role for the password
- ttl_
seconds float - Time to live (in seconds) for the password. The password will be invalid when TTL has passed
- username str
- The username for the password
- access
Host StringRegional Url - The regional host URL
- access
Host List<String>Regional Urls - The read-only replica host URLs
- access
Host StringUrl - The host URL for the password
- actor Property Map
- cidrs List<String>
- List of IP addresses or CIDR ranges that can use this password
- created
At String - When the password was created
- database
Branch Property Map - deleted
At String - When the password was deleted
- direct
Vtgate Boolean - True if the credentials connect directly to a vtgate, bypassing load balancers
- direct
Vtgate List<String>Addresses - The list of hosts in each availability zone providing direct access to a vtgate
- expired Boolean
- True if the credentials are expired
- expires
At String - When the password will expire
- id String
- The ID for the password
- last
Used StringAt - When the password was last used to execute a query
- name String
- The display name for the password
- plain
Text String - The plain text password, available only after create
- region Property Map
- renewable Boolean
- Whether or not the password can be renewed
- replica Boolean
- Whether or not the password is for a read replica
- role String
- The role for the password
- ttl
Seconds Number - Time to live (in seconds) for the password. The password will be invalid when TTL has passed
- username String
- The username for the password
GetVitessBranchPasswordsDataActor
- Avatar
Url string - The URL of the actor's avatar
- Display
Name string - The name of the actor
- Id string
- The ID of the actor
- Avatar
Url string - The URL of the actor's avatar
- Display
Name string - The name of the actor
- Id string
- The ID of the actor
- avatar
Url String - The URL of the actor's avatar
- display
Name String - The name of the actor
- id String
- The ID of the actor
- avatar
Url string - The URL of the actor's avatar
- display
Name string - The name of the actor
- id string
- The ID of the actor
- avatar_
url str - The URL of the actor's avatar
- display_
name str - The name of the actor
- id str
- The ID of the actor
- avatar
Url String - The URL of the actor's avatar
- display
Name String - The name of the actor
- id String
- The ID of the actor
GetVitessBranchPasswordsDataDatabaseBranch
- Id string
- The ID for the branch
- Mysql
Edge stringAddress - The address of the MySQL provider for the branch
- Name string
- The name for the branch
- Private
Edge boolConnectivity - True if private connectivity is enabled
- Production bool
- Whether or not the branch is a production branch
- Id string
- The ID for the branch
- Mysql
Edge stringAddress - The address of the MySQL provider for the branch
- Name string
- The name for the branch
- Private
Edge boolConnectivity - True if private connectivity is enabled
- Production bool
- Whether or not the branch is a production branch
- id String
- The ID for the branch
- mysql
Edge StringAddress - The address of the MySQL provider for the branch
- name String
- The name for the branch
- private
Edge BooleanConnectivity - True if private connectivity is enabled
- production Boolean
- Whether or not the branch is a production branch
- id string
- The ID for the branch
- mysql
Edge stringAddress - The address of the MySQL provider for the branch
- name string
- The name for the branch
- private
Edge booleanConnectivity - True if private connectivity is enabled
- production boolean
- Whether or not the branch is a production branch
- id str
- The ID for the branch
- mysql_
edge_ straddress - The address of the MySQL provider for the branch
- name str
- The name for the branch
- private_
edge_ boolconnectivity - True if private connectivity is enabled
- production bool
- Whether or not the branch is a production branch
- id String
- The ID for the branch
- mysql
Edge StringAddress - The address of the MySQL provider for the branch
- name String
- The name for the branch
- private
Edge BooleanConnectivity - True if private connectivity is enabled
- production Boolean
- Whether or not the branch is a production branch
GetVitessBranchPasswordsDataRegion
- Current
Default bool - True if the region is the default for new branch creation
- Display
Name string - Name of the region
- Enabled bool
- Whether or not the region is currently active
- Id string
- The ID of the region
- Location string
- Location of the region
- Provider string
- Provider for the region (ex. AWS)
- Public
Ip List<string>Addresses - Public IP addresses for the region
- Slug string
- The slug of the region
- Current
Default bool - True if the region is the default for new branch creation
- Display
Name string - Name of the region
- Enabled bool
- Whether or not the region is currently active
- Id string
- The ID of the region
- Location string
- Location of the region
- Provider string
- Provider for the region (ex. AWS)
- Public
Ip []stringAddresses - Public IP addresses for the region
- Slug string
- The slug of the region
- current
Default Boolean - True if the region is the default for new branch creation
- display
Name String - Name of the region
- enabled Boolean
- Whether or not the region is currently active
- id String
- The ID of the region
- location String
- Location of the region
- provider String
- Provider for the region (ex. AWS)
- public
Ip List<String>Addresses - Public IP addresses for the region
- slug String
- The slug of the region
- current
Default boolean - True if the region is the default for new branch creation
- display
Name string - Name of the region
- enabled boolean
- Whether or not the region is currently active
- id string
- The ID of the region
- location string
- Location of the region
- provider string
- Provider for the region (ex. AWS)
- public
Ip string[]Addresses - Public IP addresses for the region
- slug string
- The slug of the region
- current_
default bool - True if the region is the default for new branch creation
- display_
name str - Name of the region
- enabled bool
- Whether or not the region is currently active
- id str
- The ID of the region
- location str
- Location of the region
- provider str
- Provider for the region (ex. AWS)
- public_
ip_ Sequence[str]addresses - Public IP addresses for the region
- slug str
- The slug of the region
- current
Default Boolean - True if the region is the default for new branch creation
- display
Name String - Name of the region
- enabled Boolean
- Whether or not the region is currently active
- id String
- The ID of the region
- location String
- Location of the region
- provider String
- Provider for the region (ex. AWS)
- public
Ip List<String>Addresses - Public IP addresses for the region
- slug String
- The slug of the region
Package Details
- Repository
- planetscale planetscale/terraform-provider-planetscale
- License
- Notes
- This Pulumi package is based on the
planetscaleTerraform Provider.
Viewing docs for planetscale 1.0.0
published on Monday, Mar 2, 2026 by planetscale
published on Monday, Mar 2, 2026 by planetscale
