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
VitessBranchPassword DataSource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as planetscale from "@pulumi/planetscale";
const myVitessbranchpassword = planetscale.getVitessBranchPassword({
branch: "...my_branch...",
database: "...my_database...",
id: "...my_id...",
organization: "...my_organization...",
});
import pulumi
import pulumi_planetscale as planetscale
my_vitessbranchpassword = planetscale.get_vitess_branch_password(branch="...my_branch...",
database="...my_database...",
id="...my_id...",
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.LookupVitessBranchPassword(ctx, &planetscale.LookupVitessBranchPasswordArgs{
Branch: "...my_branch...",
Database: "...my_database...",
Id: "...my_id...",
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 myVitessbranchpassword = Planetscale.GetVitessBranchPassword.Invoke(new()
{
Branch = "...my_branch...",
Database = "...my_database...",
Id = "...my_id...",
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.GetVitessBranchPasswordArgs;
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 myVitessbranchpassword = PlanetscaleFunctions.getVitessBranchPassword(GetVitessBranchPasswordArgs.builder()
.branch("...my_branch...")
.database("...my_database...")
.id("...my_id...")
.organization("...my_organization...")
.build());
}
}
variables:
myVitessbranchpassword:
fn::invoke:
function: planetscale:getVitessBranchPassword
arguments:
branch: '...my_branch...'
database: '...my_database...'
id: '...my_id...'
organization: '...my_organization...'
Using getVitessBranchPassword
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 getVitessBranchPassword(args: GetVitessBranchPasswordArgs, opts?: InvokeOptions): Promise<GetVitessBranchPasswordResult>
function getVitessBranchPasswordOutput(args: GetVitessBranchPasswordOutputArgs, opts?: InvokeOptions): Output<GetVitessBranchPasswordResult>def get_vitess_branch_password(branch: Optional[str] = None,
database: Optional[str] = None,
id: Optional[str] = None,
organization: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVitessBranchPasswordResult
def get_vitess_branch_password_output(branch: Optional[pulumi.Input[str]] = None,
database: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
organization: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVitessBranchPasswordResult]func LookupVitessBranchPassword(ctx *Context, args *LookupVitessBranchPasswordArgs, opts ...InvokeOption) (*LookupVitessBranchPasswordResult, error)
func LookupVitessBranchPasswordOutput(ctx *Context, args *LookupVitessBranchPasswordOutputArgs, opts ...InvokeOption) LookupVitessBranchPasswordResultOutput> Note: This function is named LookupVitessBranchPassword in the Go SDK.
public static class GetVitessBranchPassword
{
public static Task<GetVitessBranchPasswordResult> InvokeAsync(GetVitessBranchPasswordArgs args, InvokeOptions? opts = null)
public static Output<GetVitessBranchPasswordResult> Invoke(GetVitessBranchPasswordInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVitessBranchPasswordResult> getVitessBranchPassword(GetVitessBranchPasswordArgs args, InvokeOptions options)
public static Output<GetVitessBranchPasswordResult> getVitessBranchPassword(GetVitessBranchPasswordArgs args, InvokeOptions options)
fn::invoke:
function: planetscale:index/getVitessBranchPassword:getVitessBranchPassword
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
- Id string
- The ID for the password
- Organization string
- The name of the organization the password belongs to
- Branch string
- The name of the branch the password belongs to
- Database string
- The name of the database the password belongs to
- Id string
- The ID for the password
- Organization string
- The name of the organization the password belongs to
- branch String
- The name of the branch the password belongs to
- database String
- The name of the database the password belongs to
- id String
- The ID for the password
- organization String
- The name of the organization the password belongs to
- branch string
- The name of the branch the password belongs to
- database string
- The name of the database the password belongs to
- id string
- The ID for the password
- organization string
- The name of the organization the password belongs to
- branch str
- The name of the branch the password belongs to
- database str
- The name of the database the password belongs to
- id str
- The ID for the password
- organization str
- The name of the organization the password belongs to
- branch String
- The name of the branch the password belongs to
- database String
- The name of the database the password belongs to
- id String
- The ID for the password
- organization String
- The name of the organization the password belongs to
getVitessBranchPassword Result
The following output properties are available:
- 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 Password Actor - Branch string
- The name of the branch the password belongs to
- Cidrs List<string>
- List of IP addresses or CIDR ranges that can use this password
- Created
At string - When the password was created
- Database string
- The name of the database the password belongs to
- Database
Branch GetVitess Branch Password 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
- Organization string
- The name of the organization the password belongs to
- Region
Get
Vitess Branch Password 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 Password Actor - Branch string
- The name of the branch the password belongs to
- Cidrs []string
- List of IP addresses or CIDR ranges that can use this password
- Created
At string - When the password was created
- Database string
- The name of the database the password belongs to
- Database
Branch GetVitess Branch Password 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
- Organization string
- The name of the organization the password belongs to
- Region
Get
Vitess Branch Password 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 Password Actor - branch String
- The name of the branch the password belongs to
- cidrs List<String>
- List of IP addresses or CIDR ranges that can use this password
- created
At String - When the password was created
- database String
- The name of the database the password belongs to
- database
Branch GetVitess Branch Password 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
- organization String
- The name of the organization the password belongs to
- region
Get
Vitess Branch Password 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 Password Actor - branch string
- The name of the branch the password belongs to
- cidrs string[]
- List of IP addresses or CIDR ranges that can use this password
- created
At string - When the password was created
- database string
- The name of the database the password belongs to
- database
Branch GetVitess Branch Password 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
- organization string
- The name of the organization the password belongs to
- region
Get
Vitess Branch Password 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 Password Actor - branch str
- The name of the branch the password belongs to
- cidrs Sequence[str]
- List of IP addresses or CIDR ranges that can use this password
- created_
at str - When the password was created
- database str
- The name of the database the password belongs to
- database_
branch GetVitess Branch Password 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
- organization str
- The name of the organization the password belongs to
- region
Get
Vitess Branch Password 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
- branch String
- The name of the branch the password belongs to
- cidrs List<String>
- List of IP addresses or CIDR ranges that can use this password
- created
At String - When the password was created
- database String
- The name of the database the password belongs to
- 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
- organization String
- The name of the organization the password belongs to
- 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
Supporting Types
GetVitessBranchPasswordActor
- 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
GetVitessBranchPasswordDatabaseBranch
- 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
GetVitessBranchPasswordRegion
- 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
