1. Registry
  2. Packages
  3. Dokploy
  4. API Docs
  5. getMySQL
Viewing docs for Dokploy v0.4.4
published on Thursday, Nov 5, 2026 by dimeskigj
dokploy logo Dokploy
Viewing docs for Dokploy v0.4.4
published on Thursday, Nov 5, 2026 by dimeskigj

    Read non-secret metadata for an existing Dokploy MySQL database by ID without managing it.

    Using getMySQL

    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 getMySQL(args: GetMySQLArgs, opts?: InvokeOptions): Promise<GetMySQLResult>
    function getMySQLOutput(args: GetMySQLOutputArgs, opts?: InvokeOutputOptions): Output<GetMySQLResult>
    def get_my_sql(mysql_id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetMySQLResult
    def get_my_sql_output(mysql_id: pulumi.Input[Optional[str]] = None,
                   opts: Optional[InvokeOutputOptions] = None) -> Output[GetMySQLResult]
    func LookupMySQL(ctx *Context, args *LookupMySQLArgs, opts ...InvokeOption) (*LookupMySQLResult, error)
    func LookupMySQLOutput(ctx *Context, args *LookupMySQLOutputArgs, opts ...InvokeOption) LookupMySQLResultOutput

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

    public static class GetMySQL 
    {
        public static Task<GetMySQLResult> InvokeAsync(GetMySQLArgs args, InvokeOptions? opts = null)
        public static Output<GetMySQLResult> Invoke(GetMySQLInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetMySQLResult> Invoke(GetMySQLInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetMySQLResult> getMySQL(GetMySQLArgs args, InvokeOptions options)
    public static Output<GetMySQLResult> getMySQL(GetMySQLArgs args, InvokeOptions options)
    public static Output<GetMySQLResult> getMySQL(GetMySQLArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: dokploy:getMySQL
      arguments:
        # arguments dictionary
    data "dokploy_get_my_s_q_l" "name" {
        # arguments
    }

    The following arguments are supported:

    MysqlId string
    The ID of the existing Dokploy MySQL database to read.
    MysqlId string
    The ID of the existing Dokploy MySQL database to read.
    mysql_id string
    The ID of the existing Dokploy MySQL database to read.
    mysqlId String
    The ID of the existing Dokploy MySQL database to read.
    mysqlId string
    The ID of the existing Dokploy MySQL database to read.
    mysql_id str
    The ID of the existing Dokploy MySQL database to read.
    mysqlId String
    The ID of the existing Dokploy MySQL database to read.

    getMySQL Result

    The following output properties are available:

    MysqlId string
    The stable Dokploy MySQL ID.
    Name string
    The MySQL database name.
    AppName string
    The optional application name metadata.
    DatabaseName string
    The optional database name metadata.
    DatabaseUser string
    The optional database username metadata.
    Description string
    The optional description metadata.
    DockerImage string
    The optional Docker image metadata.
    EnvironmentId string
    The optional environment ID metadata.
    ExternalPort int
    The optional external port.
    ServerId string
    The optional server ID metadata.
    Status string
    The optional application status.
    MysqlId string
    The stable Dokploy MySQL ID.
    Name string
    The MySQL database name.
    AppName string
    The optional application name metadata.
    DatabaseName string
    The optional database name metadata.
    DatabaseUser string
    The optional database username metadata.
    Description string
    The optional description metadata.
    DockerImage string
    The optional Docker image metadata.
    EnvironmentId string
    The optional environment ID metadata.
    ExternalPort int
    The optional external port.
    ServerId string
    The optional server ID metadata.
    Status string
    The optional application status.
    mysql_id string
    The stable Dokploy MySQL ID.
    name string
    The MySQL database name.
    app_name string
    The optional application name metadata.
    database_name string
    The optional database name metadata.
    database_user string
    The optional database username metadata.
    description string
    The optional description metadata.
    docker_image string
    The optional Docker image metadata.
    environment_id string
    The optional environment ID metadata.
    external_port number
    The optional external port.
    server_id string
    The optional server ID metadata.
    status string
    The optional application status.
    mysqlId String
    The stable Dokploy MySQL ID.
    name String
    The MySQL database name.
    appName String
    The optional application name metadata.
    databaseName String
    The optional database name metadata.
    databaseUser String
    The optional database username metadata.
    description String
    The optional description metadata.
    dockerImage String
    The optional Docker image metadata.
    environmentId String
    The optional environment ID metadata.
    externalPort Integer
    The optional external port.
    serverId String
    The optional server ID metadata.
    status String
    The optional application status.
    mysqlId string
    The stable Dokploy MySQL ID.
    name string
    The MySQL database name.
    appName string
    The optional application name metadata.
    databaseName string
    The optional database name metadata.
    databaseUser string
    The optional database username metadata.
    description string
    The optional description metadata.
    dockerImage string
    The optional Docker image metadata.
    environmentId string
    The optional environment ID metadata.
    externalPort number
    The optional external port.
    serverId string
    The optional server ID metadata.
    status string
    The optional application status.
    mysql_id str
    The stable Dokploy MySQL ID.
    name str
    The MySQL database name.
    app_name str
    The optional application name metadata.
    database_name str
    The optional database name metadata.
    database_user str
    The optional database username metadata.
    description str
    The optional description metadata.
    docker_image str
    The optional Docker image metadata.
    environment_id str
    The optional environment ID metadata.
    external_port int
    The optional external port.
    server_id str
    The optional server ID metadata.
    status str
    The optional application status.
    mysqlId String
    The stable Dokploy MySQL ID.
    name String
    The MySQL database name.
    appName String
    The optional application name metadata.
    databaseName String
    The optional database name metadata.
    databaseUser String
    The optional database username metadata.
    description String
    The optional description metadata.
    dockerImage String
    The optional Docker image metadata.
    environmentId String
    The optional environment ID metadata.
    externalPort Number
    The optional external port.
    serverId String
    The optional server ID metadata.
    status String
    The optional application status.

    Package Details

    Repository
    dokploy dimeskigj/pulumi-dokploy
    License
    Apache-2.0
    dokploy logo Dokploy
    Viewing docs for Dokploy v0.4.4
    published on Thursday, Nov 5, 2026 by dimeskigj

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial