planetscale 0.5.0 published on Saturday, Apr 5, 2025 by planetscale
planetscale.getPassword
Explore with Pulumi AI
planetscale 0.5.0 published on Saturday, Apr 5, 2025 by planetscale
A PlanetScale database password.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
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.GetPasswordArgs;
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 example = PlanetscaleFunctions.getPassword(GetPasswordArgs.builder()
.organization("example")
.database("example_db")
.branch("main")
.name("antoine-was-here")
.build());
ctx.export("password", example.applyValue(getPasswordResult -> getPasswordResult));
}
}
variables:
example:
fn::invoke:
function: planetscale:getPassword
arguments:
organization: example
database: example_db
branch: main
name: antoine-was-here
outputs:
password: ${example}
Using getPassword
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 getPassword(args: GetPasswordArgs, opts?: InvokeOptions): Promise<GetPasswordResult>
function getPasswordOutput(args: GetPasswordOutputArgs, opts?: InvokeOptions): Output<GetPasswordResult>
def get_password(branch: Optional[str] = None,
database: Optional[str] = None,
id: Optional[str] = None,
organization: Optional[str] = None,
read_only_region_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPasswordResult
def get_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,
read_only_region_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPasswordResult]
func LookupPassword(ctx *Context, args *LookupPasswordArgs, opts ...InvokeOption) (*LookupPasswordResult, error)
func LookupPasswordOutput(ctx *Context, args *LookupPasswordOutputArgs, opts ...InvokeOption) LookupPasswordResultOutput
> Note: This function is named LookupPassword
in the Go SDK.
public static class GetPassword
{
public static Task<GetPasswordResult> InvokeAsync(GetPasswordArgs args, InvokeOptions? opts = null)
public static Output<GetPasswordResult> Invoke(GetPasswordInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPasswordResult> getPassword(GetPasswordArgs args, InvokeOptions options)
public static Output<GetPasswordResult> getPassword(GetPasswordArgs args, InvokeOptions options)
fn::invoke:
function: planetscale:index/getPassword:getPassword
arguments:
# arguments dictionary
The following arguments are supported:
- Branch
This property is required. string - The branch this password belongs to..
- Database
This property is required. string - The database this branch password belongs to.
- Id
This property is required. string - The ID for the password.
- Organization
This property is required. string - The organization this database branch password belongs to.
- Read
Only stringRegion Id - If the password is for a read-only region, the ID of the region.
- Branch
This property is required. string - The branch this password belongs to..
- Database
This property is required. string - The database this branch password belongs to.
- Id
This property is required. string - The ID for the password.
- Organization
This property is required. string - The organization this database branch password belongs to.
- Read
Only stringRegion Id - If the password is for a read-only region, the ID of the region.
- branch
This property is required. String - The branch this password belongs to..
- database
This property is required. String - The database this branch password belongs to.
- id
This property is required. String - The ID for the password.
- organization
This property is required. String - The organization this database branch password belongs to.
- read
Only StringRegion Id - If the password is for a read-only region, the ID of the region.
- branch
This property is required. string - The branch this password belongs to..
- database
This property is required. string - The database this branch password belongs to.
- id
This property is required. string - The ID for the password.
- organization
This property is required. string - The organization this database branch password belongs to.
- read
Only stringRegion Id - If the password is for a read-only region, the ID of the region.
- branch
This property is required. str - The branch this password belongs to..
- database
This property is required. str - The database this branch password belongs to.
- id
This property is required. str - The ID for the password.
- organization
This property is required. str - The organization this database branch password belongs to.
- read_
only_ strregion_ id - If the password is for a read-only region, the ID of the region.
- branch
This property is required. String - The branch this password belongs to..
- database
This property is required. String - The database this branch password belongs to.
- id
This property is required. String - The ID for the password.
- organization
This property is required. String - The organization this database branch password belongs to.
- read
Only StringRegion Id - If the password is for a read-only region, the ID of the region.
getPassword Result
The following output properties are available:
- Access
Host stringUrl - The host URL for the password.
- Actor
Get
Password Actor - The actor that created this branch.
- Branch string
- The branch this password belongs to..
- Created
At string - When the password was created.
- Database string
- The database this branch password belongs to.
- Database
Branch GetPassword Database Branch - The branch this password is allowed to access.
- Deleted
At string - When the password was deleted.
- Expires
At string - When the password will expire.
- Id string
- The ID for the password.
- Name string
- The display name for the password.
- Organization string
- The organization this database branch password belongs to.
- Region
Get
Password Region - The region in which this password can be used.
- Renewable bool
- Whether or not the password can be renewed.
- Role string
- The role for the password.
- Ttl
Seconds double - Time to live (in seconds) for the password. The password will be invalid and unrenewable when TTL has passed.
- Username string
- The username for the password.
- Read
Only stringRegion Id - If the password is for a read-only region, the ID of the region.
- Access
Host stringUrl - The host URL for the password.
- Actor
Get
Password Actor - The actor that created this branch.
- Branch string
- The branch this password belongs to..
- Created
At string - When the password was created.
- Database string
- The database this branch password belongs to.
- Database
Branch GetPassword Database Branch - The branch this password is allowed to access.
- Deleted
At string - When the password was deleted.
- Expires
At string - When the password will expire.
- Id string
- The ID for the password.
- Name string
- The display name for the password.
- Organization string
- The organization this database branch password belongs to.
- Region
Get
Password Region - The region in which this password can be used.
- Renewable bool
- Whether or not the password can be renewed.
- Role string
- The role for the password.
- Ttl
Seconds float64 - Time to live (in seconds) for the password. The password will be invalid and unrenewable when TTL has passed.
- Username string
- The username for the password.
- Read
Only stringRegion Id - If the password is for a read-only region, the ID of the region.
- access
Host StringUrl - The host URL for the password.
- actor
Get
Password Actor - The actor that created this branch.
- branch String
- The branch this password belongs to..
- created
At String - When the password was created.
- database String
- The database this branch password belongs to.
- database
Branch GetPassword Database Branch - The branch this password is allowed to access.
- deleted
At String - When the password was deleted.
- expires
At String - When the password will expire.
- id String
- The ID for the password.
- name String
- The display name for the password.
- organization String
- The organization this database branch password belongs to.
- region
Get
Password Region - The region in which this password can be used.
- renewable Boolean
- Whether or not the password can be renewed.
- role String
- The role for the password.
- ttl
Seconds Double - Time to live (in seconds) for the password. The password will be invalid and unrenewable when TTL has passed.
- username String
- The username for the password.
- read
Only StringRegion Id - If the password is for a read-only region, the ID of the region.
- access
Host stringUrl - The host URL for the password.
- actor
Get
Password Actor - The actor that created this branch.
- branch string
- The branch this password belongs to..
- created
At string - When the password was created.
- database string
- The database this branch password belongs to.
- database
Branch GetPassword Database Branch - The branch this password is allowed to access.
- deleted
At string - When the password was deleted.
- expires
At string - When the password will expire.
- id string
- The ID for the password.
- name string
- The display name for the password.
- organization string
- The organization this database branch password belongs to.
- region
Get
Password Region - The region in which this password can be used.
- renewable boolean
- Whether or not the password can be renewed.
- role string
- The role for the password.
- ttl
Seconds number - Time to live (in seconds) for the password. The password will be invalid and unrenewable when TTL has passed.
- username string
- The username for the password.
- read
Only stringRegion Id - If the password is for a read-only region, the ID of the region.
- access_
host_ strurl - The host URL for the password.
- actor
Get
Password Actor - The actor that created this branch.
- branch str
- The branch this password belongs to..
- created_
at str - When the password was created.
- database str
- The database this branch password belongs to.
- database_
branch GetPassword Database Branch - The branch this password is allowed to access.
- deleted_
at str - When the password was deleted.
- expires_
at str - When the password will expire.
- id str
- The ID for the password.
- name str
- The display name for the password.
- organization str
- The organization this database branch password belongs to.
- region
Get
Password Region - The region in which this password can be used.
- renewable bool
- Whether or not the password can be renewed.
- role str
- The role for the password.
- ttl_
seconds float - Time to live (in seconds) for the password. The password will be invalid and unrenewable when TTL has passed.
- username str
- The username for the password.
- read_
only_ strregion_ id - If the password is for a read-only region, the ID of the region.
- access
Host StringUrl - The host URL for the password.
- actor Property Map
- The actor that created this branch.
- branch String
- The branch this password belongs to..
- created
At String - When the password was created.
- database String
- The database this branch password belongs to.
- database
Branch Property Map - The branch this password is allowed to access.
- deleted
At String - When the password was deleted.
- expires
At String - When the password will expire.
- id String
- The ID for the password.
- name String
- The display name for the password.
- organization String
- The organization this database branch password belongs to.
- region Property Map
- The region in which this password can be used.
- renewable Boolean
- Whether or not the password can be renewed.
- role String
- The role for the password.
- ttl
Seconds Number - Time to live (in seconds) for the password. The password will be invalid and unrenewable when TTL has passed.
- username String
- The username for the password.
- read
Only StringRegion Id - If the password is for a read-only region, the ID of the region.
Supporting Types
GetPasswordActor
- Avatar
Url This property is required. string - The URL of the actor's avatar
- Display
Name This property is required. string - The name of the actor
- Id
This property is required. string - The ID of the actor
- Avatar
Url This property is required. string - The URL of the actor's avatar
- Display
Name This property is required. string - The name of the actor
- Id
This property is required. string - The ID of the actor
- avatar
Url This property is required. String - The URL of the actor's avatar
- display
Name This property is required. String - The name of the actor
- id
This property is required. String - The ID of the actor
- avatar
Url This property is required. string - The URL of the actor's avatar
- display
Name This property is required. string - The name of the actor
- id
This property is required. string - The ID of the actor
- avatar_
url This property is required. str - The URL of the actor's avatar
- display_
name This property is required. str - The name of the actor
- id
This property is required. str - The ID of the actor
- avatar
Url This property is required. String - The URL of the actor's avatar
- display
Name This property is required. String - The name of the actor
- id
This property is required. String - The ID of the actor
GetPasswordDatabaseBranch
- Access
Host Url This property is required. string - Id
This property is required. string - Mysql
Edge Address This property is required. string - Name
This property is required. string - Production
This property is required. bool
- Access
Host Url This property is required. string - Id
This property is required. string - Mysql
Edge Address This property is required. string - Name
This property is required. string - Production
This property is required. bool
- access
Host Url This property is required. String - id
This property is required. String - mysql
Edge Address This property is required. String - name
This property is required. String - production
This property is required. Boolean
- access
Host Url This property is required. string - id
This property is required. string - mysql
Edge Address This property is required. string - name
This property is required. string - production
This property is required. boolean
- access_
host_ url This property is required. str - id
This property is required. str - mysql_
edge_ address This property is required. str - name
This property is required. str - production
This property is required. bool
- access
Host Url This property is required. String - id
This property is required. String - mysql
Edge Address This property is required. String - name
This property is required. String - production
This property is required. Boolean
GetPasswordRegion
- Display
Name This property is required. string - Name of the region.
- Enabled
This property is required. bool - Whether or not the region is currently active.
- Id
This property is required. string - The ID of the region.
- Location
This property is required. string - Location of the region.
- Provider
This property is required. string - Provider for the region (ex. AWS).
- Public
Ip Addresses This property is required. List<string> - Public IP addresses for the region.
- Slug
This property is required. string - The slug of the region.
- Display
Name This property is required. string - Name of the region.
- Enabled
This property is required. bool - Whether or not the region is currently active.
- Id
This property is required. string - The ID of the region.
- Location
This property is required. string - Location of the region.
- Provider
This property is required. string - Provider for the region (ex. AWS).
- Public
Ip Addresses This property is required. []string - Public IP addresses for the region.
- Slug
This property is required. string - The slug of the region.
- display
Name This property is required. String - Name of the region.
- enabled
This property is required. Boolean - Whether or not the region is currently active.
- id
This property is required. String - The ID of the region.
- location
This property is required. String - Location of the region.
- provider
This property is required. String - Provider for the region (ex. AWS).
- public
Ip Addresses This property is required. List<String> - Public IP addresses for the region.
- slug
This property is required. String - The slug of the region.
- display
Name This property is required. string - Name of the region.
- enabled
This property is required. boolean - Whether or not the region is currently active.
- id
This property is required. string - The ID of the region.
- location
This property is required. string - Location of the region.
- provider
This property is required. string - Provider for the region (ex. AWS).
- public
Ip Addresses This property is required. string[] - Public IP addresses for the region.
- slug
This property is required. string - The slug of the region.
- display_
name This property is required. str - Name of the region.
- enabled
This property is required. bool - Whether or not the region is currently active.
- id
This property is required. str - The ID of the region.
- location
This property is required. str - Location of the region.
- provider
This property is required. str - Provider for the region (ex. AWS).
- public_
ip_ addresses This property is required. Sequence[str] - Public IP addresses for the region.
- slug
This property is required. str - The slug of the region.
- display
Name This property is required. String - Name of the region.
- enabled
This property is required. Boolean - Whether or not the region is currently active.
- id
This property is required. String - The ID of the region.
- location
This property is required. String - Location of the region.
- provider
This property is required. String - Provider for the region (ex. AWS).
- public
Ip Addresses This property is required. List<String> - Public IP addresses for the region.
- slug
This property is required. String - The slug of the region.
Package Details
- Repository
- planetscale planetscale/terraform-provider-planetscale
- License
- Notes
- This Pulumi package is based on the
planetscale
Terraform Provider.
planetscale 0.5.0 published on Saturday, Apr 5, 2025 by planetscale