1. Registry
  2. Packages
  3. Planetscale Provider
  4. API Docs
  5. getNekiRoles
Viewing docs for planetscale 1.11.0
published on Friday, Sep 18, 2026 by planetscale
Viewing docs for planetscale 1.11.0
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 dictionary
    data "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<GetNekiRolesData>
    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 []GetNekiRolesData
    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<GetNekiRolesData>
    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 GetNekiRolesData[]
    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[GetNekiRolesData]
    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

    AccessHostUrl string
    The database connection string
    ExpiresAt string
    When the role expires
    Id string
    The ID of the role
    InheritedRoles List<string>
    Database roles these credentials inherit
    Name string
    The name of the role
    PrivateAccessHostUrl string
    The database connection string for private connections
    PrivateConnectionServiceName string
    The service name to set up private connectivity
    Ttl double
    Number of seconds before the credentials expire
    Username string
    The database user name
    WithReplication bool
    Whether the role has the REPLICATION attribute
    AccessHostUrl string
    The database connection string
    ExpiresAt string
    When the role expires
    Id string
    The ID of the role
    InheritedRoles []string
    Database roles these credentials inherit
    Name string
    The name of the role
    PrivateAccessHostUrl string
    The database connection string for private connections
    PrivateConnectionServiceName string
    The service name to set up private connectivity
    Ttl float64
    Number of seconds before the credentials expire
    Username string
    The database user name
    WithReplication bool
    Whether the role has the REPLICATION attribute
    access_host_url string
    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_host_url string
    The database connection string for private connections
    private_connection_service_name string
    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
    accessHostUrl String
    The database connection string
    expiresAt String
    When the role expires
    id String
    The ID of the role
    inheritedRoles List<String>
    Database roles these credentials inherit
    name String
    The name of the role
    privateAccessHostUrl String
    The database connection string for private connections
    privateConnectionServiceName String
    The service name to set up private connectivity
    ttl Double
    Number of seconds before the credentials expire
    username String
    The database user name
    withReplication Boolean
    Whether the role has the REPLICATION attribute
    accessHostUrl string
    The database connection string
    expiresAt string
    When the role expires
    id string
    The ID of the role
    inheritedRoles string[]
    Database roles these credentials inherit
    name string
    The name of the role
    privateAccessHostUrl string
    The database connection string for private connections
    privateConnectionServiceName string
    The service name to set up private connectivity
    ttl number
    Number of seconds before the credentials expire
    username string
    The database user name
    withReplication boolean
    Whether the role has the REPLICATION attribute
    access_host_url str
    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_host_url str
    The database connection string for private connections
    private_connection_service_name str
    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
    accessHostUrl String
    The database connection string
    expiresAt String
    When the role expires
    id String
    The ID of the role
    inheritedRoles List<String>
    Database roles these credentials inherit
    name String
    The name of the role
    privateAccessHostUrl String
    The database connection string for private connections
    privateConnectionServiceName String
    The service name to set up private connectivity
    ttl Number
    Number of seconds before the credentials expire
    username String
    The database user name
    withReplication 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 planetscale Terraform Provider.
    Viewing docs for planetscale 1.11.0
    published on Friday, Sep 18, 2026 by planetscale

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial