1. Packages
  2. Glesys Provider
  3. API Docs
  4. Database
glesys 0.15.0 published on Friday, Oct 3, 2025 by glesys

glesys.Database

Get Started
glesys logo
glesys 0.15.0 published on Friday, Oct 3, 2025 by glesys

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as glesys from "@pulumi/glesys";
    
    const mydb = new glesys.Database("mydb", {
        allowlists: [
            "127.0.0.1",
            "127.0.0.2",
        ],
        datacenterkey: "dc-fbg1",
        engine: "mysql",
        engineversion: "8.0",
        plankey: "plan-1core-4gib-25gib",
    });
    
    import pulumi
    import pulumi_glesys as glesys
    
    mydb = glesys.Database("mydb",
        allowlists=[
            "127.0.0.1",
            "127.0.0.2",
        ],
        datacenterkey="dc-fbg1",
        engine="mysql",
        engineversion="8.0",
        plankey="plan-1core-4gib-25gib")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/glesys/glesys"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := glesys.NewDatabase(ctx, "mydb", &glesys.DatabaseArgs{
    			Allowlists: pulumi.StringArray{
    				pulumi.String("127.0.0.1"),
    				pulumi.String("127.0.0.2"),
    			},
    			Datacenterkey: pulumi.String("dc-fbg1"),
    			Engine:        pulumi.String("mysql"),
    			Engineversion: pulumi.String("8.0"),
    			Plankey:       pulumi.String("plan-1core-4gib-25gib"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Glesys = Pulumi.Glesys;
    
    return await Deployment.RunAsync(() => 
    {
        var mydb = new Glesys.Database("mydb", new()
        {
            Allowlists = new[]
            {
                "127.0.0.1",
                "127.0.0.2",
            },
            Datacenterkey = "dc-fbg1",
            Engine = "mysql",
            Engineversion = "8.0",
            Plankey = "plan-1core-4gib-25gib",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.glesys.Database;
    import com.pulumi.glesys.DatabaseArgs;
    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) {
            var mydb = new Database("mydb", DatabaseArgs.builder()
                .allowlists(            
                    "127.0.0.1",
                    "127.0.0.2")
                .datacenterkey("dc-fbg1")
                .engine("mysql")
                .engineversion("8.0")
                .plankey("plan-1core-4gib-25gib")
                .build());
    
        }
    }
    
    resources:
      mydb:
        type: glesys:Database
        properties:
          allowlists:
            - 127.0.0.1
            - 127.0.0.2
          datacenterkey: dc-fbg1
          engine: mysql
          engineversion: '8.0'
          plankey: plan-1core-4gib-25gib
    

    Create Database Resource

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

    Constructor syntax

    new Database(name: string, args: DatabaseArgs, opts?: CustomResourceOptions);
    @overload
    def Database(resource_name: str,
                 args: DatabaseArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Database(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 datacenterkey: Optional[str] = None,
                 engine: Optional[str] = None,
                 engineversion: Optional[str] = None,
                 plankey: Optional[str] = None,
                 allowlists: Optional[Sequence[str]] = None,
                 name: Optional[str] = None)
    func NewDatabase(ctx *Context, name string, args DatabaseArgs, opts ...ResourceOption) (*Database, error)
    public Database(string name, DatabaseArgs args, CustomResourceOptions? opts = null)
    public Database(String name, DatabaseArgs args)
    public Database(String name, DatabaseArgs args, CustomResourceOptions options)
    
    type: glesys:Database
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DatabaseArgs
    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 DatabaseArgs
    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 DatabaseArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DatabaseArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DatabaseArgs
    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 databaseResource = new Glesys.Database("databaseResource", new()
    {
        Datacenterkey = "string",
        Engine = "string",
        Engineversion = "string",
        Plankey = "string",
        Allowlists = new[]
        {
            "string",
        },
        Name = "string",
    });
    
    example, err := glesys.NewDatabase(ctx, "databaseResource", &glesys.DatabaseArgs{
    	Datacenterkey: pulumi.String("string"),
    	Engine:        pulumi.String("string"),
    	Engineversion: pulumi.String("string"),
    	Plankey:       pulumi.String("string"),
    	Allowlists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Name: pulumi.String("string"),
    })
    
    var databaseResource = new Database("databaseResource", DatabaseArgs.builder()
        .datacenterkey("string")
        .engine("string")
        .engineversion("string")
        .plankey("string")
        .allowlists("string")
        .name("string")
        .build());
    
    database_resource = glesys.Database("databaseResource",
        datacenterkey="string",
        engine="string",
        engineversion="string",
        plankey="string",
        allowlists=["string"],
        name="string")
    
    const databaseResource = new glesys.Database("databaseResource", {
        datacenterkey: "string",
        engine: "string",
        engineversion: "string",
        plankey: "string",
        allowlists: ["string"],
        name: "string",
    });
    
    type: glesys:Database
    properties:
        allowlists:
            - string
        datacenterkey: string
        engine: string
        engineversion: string
        name: string
        plankey: string
    

    Database 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 Database resource accepts the following input properties:

    Datacenterkey string
    Datacenter key
    Engine string
    Database engine name
    Engineversion string
    Database engine version
    Plankey string
    Database plan key
    Allowlists List<string>
    Update the allow list for a database instance list. The list can use single IP addresses or CIDR ranges.
    Name string
    Database name
    Datacenterkey string
    Datacenter key
    Engine string
    Database engine name
    Engineversion string
    Database engine version
    Plankey string
    Database plan key
    Allowlists []string
    Update the allow list for a database instance list. The list can use single IP addresses or CIDR ranges.
    Name string
    Database name
    datacenterkey String
    Datacenter key
    engine String
    Database engine name
    engineversion String
    Database engine version
    plankey String
    Database plan key
    allowlists List<String>
    Update the allow list for a database instance list. The list can use single IP addresses or CIDR ranges.
    name String
    Database name
    datacenterkey string
    Datacenter key
    engine string
    Database engine name
    engineversion string
    Database engine version
    plankey string
    Database plan key
    allowlists string[]
    Update the allow list for a database instance list. The list can use single IP addresses or CIDR ranges.
    name string
    Database name
    datacenterkey str
    Datacenter key
    engine str
    Database engine name
    engineversion str
    Database engine version
    plankey str
    Database plan key
    allowlists Sequence[str]
    Update the allow list for a database instance list. The list can use single IP addresses or CIDR ranges.
    name str
    Database name
    datacenterkey String
    Datacenter key
    engine String
    Database engine name
    engineversion String
    Database engine version
    plankey String
    Database plan key
    allowlists List<String>
    Update the allow list for a database instance list. The list can use single IP addresses or CIDR ranges.
    name String
    Database name

    Outputs

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

    Connectionstring string
    Connection string to access database
    Fqdn string
    Database FQDN
    Id string
    The provider-assigned unique ID for this managed resource.
    MaintenancewindowDurationinminutes double
    Duration of database maintenance window (minutes).
    MaintenancewindowStarttime string
    Database maintenance window starttime.
    MaintenancewindowWeekday string
    Database maintenance window day of week.
    Status string
    Database status
    Connectionstring string
    Connection string to access database
    Fqdn string
    Database FQDN
    Id string
    The provider-assigned unique ID for this managed resource.
    MaintenancewindowDurationinminutes float64
    Duration of database maintenance window (minutes).
    MaintenancewindowStarttime string
    Database maintenance window starttime.
    MaintenancewindowWeekday string
    Database maintenance window day of week.
    Status string
    Database status
    connectionstring String
    Connection string to access database
    fqdn String
    Database FQDN
    id String
    The provider-assigned unique ID for this managed resource.
    maintenancewindowDurationinminutes Double
    Duration of database maintenance window (minutes).
    maintenancewindowStarttime String
    Database maintenance window starttime.
    maintenancewindowWeekday String
    Database maintenance window day of week.
    status String
    Database status
    connectionstring string
    Connection string to access database
    fqdn string
    Database FQDN
    id string
    The provider-assigned unique ID for this managed resource.
    maintenancewindowDurationinminutes number
    Duration of database maintenance window (minutes).
    maintenancewindowStarttime string
    Database maintenance window starttime.
    maintenancewindowWeekday string
    Database maintenance window day of week.
    status string
    Database status
    connectionstring str
    Connection string to access database
    fqdn str
    Database FQDN
    id str
    The provider-assigned unique ID for this managed resource.
    maintenancewindow_durationinminutes float
    Duration of database maintenance window (minutes).
    maintenancewindow_starttime str
    Database maintenance window starttime.
    maintenancewindow_weekday str
    Database maintenance window day of week.
    status str
    Database status
    connectionstring String
    Connection string to access database
    fqdn String
    Database FQDN
    id String
    The provider-assigned unique ID for this managed resource.
    maintenancewindowDurationinminutes Number
    Duration of database maintenance window (minutes).
    maintenancewindowStarttime String
    Database maintenance window starttime.
    maintenancewindowWeekday String
    Database maintenance window day of week.
    status String
    Database status

    Look up Existing Database Resource

    Get an existing Database 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?: DatabaseState, opts?: CustomResourceOptions): Database
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allowlists: Optional[Sequence[str]] = None,
            connectionstring: Optional[str] = None,
            datacenterkey: Optional[str] = None,
            engine: Optional[str] = None,
            engineversion: Optional[str] = None,
            fqdn: Optional[str] = None,
            maintenancewindow_durationinminutes: Optional[float] = None,
            maintenancewindow_starttime: Optional[str] = None,
            maintenancewindow_weekday: Optional[str] = None,
            name: Optional[str] = None,
            plankey: Optional[str] = None,
            status: Optional[str] = None) -> Database
    func GetDatabase(ctx *Context, name string, id IDInput, state *DatabaseState, opts ...ResourceOption) (*Database, error)
    public static Database Get(string name, Input<string> id, DatabaseState? state, CustomResourceOptions? opts = null)
    public static Database get(String name, Output<String> id, DatabaseState state, CustomResourceOptions options)
    resources:  _:    type: glesys:Database    get:      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:
    Allowlists List<string>
    Update the allow list for a database instance list. The list can use single IP addresses or CIDR ranges.
    Connectionstring string
    Connection string to access database
    Datacenterkey string
    Datacenter key
    Engine string
    Database engine name
    Engineversion string
    Database engine version
    Fqdn string
    Database FQDN
    MaintenancewindowDurationinminutes double
    Duration of database maintenance window (minutes).
    MaintenancewindowStarttime string
    Database maintenance window starttime.
    MaintenancewindowWeekday string
    Database maintenance window day of week.
    Name string
    Database name
    Plankey string
    Database plan key
    Status string
    Database status
    Allowlists []string
    Update the allow list for a database instance list. The list can use single IP addresses or CIDR ranges.
    Connectionstring string
    Connection string to access database
    Datacenterkey string
    Datacenter key
    Engine string
    Database engine name
    Engineversion string
    Database engine version
    Fqdn string
    Database FQDN
    MaintenancewindowDurationinminutes float64
    Duration of database maintenance window (minutes).
    MaintenancewindowStarttime string
    Database maintenance window starttime.
    MaintenancewindowWeekday string
    Database maintenance window day of week.
    Name string
    Database name
    Plankey string
    Database plan key
    Status string
    Database status
    allowlists List<String>
    Update the allow list for a database instance list. The list can use single IP addresses or CIDR ranges.
    connectionstring String
    Connection string to access database
    datacenterkey String
    Datacenter key
    engine String
    Database engine name
    engineversion String
    Database engine version
    fqdn String
    Database FQDN
    maintenancewindowDurationinminutes Double
    Duration of database maintenance window (minutes).
    maintenancewindowStarttime String
    Database maintenance window starttime.
    maintenancewindowWeekday String
    Database maintenance window day of week.
    name String
    Database name
    plankey String
    Database plan key
    status String
    Database status
    allowlists string[]
    Update the allow list for a database instance list. The list can use single IP addresses or CIDR ranges.
    connectionstring string
    Connection string to access database
    datacenterkey string
    Datacenter key
    engine string
    Database engine name
    engineversion string
    Database engine version
    fqdn string
    Database FQDN
    maintenancewindowDurationinminutes number
    Duration of database maintenance window (minutes).
    maintenancewindowStarttime string
    Database maintenance window starttime.
    maintenancewindowWeekday string
    Database maintenance window day of week.
    name string
    Database name
    plankey string
    Database plan key
    status string
    Database status
    allowlists Sequence[str]
    Update the allow list for a database instance list. The list can use single IP addresses or CIDR ranges.
    connectionstring str
    Connection string to access database
    datacenterkey str
    Datacenter key
    engine str
    Database engine name
    engineversion str
    Database engine version
    fqdn str
    Database FQDN
    maintenancewindow_durationinminutes float
    Duration of database maintenance window (minutes).
    maintenancewindow_starttime str
    Database maintenance window starttime.
    maintenancewindow_weekday str
    Database maintenance window day of week.
    name str
    Database name
    plankey str
    Database plan key
    status str
    Database status
    allowlists List<String>
    Update the allow list for a database instance list. The list can use single IP addresses or CIDR ranges.
    connectionstring String
    Connection string to access database
    datacenterkey String
    Datacenter key
    engine String
    Database engine name
    engineversion String
    Database engine version
    fqdn String
    Database FQDN
    maintenancewindowDurationinminutes Number
    Duration of database maintenance window (minutes).
    maintenancewindowStarttime String
    Database maintenance window starttime.
    maintenancewindowWeekday String
    Database maintenance window day of week.
    name String
    Database name
    plankey String
    Database plan key
    status String
    Database status

    Package Details

    Repository
    glesys glesys/terraform-provider-glesys
    License
    Notes
    This Pulumi package is based on the glesys Terraform Provider.
    glesys logo
    glesys 0.15.0 published on Friday, Oct 3, 2025 by glesys
      Meet Neo: Your AI Platform Teammate