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
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 dictionarydata "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
- Max
Replicas doublePer Cell - 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 doubleCell - 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 doubleUtilization - 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 float64Per Cell - 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 float64Cell - 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 float64Utilization - 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_ numberper_ cell - 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_ numbercell - 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_ numberutilization - 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
- max
Replicas DoublePer Cell - 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 DoubleCell - 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 DoubleUtilization - 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
- max
Replicas numberPer Cell - 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 numberCell - 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 numberUtilization - 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_ floatper_ cell - 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_ floatcell - 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_ floatutilization - 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
- max
Replicas NumberPer Cell - 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 NumberCell - 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 NumberUtilization - 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
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