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

    NekiAdmin Resource

    Create NekiAdmin Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NekiAdmin(name: string, args: NekiAdminArgs, opts?: CustomResourceOptions);
    @overload
    def NekiAdmin(resource_name: str,
                  args: NekiAdminArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def NekiAdmin(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  branch: Optional[str] = None,
                  database: Optional[str] = None,
                  organization: Optional[str] = None,
                  admin_size: Optional[str] = None,
                  parameters: Optional[Mapping[str, Mapping[str, str]]] = None)
    func NewNekiAdmin(ctx *Context, name string, args NekiAdminArgs, opts ...ResourceOption) (*NekiAdmin, error)
    public NekiAdmin(string name, NekiAdminArgs args, CustomResourceOptions? opts = null)
    public NekiAdmin(String name, NekiAdminArgs args)
    public NekiAdmin(String name, NekiAdminArgs args, CustomResourceOptions options)
    
    type: planetscale:NekiAdmin
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "planetscale_neki_admin" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args NekiAdminArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NekiAdminArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NekiAdminArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NekiAdminArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NekiAdminArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var nekiAdminResource = new Planetscale.NekiAdmin("nekiAdminResource", new()
    {
        Branch = "string",
        Database = "string",
        Organization = "string",
        AdminSize = "string",
        Parameters = 
        {
            { "string", new InputMap<string>
            {
                { "string", "string" },
            } },
        },
    });
    
    example, err := planetscale.NewNekiAdmin(ctx, "nekiAdminResource", &planetscale.NekiAdminArgs{
    	Branch:       pulumi.String("string"),
    	Database:     pulumi.String("string"),
    	Organization: pulumi.String("string"),
    	AdminSize:    pulumi.String("string"),
    	Parameters: pulumi.StringMapMap{
    		"string": pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    	},
    })
    
    resource "planetscale_neki_admin" "nekiAdminResource" {
      lifecycle {
        create_before_destroy = true
      }
      branch       = "string"
      database     = "string"
      organization = "string"
      admin_size   = "string"
      parameters = {
        "string" = {
          "string" = "string"
        }
      }
    }
    
    var nekiAdminResource = new NekiAdmin("nekiAdminResource", NekiAdminArgs.builder()
        .branch("string")
        .database("string")
        .organization("string")
        .adminSize("string")
        .parameters(Map.of("string", Map.of("string", "string")))
        .build());
    
    neki_admin_resource = planetscale.NekiAdmin("nekiAdminResource",
        branch="string",
        database="string",
        organization="string",
        admin_size="string",
        parameters={
            "string": {
                "string": "string",
            },
        })
    
    const nekiAdminResource = new planetscale.NekiAdmin("nekiAdminResource", {
        branch: "string",
        database: "string",
        organization: "string",
        adminSize: "string",
        parameters: {
            string: {
                string: "string",
            },
        },
    });
    
    type: planetscale:NekiAdmin
    properties:
        adminSize: string
        branch: string
        database: string
        organization: string
        parameters:
            string:
                string: string
    

    NekiAdmin Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The NekiAdmin resource accepts the following input properties:

    Branch string
    Branch name from list_branches. Example: main. Requires replacement if changed.
    Database string
    Database name slug from list_databases. Example: app-db. Requires replacement if changed.
    Organization string
    Organization name slug from list_organizations. Example: acme. Requires replacement if changed.
    AdminSize string
    The admin size SKU, e.g. NKA_0.
    Parameters Dictionary<string, ImmutableDictionary<string, string>>
    Branch string
    Branch name from list_branches. Example: main. Requires replacement if changed.
    Database string
    Database name slug from list_databases. Example: app-db. Requires replacement if changed.
    Organization string
    Organization name slug from list_organizations. Example: acme. Requires replacement if changed.
    AdminSize string
    The admin size SKU, e.g. NKA_0.
    Parameters map[string]map[string]string
    branch string
    Branch name from list_branches. Example: main. Requires replacement if changed.
    database string
    Database name slug from list_databases. Example: app-db. Requires replacement if changed.
    organization string
    Organization name slug from list_organizations. Example: acme. Requires replacement if changed.
    admin_size string
    The admin size SKU, e.g. NKA_0.
    parameters map(map(string))
    branch String
    Branch name from list_branches. Example: main. Requires replacement if changed.
    database String
    Database name slug from list_databases. Example: app-db. Requires replacement if changed.
    organization String
    Organization name slug from list_organizations. Example: acme. Requires replacement if changed.
    adminSize String
    The admin size SKU, e.g. NKA_0.
    parameters Map<String,Map<String,String>>
    branch string
    Branch name from list_branches. Example: main. Requires replacement if changed.
    database string
    Database name slug from list_databases. Example: app-db. Requires replacement if changed.
    organization string
    Organization name slug from list_organizations. Example: acme. Requires replacement if changed.
    adminSize string
    The admin size SKU, e.g. NKA_0.
    parameters {[key: string]: {[key: string]: string}}
    branch str
    Branch name from list_branches. Example: main. Requires replacement if changed.
    database str
    Database name slug from list_databases. Example: app-db. Requires replacement if changed.
    organization str
    Organization name slug from list_organizations. Example: acme. Requires replacement if changed.
    admin_size str
    The admin size SKU, e.g. NKA_0.
    parameters Mapping[str, Mapping[str, str]]
    branch String
    Branch name from list_branches. Example: main. Requires replacement if changed.
    database String
    Database name slug from list_databases. Example: app-db. Requires replacement if changed.
    organization String
    Organization name slug from list_organizations. Example: acme. Requires replacement if changed.
    adminSize String
    The admin size SKU, e.g. NKA_0.
    parameters Map<Map<String>>

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NekiAdmin resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current state of the admin
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current state of the admin
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The current state of the admin
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current state of the admin
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The current state of the admin
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    The current state of the admin
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current state of the admin

    Look up Existing NekiAdmin Resource

    Get an existing NekiAdmin resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: NekiAdminState, opts?: CustomResourceOptions): NekiAdmin
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            admin_size: Optional[str] = None,
            branch: Optional[str] = None,
            database: Optional[str] = None,
            organization: Optional[str] = None,
            parameters: Optional[Mapping[str, Mapping[str, str]]] = None,
            state: Optional[str] = None) -> NekiAdmin
    func GetNekiAdmin(ctx *Context, name string, id IDInput, state *NekiAdminState, opts ...ResourceOption) (*NekiAdmin, error)
    public static NekiAdmin Get(string name, Input<string> id, NekiAdminState? state, CustomResourceOptions? opts = null)
    public static NekiAdmin get(String name, Output<String> id, NekiAdminState state, CustomResourceOptions options)
    resources:  _:    type: planetscale:NekiAdmin    get:      id: ${id}
    import {
      to = planetscale_neki_admin.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AdminSize string
    The admin size SKU, e.g. NKA_0.
    Branch string
    Branch name from list_branches. Example: main. Requires replacement if changed.
    Database string
    Database name slug from list_databases. Example: app-db. Requires replacement if changed.
    Organization string
    Organization name slug from list_organizations. Example: acme. Requires replacement if changed.
    Parameters Dictionary<string, ImmutableDictionary<string, string>>
    State string
    The current state of the admin
    AdminSize string
    The admin size SKU, e.g. NKA_0.
    Branch string
    Branch name from list_branches. Example: main. Requires replacement if changed.
    Database string
    Database name slug from list_databases. Example: app-db. Requires replacement if changed.
    Organization string
    Organization name slug from list_organizations. Example: acme. Requires replacement if changed.
    Parameters map[string]map[string]string
    State string
    The current state of the admin
    admin_size string
    The admin size SKU, e.g. NKA_0.
    branch string
    Branch name from list_branches. Example: main. Requires replacement if changed.
    database string
    Database name slug from list_databases. Example: app-db. Requires replacement if changed.
    organization string
    Organization name slug from list_organizations. Example: acme. Requires replacement if changed.
    parameters map(map(string))
    state string
    The current state of the admin
    adminSize String
    The admin size SKU, e.g. NKA_0.
    branch String
    Branch name from list_branches. Example: main. Requires replacement if changed.
    database String
    Database name slug from list_databases. Example: app-db. Requires replacement if changed.
    organization String
    Organization name slug from list_organizations. Example: acme. Requires replacement if changed.
    parameters Map<String,Map<String,String>>
    state String
    The current state of the admin
    adminSize string
    The admin size SKU, e.g. NKA_0.
    branch string
    Branch name from list_branches. Example: main. Requires replacement if changed.
    database string
    Database name slug from list_databases. Example: app-db. Requires replacement if changed.
    organization string
    Organization name slug from list_organizations. Example: acme. Requires replacement if changed.
    parameters {[key: string]: {[key: string]: string}}
    state string
    The current state of the admin
    admin_size str
    The admin size SKU, e.g. NKA_0.
    branch str
    Branch name from list_branches. Example: main. Requires replacement if changed.
    database str
    Database name slug from list_databases. Example: app-db. Requires replacement if changed.
    organization str
    Organization name slug from list_organizations. Example: acme. Requires replacement if changed.
    parameters Mapping[str, Mapping[str, str]]
    state str
    The current state of the admin
    adminSize String
    The admin size SKU, e.g. NKA_0.
    branch String
    Branch name from list_branches. Example: main. Requires replacement if changed.
    database String
    Database name slug from list_databases. Example: app-db. Requires replacement if changed.
    organization String
    Organization name slug from list_organizations. Example: acme. Requires replacement if changed.
    parameters Map<Map<String>>
    state String
    The current state of the admin

    Import

    In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:

    terraform

    import {

    to = planetscale_neki_admin.my_planetscale_neki_admin

    id = jsonencode({

    branch       = "..."
    
    database     = "..."
    
    organization = "..."
    

    })

    }

    The pulumi import command can be used, for example:

    $ pulumi import planetscale:index/nekiAdmin:NekiAdmin my_planetscale_neki_admin '{"branch": "...", "database": "...", "organization": "..."}'
    

    To learn more about importing existing cloud resources, see Importing resources.

    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