1. Registry
  2. Packages
  3. Planetscale Provider
  4. API Docs
  5. getNekiRouter
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

    NekiRouter DataSource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as planetscale from "@pulumi/planetscale";
    
    const myNekirouter = planetscale.getNekiRouter({
        branch: "...my_branch...",
        database: "...my_database...",
        name: "...my_name...",
        organization: "...my_organization...",
    });
    
    import pulumi
    import pulumi_planetscale as planetscale
    
    my_nekirouter = planetscale.get_neki_router(branch="...my_branch...",
        database="...my_database...",
        name="...my_name...",
        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.LookupNekiRouter(ctx, &planetscale.LookupNekiRouterArgs{
    			Branch:       "...my_branch...",
    			Database:     "...my_database...",
    			Name:         "...my_name...",
    			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 myNekirouter = Planetscale.GetNekiRouter.Invoke(new()
        {
            Branch = "...my_branch...",
            Database = "...my_database...",
            Name = "...my_name...",
            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.GetNekiRouterArgs;
    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 myNekirouter = PlanetscaleFunctions.getNekiRouter(GetNekiRouterArgs.builder()
                .branch("...my_branch...")
                .database("...my_database...")
                .name("...my_name...")
                .organization("...my_organization...")
                .build());
    
        }
    }
    
    variables:
      myNekirouter:
        fn::invoke:
          function: planetscale:getNekiRouter
          arguments:
            branch: '...my_branch...'
            database: '...my_database...'
            name: '...my_name...'
            organization: '...my_organization...'
    
    Example coming soon!
    

    Using getNekiRouter

    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 getNekiRouter(args: GetNekiRouterArgs, opts?: InvokeOptions): Promise<GetNekiRouterResult>
    function getNekiRouterOutput(args: GetNekiRouterOutputArgs, opts?: InvokeOutputOptions): Output<GetNekiRouterResult>
    def get_neki_router(branch: Optional[str] = None,
                        database: Optional[str] = None,
                        name: Optional[str] = None,
                        organization: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetNekiRouterResult
    def get_neki_router_output(branch: pulumi.Input[Optional[str]] = None,
                        database: pulumi.Input[Optional[str]] = None,
                        name: pulumi.Input[Optional[str]] = None,
                        organization: pulumi.Input[Optional[str]] = None,
                        opts: Optional[InvokeOutputOptions] = None) -> Output[GetNekiRouterResult]
    func LookupNekiRouter(ctx *Context, args *LookupNekiRouterArgs, opts ...InvokeOption) (*LookupNekiRouterResult, error)
    func LookupNekiRouterOutput(ctx *Context, args *LookupNekiRouterOutputArgs, opts ...InvokeOption) LookupNekiRouterResultOutput

    > Note: This function is named LookupNekiRouter in the Go SDK.

    public static class GetNekiRouter 
    {
        public static Task<GetNekiRouterResult> InvokeAsync(GetNekiRouterArgs args, InvokeOptions? opts = null)
        public static Output<GetNekiRouterResult> Invoke(GetNekiRouterInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetNekiRouterResult> Invoke(GetNekiRouterInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetNekiRouterResult> getNekiRouter(GetNekiRouterArgs args, InvokeOptions options)
    public static Output<GetNekiRouterResult> getNekiRouter(GetNekiRouterArgs args, InvokeOptions options)
    public static Output<GetNekiRouterResult> getNekiRouter(GetNekiRouterArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: planetscale:index/getNekiRouter:getNekiRouter
      arguments:
        # arguments dictionary
    data "planetscale_get_neki_router" "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.
    Name string
    The name of the router
    Organization string
    Organization name slug from list_organizations. Example: acme.
    Branch string
    Branch name from list_branches. Example: main.
    Database string
    Database name slug from list_databases. Example: app-db.
    Name string
    The name of the router
    Organization string
    Organization name slug from list_organizations. Example: acme.
    branch string
    Branch name from list_branches. Example: main.
    database string
    Database name slug from list_databases. Example: app-db.
    name string
    The name of the router
    organization string
    Organization name slug from list_organizations. Example: acme.
    branch String
    Branch name from list_branches. Example: main.
    database String
    Database name slug from list_databases. Example: app-db.
    name String
    The name of the router
    organization String
    Organization name slug from list_organizations. Example: acme.
    branch string
    Branch name from list_branches. Example: main.
    database string
    Database name slug from list_databases. Example: app-db.
    name string
    The name of the router
    organization string
    Organization name slug from list_organizations. Example: acme.
    branch str
    Branch name from list_branches. Example: main.
    database str
    Database name slug from list_databases. Example: app-db.
    name str
    The name of the router
    organization str
    Organization name slug from list_organizations. Example: acme.
    branch String
    Branch name from list_branches. Example: main.
    database String
    Database name slug from list_databases. Example: app-db.
    name String
    The name of the router
    organization String
    Organization name slug from list_organizations. Example: acme.

    getNekiRouter Result

    The following output properties are available:

    Autoscaling bool
    Whether the router scales horizontally within each cell
    Branch string
    Branch name from list_branches. Example: main.
    Database string
    Database name slug from list_databases. Example: app-db.
    Default bool
    Whether this is the default router
    Id string
    The ID of the router
    MaxReplicasPerCell double
    The maximum count of replicas in each cell when autoscaling
    Name string
    The name of the router
    Organization string
    Organization name slug from list_organizations. Example: acme.
    ReplicasPerCell double
    The count of replicas in each cell
    RouterSize string
    The router size SKU name
    State string
    The current state of the router
    TargetCpuUtilization double
    The target average CPU utilization percentage when autoscaling, one of 40, 50, 60 or 70
    Autoscaling bool
    Whether the router scales horizontally within each cell
    Branch string
    Branch name from list_branches. Example: main.
    Database string
    Database name slug from list_databases. Example: app-db.
    Default bool
    Whether this is the default router
    Id string
    The ID of the router
    MaxReplicasPerCell float64
    The maximum count of replicas in each cell when autoscaling
    Name string
    The name of the router
    Organization string
    Organization name slug from list_organizations. Example: acme.
    ReplicasPerCell float64
    The count of replicas in each cell
    RouterSize string
    The router size SKU name
    State string
    The current state of the router
    TargetCpuUtilization float64
    The target average CPU utilization percentage when autoscaling, one of 40, 50, 60 or 70
    autoscaling bool
    Whether the router scales horizontally within each cell
    branch string
    Branch name from list_branches. Example: main.
    database string
    Database name slug from list_databases. Example: app-db.
    default bool
    Whether this is the default router
    id string
    The ID of the router
    max_replicas_per_cell number
    The maximum count of replicas in each cell when autoscaling
    name string
    The name of the router
    organization string
    Organization name slug from list_organizations. Example: acme.
    replicas_per_cell number
    The count of replicas in each cell
    router_size string
    The router size SKU name
    state string
    The current state of the router
    target_cpu_utilization number
    The target average CPU utilization percentage when autoscaling, one of 40, 50, 60 or 70
    autoscaling Boolean
    Whether the router scales horizontally within each cell
    branch String
    Branch name from list_branches. Example: main.
    database String
    Database name slug from list_databases. Example: app-db.
    default_ Boolean
    Whether this is the default router
    id String
    The ID of the router
    maxReplicasPerCell Double
    The maximum count of replicas in each cell when autoscaling
    name String
    The name of the router
    organization String
    Organization name slug from list_organizations. Example: acme.
    replicasPerCell Double
    The count of replicas in each cell
    routerSize String
    The router size SKU name
    state String
    The current state of the router
    targetCpuUtilization Double
    The target average CPU utilization percentage when autoscaling, one of 40, 50, 60 or 70
    autoscaling boolean
    Whether the router scales horizontally within each cell
    branch string
    Branch name from list_branches. Example: main.
    database string
    Database name slug from list_databases. Example: app-db.
    default boolean
    Whether this is the default router
    id string
    The ID of the router
    maxReplicasPerCell number
    The maximum count of replicas in each cell when autoscaling
    name string
    The name of the router
    organization string
    Organization name slug from list_organizations. Example: acme.
    replicasPerCell number
    The count of replicas in each cell
    routerSize string
    The router size SKU name
    state string
    The current state of the router
    targetCpuUtilization number
    The target average CPU utilization percentage when autoscaling, one of 40, 50, 60 or 70
    autoscaling bool
    Whether the router scales horizontally within each cell
    branch str
    Branch name from list_branches. Example: main.
    database str
    Database name slug from list_databases. Example: app-db.
    default bool
    Whether this is the default router
    id str
    The ID of the router
    max_replicas_per_cell float
    The maximum count of replicas in each cell when autoscaling
    name str
    The name of the router
    organization str
    Organization name slug from list_organizations. Example: acme.
    replicas_per_cell float
    The count of replicas in each cell
    router_size str
    The router size SKU name
    state str
    The current state of the router
    target_cpu_utilization float
    The target average CPU utilization percentage when autoscaling, one of 40, 50, 60 or 70
    autoscaling Boolean
    Whether the router scales horizontally within each cell
    branch String
    Branch name from list_branches. Example: main.
    database String
    Database name slug from list_databases. Example: app-db.
    default Boolean
    Whether this is the default router
    id String
    The ID of the router
    maxReplicasPerCell Number
    The maximum count of replicas in each cell when autoscaling
    name String
    The name of the router
    organization String
    Organization name slug from list_organizations. Example: acme.
    replicasPerCell Number
    The count of replicas in each cell
    routerSize String
    The router size SKU name
    state String
    The current state of the router
    targetCpuUtilization Number
    The target average CPU utilization percentage when autoscaling, one of 40, 50, 60 or 70

    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