Viewing docs for planetscale 1.11.0
published on Friday, Sep 18, 2026 by planetscale
published on Friday, Sep 18, 2026 by planetscale
Viewing docs for planetscale 1.11.0
published on Friday, Sep 18, 2026 by planetscale
published on Friday, Sep 18, 2026 by planetscale
NekiRoles DataSource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as planetscale from "@pulumi/planetscale";
const myNekiroles = planetscale.getNekiRoles({
branch: "...my_branch...",
database: "...my_database...",
organization: "...my_organization...",
q: "...my_q...",
status: "...my_status...",
});
import pulumi
import pulumi_planetscale as planetscale
my_nekiroles = planetscale.get_neki_roles(branch="...my_branch...",
database="...my_database...",
organization="...my_organization...",
q="...my_q...",
status="...my_status...")
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.GetNekiRoles(ctx, &planetscale.GetNekiRolesArgs{
Branch: "...my_branch...",
Database: "...my_database...",
Organization: "...my_organization...",
Q: pulumi.StringRef("...my_q..."),
Status: pulumi.StringRef("...my_status..."),
}, 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 myNekiroles = Planetscale.GetNekiRoles.Invoke(new()
{
Branch = "...my_branch...",
Database = "...my_database...",
Organization = "...my_organization...",
Q = "...my_q...",
Status = "...my_status...",
});
});
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.GetNekiRolesArgs;
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 myNekiroles = PlanetscaleFunctions.getNekiRoles(GetNekiRolesArgs.builder()
.branch("...my_branch...")
.database("...my_database...")
.organization("...my_organization...")
.q("...my_q...")
.status("...my_status...")
.build());
}
}
variables:
myNekiroles:
fn::invoke:
function: planetscale:getNekiRoles
arguments:
branch: '...my_branch...'
database: '...my_database...'
organization: '...my_organization...'
q: '...my_q...'
status: '...my_status...'
Example coming soon!
Using getNekiRoles
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 getNekiRoles(args: GetNekiRolesArgs, opts?: InvokeOptions): Promise<GetNekiRolesResult>
function getNekiRolesOutput(args: GetNekiRolesOutputArgs, opts?: InvokeOutputOptions): Output<GetNekiRolesResult>def get_neki_roles(branch: Optional[str] = None,
database: Optional[str] = None,
organization: Optional[str] = None,
q: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNekiRolesResult
def get_neki_roles_output(branch: pulumi.Input[Optional[str]] = None,
database: pulumi.Input[Optional[str]] = None,
organization: pulumi.Input[Optional[str]] = None,
q: pulumi.Input[Optional[str]] = None,
status: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetNekiRolesResult]func GetNekiRoles(ctx *Context, args *GetNekiRolesArgs, opts ...InvokeOption) (*GetNekiRolesResult, error)
func GetNekiRolesOutput(ctx *Context, args *GetNekiRolesOutputArgs, opts ...InvokeOption) GetNekiRolesResultOutput> Note: This function is named GetNekiRoles in the Go SDK.
public static class GetNekiRoles
{
public static Task<GetNekiRolesResult> InvokeAsync(GetNekiRolesArgs args, InvokeOptions? opts = null)
public static Output<GetNekiRolesResult> Invoke(GetNekiRolesInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetNekiRolesResult> Invoke(GetNekiRolesInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetNekiRolesResult> getNekiRoles(GetNekiRolesArgs args, InvokeOptions options)
public static Output<GetNekiRolesResult> getNekiRoles(GetNekiRolesArgs args, InvokeOptions options)
public static Output<GetNekiRolesResult> getNekiRoles(GetNekiRolesArgs args, InvokeOutputOptions options)
fn::invoke:
function: planetscale:index/getNekiRoles:getNekiRoles
arguments:
# arguments dictionarydata "planetscale_get_neki_roles" "name" {
# arguments
}The following arguments are supported:
- Branch string
- Branch name from
list_branches. Example:main. - Database string
- Database name slug from
list_databases. Example:app-db. - Organization string
- Organization name slug from
list_organizations. Example:acme. - Q string
- Search roles by name or username
- Status string
- Filter roles by status
- Branch string
- Branch name from
list_branches. Example:main. - Database string
- Database name slug from
list_databases. Example:app-db. - Organization string
- Organization name slug from
list_organizations. Example:acme. - Q string
- Search roles by name or username
- Status string
- Filter roles by status
- branch string
- Branch name from
list_branches. Example:main. - database string
- Database name slug from
list_databases. Example:app-db. - organization string
- Organization name slug from
list_organizations. Example:acme. - q string
- Search roles by name or username
- status string
- Filter roles by status
- branch String
- Branch name from
list_branches. Example:main. - database String
- Database name slug from
list_databases. Example:app-db. - organization String
- Organization name slug from
list_organizations. Example:acme. - q String
- Search roles by name or username
- status String
- Filter roles by status
- branch string
- Branch name from
list_branches. Example:main. - database string
- Database name slug from
list_databases. Example:app-db. - organization string
- Organization name slug from
list_organizations. Example:acme. - q string
- Search roles by name or username
- status string
- Filter roles by status
- branch str
- Branch name from
list_branches. Example:main. - database str
- Database name slug from
list_databases. Example:app-db. - organization str
- Organization name slug from
list_organizations. Example:acme. - q str
- Search roles by name or username
- status str
- Filter roles by status
- branch String
- Branch name from
list_branches. Example:main. - database String
- Database name slug from
list_databases. Example:app-db. - organization String
- Organization name slug from
list_organizations. Example:acme. - q String
- Search roles by name or username
- status String
- Filter roles by status
getNekiRoles Result
The following output properties are available:
- Branch string
- Branch name from
list_branches. Example:main. - Database string
- Database name slug from
list_databases. Example:app-db. - Datas
List<Get
Neki Roles Data> - Id string
- The provider-assigned unique ID for this managed resource.
- Organization string
- Organization name slug from
list_organizations. Example:acme. - Type string
- The response type. Always "list" for paginated responses.
- Q string
- Search roles by name or username
- Status string
- Filter roles by status
- Branch string
- Branch name from
list_branches. Example:main. - Database string
- Database name slug from
list_databases. Example:app-db. - Datas
[]Get
Neki Roles Data - Id string
- The provider-assigned unique ID for this managed resource.
- Organization string
- Organization name slug from
list_organizations. Example:acme. - Type string
- The response type. Always "list" for paginated responses.
- Q string
- Search roles by name or username
- Status string
- Filter roles by status
- branch string
- Branch name from
list_branches. Example:main. - database string
- Database name slug from
list_databases. Example:app-db. - datas list(object)
- id string
- The provider-assigned unique ID for this managed resource.
- organization string
- Organization name slug from
list_organizations. Example:acme. - type string
- The response type. Always "list" for paginated responses.
- q string
- Search roles by name or username
- status string
- Filter roles by status
- branch String
- Branch name from
list_branches. Example:main. - database String
- Database name slug from
list_databases. Example:app-db. - datas
List<Get
Neki Roles Data> - id String
- The provider-assigned unique ID for this managed resource.
- organization String
- Organization name slug from
list_organizations. Example:acme. - type String
- The response type. Always "list" for paginated responses.
- q String
- Search roles by name or username
- status String
- Filter roles by status
- branch string
- Branch name from
list_branches. Example:main. - database string
- Database name slug from
list_databases. Example:app-db. - datas
Get
Neki Roles Data[] - id string
- The provider-assigned unique ID for this managed resource.
- organization string
- Organization name slug from
list_organizations. Example:acme. - type string
- The response type. Always "list" for paginated responses.
- q string
- Search roles by name or username
- status string
- Filter roles by status
- branch str
- Branch name from
list_branches. Example:main. - database str
- Database name slug from
list_databases. Example:app-db. - datas
Sequence[Get
Neki Roles Data] - id str
- The provider-assigned unique ID for this managed resource.
- organization str
- Organization name slug from
list_organizations. Example:acme. - type str
- The response type. Always "list" for paginated responses.
- q str
- Search roles by name or username
- status str
- Filter roles by status
- branch String
- Branch name from
list_branches. Example:main. - database String
- Database name slug from
list_databases. Example:app-db. - datas List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- organization String
- Organization name slug from
list_organizations. Example:acme. - type String
- The response type. Always "list" for paginated responses.
- q String
- Search roles by name or username
- status String
- Filter roles by status
Supporting Types
GetNekiRolesData
- Access
Host stringUrl - The database connection string
- Expires
At string - When the role expires
- Id string
- The ID of the role
- Inherited
Roles List<string> - Database roles these credentials inherit
- Name string
- The name of the role
- Private
Access stringHost Url - The database connection string for private connections
- Private
Connection stringService Name - The service name to set up private connectivity
- Ttl double
- Number of seconds before the credentials expire
- Username string
- The database user name
- With
Replication bool - Whether the role has the REPLICATION attribute
- Access
Host stringUrl - The database connection string
- Expires
At string - When the role expires
- Id string
- The ID of the role
- Inherited
Roles []string - Database roles these credentials inherit
- Name string
- The name of the role
- Private
Access stringHost Url - The database connection string for private connections
- Private
Connection stringService Name - The service name to set up private connectivity
- Ttl float64
- Number of seconds before the credentials expire
- Username string
- The database user name
- With
Replication bool - Whether the role has the REPLICATION attribute
- access_
host_ stringurl - The database connection string
- expires_
at string - When the role expires
- id string
- The ID of the role
- inherited_
roles list(string) - Database roles these credentials inherit
- name string
- The name of the role
- private_
access_ stringhost_ url - The database connection string for private connections
- private_
connection_ stringservice_ name - The service name to set up private connectivity
- ttl number
- Number of seconds before the credentials expire
- username string
- The database user name
- with_
replication bool - Whether the role has the REPLICATION attribute
- access
Host StringUrl - The database connection string
- expires
At String - When the role expires
- id String
- The ID of the role
- inherited
Roles List<String> - Database roles these credentials inherit
- name String
- The name of the role
- private
Access StringHost Url - The database connection string for private connections
- private
Connection StringService Name - The service name to set up private connectivity
- ttl Double
- Number of seconds before the credentials expire
- username String
- The database user name
- with
Replication Boolean - Whether the role has the REPLICATION attribute
- access
Host stringUrl - The database connection string
- expires
At string - When the role expires
- id string
- The ID of the role
- inherited
Roles string[] - Database roles these credentials inherit
- name string
- The name of the role
- private
Access stringHost Url - The database connection string for private connections
- private
Connection stringService Name - The service name to set up private connectivity
- ttl number
- Number of seconds before the credentials expire
- username string
- The database user name
- with
Replication boolean - Whether the role has the REPLICATION attribute
- access_
host_ strurl - The database connection string
- expires_
at str - When the role expires
- id str
- The ID of the role
- inherited_
roles Sequence[str] - Database roles these credentials inherit
- name str
- The name of the role
- private_
access_ strhost_ url - The database connection string for private connections
- private_
connection_ strservice_ name - The service name to set up private connectivity
- ttl float
- Number of seconds before the credentials expire
- username str
- The database user name
- with_
replication bool - Whether the role has the REPLICATION attribute
- access
Host StringUrl - The database connection string
- expires
At String - When the role expires
- id String
- The ID of the role
- inherited
Roles List<String> - Database roles these credentials inherit
- name String
- The name of the role
- private
Access StringHost Url - The database connection string for private connections
- private
Connection StringService Name - The service name to set up private connectivity
- ttl Number
- Number of seconds before the credentials expire
- username String
- The database user name
- with
Replication Boolean - Whether the role has the REPLICATION attribute
Package Details
- Repository
- planetscale planetscale/terraform-provider-planetscale
- License
- Notes
- This Pulumi package is based on the
planetscaleTerraform Provider.
Viewing docs for planetscale 1.11.0
published on Friday, Sep 18, 2026 by planetscale
published on Friday, Sep 18, 2026 by planetscale