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
NekiRouters DataSource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as planetscale from "@pulumi/planetscale";
const myNekirouters = planetscale.getNekiRouters({
branch: "...my_branch...",
database: "...my_database...",
organization: "...my_organization...",
});
import pulumi
import pulumi_planetscale as planetscale
my_nekirouters = planetscale.get_neki_routers(branch="...my_branch...",
database="...my_database...",
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.GetNekiRouters(ctx, &planetscale.GetNekiRoutersArgs{
Branch: "...my_branch...",
Database: "...my_database...",
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 myNekirouters = Planetscale.GetNekiRouters.Invoke(new()
{
Branch = "...my_branch...",
Database = "...my_database...",
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.GetNekiRoutersArgs;
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 myNekirouters = PlanetscaleFunctions.getNekiRouters(GetNekiRoutersArgs.builder()
.branch("...my_branch...")
.database("...my_database...")
.organization("...my_organization...")
.build());
}
}
variables:
myNekirouters:
fn::invoke:
function: planetscale:getNekiRouters
arguments:
branch: '...my_branch...'
database: '...my_database...'
organization: '...my_organization...'
Example coming soon!
Using getNekiRouters
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 getNekiRouters(args: GetNekiRoutersArgs, opts?: InvokeOptions): Promise<GetNekiRoutersResult>
function getNekiRoutersOutput(args: GetNekiRoutersOutputArgs, opts?: InvokeOutputOptions): Output<GetNekiRoutersResult>def get_neki_routers(branch: Optional[str] = None,
database: Optional[str] = None,
organization: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNekiRoutersResult
def get_neki_routers_output(branch: pulumi.Input[Optional[str]] = None,
database: pulumi.Input[Optional[str]] = None,
organization: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetNekiRoutersResult]func GetNekiRouters(ctx *Context, args *GetNekiRoutersArgs, opts ...InvokeOption) (*GetNekiRoutersResult, error)
func GetNekiRoutersOutput(ctx *Context, args *GetNekiRoutersOutputArgs, opts ...InvokeOption) GetNekiRoutersResultOutput> Note: This function is named GetNekiRouters in the Go SDK.
public static class GetNekiRouters
{
public static Task<GetNekiRoutersResult> InvokeAsync(GetNekiRoutersArgs args, InvokeOptions? opts = null)
public static Output<GetNekiRoutersResult> Invoke(GetNekiRoutersInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetNekiRoutersResult> Invoke(GetNekiRoutersInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetNekiRoutersResult> getNekiRouters(GetNekiRoutersArgs args, InvokeOptions options)
public static Output<GetNekiRoutersResult> getNekiRouters(GetNekiRoutersArgs args, InvokeOptions options)
public static Output<GetNekiRoutersResult> getNekiRouters(GetNekiRoutersArgs args, InvokeOutputOptions options)
fn::invoke:
function: planetscale:index/getNekiRouters:getNekiRouters
arguments:
# arguments dictionarydata "planetscale_get_neki_routers" "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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
getNekiRouters 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 Routers Data> - Returns routers for the branch
- Id string
- The provider-assigned unique ID for this managed resource.
- 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. - Datas
[]Get
Neki Routers Data - Returns routers for the branch
- Id string
- The provider-assigned unique ID for this managed resource.
- 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. - datas list(object)
- Returns routers for the branch
- id string
- The provider-assigned unique ID for this managed resource.
- 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. - datas
List<Get
Neki Routers Data> - Returns routers for the branch
- id String
- The provider-assigned unique ID for this managed resource.
- 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. - datas
Get
Neki Routers Data[] - Returns routers for the branch
- id string
- The provider-assigned unique ID for this managed resource.
- 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. - datas
Sequence[Get
Neki Routers Data] - Returns routers for the branch
- id str
- The provider-assigned unique ID for this managed resource.
- 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. - datas List<Property Map>
- Returns routers for the branch
- id String
- The provider-assigned unique ID for this managed resource.
- organization String
- Organization name slug from
list_organizations. Example:acme.
Supporting Types
GetNekiRoutersData
- Autoscaling bool
- Whether the router scales horizontally within each cell
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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