1. Packages
  2. Packages
  3. Akeyless Provider
  4. API Docs
  5. DynamicSecretMysql
Viewing docs for akeyless 2.0.1
published on Monday, Apr 27, 2026 by akeyless-community
Viewing docs for akeyless 2.0.1
published on Monday, Apr 27, 2026 by akeyless-community

    MySQL dynamic secret resource

    Create DynamicSecretMysql Resource

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

    Constructor syntax

    new DynamicSecretMysql(name: string, args?: DynamicSecretMysqlArgs, opts?: CustomResourceOptions);
    @overload
    def DynamicSecretMysql(resource_name: str,
                           args: Optional[DynamicSecretMysqlArgs] = None,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def DynamicSecretMysql(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           custom_username_template: Optional[str] = None,
                           db_server_certificates: Optional[str] = None,
                           db_server_name: Optional[str] = None,
                           delete_protection: Optional[str] = None,
                           description: Optional[str] = None,
                           dynamic_secret_mysql_id: Optional[str] = None,
                           encryption_key_name: Optional[str] = None,
                           item_custom_fields: Optional[Mapping[str, str]] = None,
                           mysql_creation_statements: Optional[str] = None,
                           mysql_dbname: Optional[str] = None,
                           mysql_host: Optional[str] = None,
                           mysql_password: Optional[str] = None,
                           mysql_port: Optional[str] = None,
                           mysql_revocation_statements: Optional[str] = None,
                           mysql_username: Optional[str] = None,
                           name: Optional[str] = None,
                           password_length: Optional[str] = None,
                           secure_access_bastion_issuer: Optional[str] = None,
                           secure_access_certificate_issuer: Optional[str] = None,
                           secure_access_db_name: Optional[str] = None,
                           secure_access_delay: Optional[float] = None,
                           secure_access_enable: Optional[str] = None,
                           secure_access_hosts: Optional[Sequence[str]] = None,
                           secure_access_web: Optional[bool] = None,
                           ssl: Optional[bool] = None,
                           ssl_certificate: Optional[str] = None,
                           tags: Optional[Sequence[str]] = None,
                           target_name: Optional[str] = None,
                           user_ttl: Optional[str] = None)
    func NewDynamicSecretMysql(ctx *Context, name string, args *DynamicSecretMysqlArgs, opts ...ResourceOption) (*DynamicSecretMysql, error)
    public DynamicSecretMysql(string name, DynamicSecretMysqlArgs? args = null, CustomResourceOptions? opts = null)
    public DynamicSecretMysql(String name, DynamicSecretMysqlArgs args)
    public DynamicSecretMysql(String name, DynamicSecretMysqlArgs args, CustomResourceOptions options)
    
    type: akeyless:DynamicSecretMysql
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "akeyless_dynamicsecretmysql" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args DynamicSecretMysqlArgs
    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 DynamicSecretMysqlArgs
    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 DynamicSecretMysqlArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DynamicSecretMysqlArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DynamicSecretMysqlArgs
    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 dynamicSecretMysqlResource = new Akeyless.DynamicSecretMysql("dynamicSecretMysqlResource", new()
    {
        CustomUsernameTemplate = "string",
        DbServerCertificates = "string",
        DbServerName = "string",
        DeleteProtection = "string",
        Description = "string",
        DynamicSecretMysqlId = "string",
        EncryptionKeyName = "string",
        ItemCustomFields = 
        {
            { "string", "string" },
        },
        MysqlCreationStatements = "string",
        MysqlDbname = "string",
        MysqlHost = "string",
        MysqlPassword = "string",
        MysqlPort = "string",
        MysqlRevocationStatements = "string",
        MysqlUsername = "string",
        Name = "string",
        PasswordLength = "string",
        SecureAccessCertificateIssuer = "string",
        SecureAccessDbName = "string",
        SecureAccessDelay = 0,
        SecureAccessEnable = "string",
        SecureAccessHosts = new[]
        {
            "string",
        },
        SecureAccessWeb = false,
        Ssl = false,
        SslCertificate = "string",
        Tags = new[]
        {
            "string",
        },
        TargetName = "string",
        UserTtl = "string",
    });
    
    example, err := akeyless.NewDynamicSecretMysql(ctx, "dynamicSecretMysqlResource", &akeyless.DynamicSecretMysqlArgs{
    	CustomUsernameTemplate: pulumi.String("string"),
    	DbServerCertificates:   pulumi.String("string"),
    	DbServerName:           pulumi.String("string"),
    	DeleteProtection:       pulumi.String("string"),
    	Description:            pulumi.String("string"),
    	DynamicSecretMysqlId:   pulumi.String("string"),
    	EncryptionKeyName:      pulumi.String("string"),
    	ItemCustomFields: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	MysqlCreationStatements:       pulumi.String("string"),
    	MysqlDbname:                   pulumi.String("string"),
    	MysqlHost:                     pulumi.String("string"),
    	MysqlPassword:                 pulumi.String("string"),
    	MysqlPort:                     pulumi.String("string"),
    	MysqlRevocationStatements:     pulumi.String("string"),
    	MysqlUsername:                 pulumi.String("string"),
    	Name:                          pulumi.String("string"),
    	PasswordLength:                pulumi.String("string"),
    	SecureAccessCertificateIssuer: pulumi.String("string"),
    	SecureAccessDbName:            pulumi.String("string"),
    	SecureAccessDelay:             pulumi.Float64(0),
    	SecureAccessEnable:            pulumi.String("string"),
    	SecureAccessHosts: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SecureAccessWeb: pulumi.Bool(false),
    	Ssl:             pulumi.Bool(false),
    	SslCertificate:  pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TargetName: pulumi.String("string"),
    	UserTtl:    pulumi.String("string"),
    })
    
    resource "akeyless_dynamicsecretmysql" "dynamicSecretMysqlResource" {
      custom_username_template = "string"
      db_server_certificates   = "string"
      db_server_name           = "string"
      delete_protection        = "string"
      description              = "string"
      dynamic_secret_mysql_id  = "string"
      encryption_key_name      = "string"
      item_custom_fields = {
        "string" = "string"
      }
      mysql_creation_statements        = "string"
      mysql_dbname                     = "string"
      mysql_host                       = "string"
      mysql_password                   = "string"
      mysql_port                       = "string"
      mysql_revocation_statements      = "string"
      mysql_username                   = "string"
      name                             = "string"
      password_length                  = "string"
      secure_access_certificate_issuer = "string"
      secure_access_db_name            = "string"
      secure_access_delay              = 0
      secure_access_enable             = "string"
      secure_access_hosts              = ["string"]
      secure_access_web                = false
      ssl                              = false
      ssl_certificate                  = "string"
      tags                             = ["string"]
      target_name                      = "string"
      user_ttl                         = "string"
    }
    
    var dynamicSecretMysqlResource = new DynamicSecretMysql("dynamicSecretMysqlResource", DynamicSecretMysqlArgs.builder()
        .customUsernameTemplate("string")
        .dbServerCertificates("string")
        .dbServerName("string")
        .deleteProtection("string")
        .description("string")
        .dynamicSecretMysqlId("string")
        .encryptionKeyName("string")
        .itemCustomFields(Map.of("string", "string"))
        .mysqlCreationStatements("string")
        .mysqlDbname("string")
        .mysqlHost("string")
        .mysqlPassword("string")
        .mysqlPort("string")
        .mysqlRevocationStatements("string")
        .mysqlUsername("string")
        .name("string")
        .passwordLength("string")
        .secureAccessCertificateIssuer("string")
        .secureAccessDbName("string")
        .secureAccessDelay(0.0)
        .secureAccessEnable("string")
        .secureAccessHosts("string")
        .secureAccessWeb(false)
        .ssl(false)
        .sslCertificate("string")
        .tags("string")
        .targetName("string")
        .userTtl("string")
        .build());
    
    dynamic_secret_mysql_resource = akeyless.DynamicSecretMysql("dynamicSecretMysqlResource",
        custom_username_template="string",
        db_server_certificates="string",
        db_server_name="string",
        delete_protection="string",
        description="string",
        dynamic_secret_mysql_id="string",
        encryption_key_name="string",
        item_custom_fields={
            "string": "string",
        },
        mysql_creation_statements="string",
        mysql_dbname="string",
        mysql_host="string",
        mysql_password="string",
        mysql_port="string",
        mysql_revocation_statements="string",
        mysql_username="string",
        name="string",
        password_length="string",
        secure_access_certificate_issuer="string",
        secure_access_db_name="string",
        secure_access_delay=float(0),
        secure_access_enable="string",
        secure_access_hosts=["string"],
        secure_access_web=False,
        ssl=False,
        ssl_certificate="string",
        tags=["string"],
        target_name="string",
        user_ttl="string")
    
    const dynamicSecretMysqlResource = new akeyless.DynamicSecretMysql("dynamicSecretMysqlResource", {
        customUsernameTemplate: "string",
        dbServerCertificates: "string",
        dbServerName: "string",
        deleteProtection: "string",
        description: "string",
        dynamicSecretMysqlId: "string",
        encryptionKeyName: "string",
        itemCustomFields: {
            string: "string",
        },
        mysqlCreationStatements: "string",
        mysqlDbname: "string",
        mysqlHost: "string",
        mysqlPassword: "string",
        mysqlPort: "string",
        mysqlRevocationStatements: "string",
        mysqlUsername: "string",
        name: "string",
        passwordLength: "string",
        secureAccessCertificateIssuer: "string",
        secureAccessDbName: "string",
        secureAccessDelay: 0,
        secureAccessEnable: "string",
        secureAccessHosts: ["string"],
        secureAccessWeb: false,
        ssl: false,
        sslCertificate: "string",
        tags: ["string"],
        targetName: "string",
        userTtl: "string",
    });
    
    type: akeyless:DynamicSecretMysql
    properties:
        customUsernameTemplate: string
        dbServerCertificates: string
        dbServerName: string
        deleteProtection: string
        description: string
        dynamicSecretMysqlId: string
        encryptionKeyName: string
        itemCustomFields:
            string: string
        mysqlCreationStatements: string
        mysqlDbname: string
        mysqlHost: string
        mysqlPassword: string
        mysqlPort: string
        mysqlRevocationStatements: string
        mysqlUsername: string
        name: string
        passwordLength: string
        secureAccessCertificateIssuer: string
        secureAccessDbName: string
        secureAccessDelay: 0
        secureAccessEnable: string
        secureAccessHosts:
            - string
        secureAccessWeb: false
        ssl: false
        sslCertificate: string
        tags:
            - string
        targetName: string
        userTtl: string
    

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

    CustomUsernameTemplate string
    Customize how temporary usernames are generated using go template
    DbServerCertificates string
    (Optional) DB server certificates
    DbServerName string
    (Optional) Server name for certificate verification
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    Description string
    Description of the object
    DynamicSecretMysqlId string
    The ID of this resource.
    EncryptionKeyName string
    Dynamic producer encryption key
    ItemCustomFields Dictionary<string, string>
    Additional custom fields to associate with the item
    MysqlCreationStatements string
    MySQL Creation Statements
    MysqlDbname string
    MySQL DB name
    MysqlHost string
    MySQL Host
    MysqlPassword string
    MySQL password
    MysqlPort string
    MySQL port
    MysqlRevocationStatements string
    MySQL Revocation Statements
    MysqlUsername string
    MySQL Username
    Name string
    Dynamic secret name
    PasswordLength string
    The length of the password to be generated
    SecureAccessBastionIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Bastion

    Deprecated: Deprecated

    SecureAccessCertificateIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    SecureAccessDbName string
    The DB name (relevant only for DB Dynamic-Secret)
    SecureAccessDelay double
    The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
    SecureAccessEnable string
    Enable/Disable secure remote access, [true/false]
    SecureAccessHosts List<string>
    Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
    SecureAccessWeb bool
    Enable Web Secure Remote Access
    Ssl bool
    Enable/Disable SSL [true/false]
    SslCertificate string
    SSL connection certificate
    Tags List<string>
    Add tags attached to this object
    TargetName string
    Target name
    UserTtl string
    User TTL
    CustomUsernameTemplate string
    Customize how temporary usernames are generated using go template
    DbServerCertificates string
    (Optional) DB server certificates
    DbServerName string
    (Optional) Server name for certificate verification
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    Description string
    Description of the object
    DynamicSecretMysqlId string
    The ID of this resource.
    EncryptionKeyName string
    Dynamic producer encryption key
    ItemCustomFields map[string]string
    Additional custom fields to associate with the item
    MysqlCreationStatements string
    MySQL Creation Statements
    MysqlDbname string
    MySQL DB name
    MysqlHost string
    MySQL Host
    MysqlPassword string
    MySQL password
    MysqlPort string
    MySQL port
    MysqlRevocationStatements string
    MySQL Revocation Statements
    MysqlUsername string
    MySQL Username
    Name string
    Dynamic secret name
    PasswordLength string
    The length of the password to be generated
    SecureAccessBastionIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Bastion

    Deprecated: Deprecated

    SecureAccessCertificateIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    SecureAccessDbName string
    The DB name (relevant only for DB Dynamic-Secret)
    SecureAccessDelay float64
    The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
    SecureAccessEnable string
    Enable/Disable secure remote access, [true/false]
    SecureAccessHosts []string
    Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
    SecureAccessWeb bool
    Enable Web Secure Remote Access
    Ssl bool
    Enable/Disable SSL [true/false]
    SslCertificate string
    SSL connection certificate
    Tags []string
    Add tags attached to this object
    TargetName string
    Target name
    UserTtl string
    User TTL
    custom_username_template string
    Customize how temporary usernames are generated using go template
    db_server_certificates string
    (Optional) DB server certificates
    db_server_name string
    (Optional) Server name for certificate verification
    delete_protection string
    Protection from accidental deletion of this object [true/false]
    description string
    Description of the object
    dynamic_secret_mysql_id string
    The ID of this resource.
    encryption_key_name string
    Dynamic producer encryption key
    item_custom_fields map(string)
    Additional custom fields to associate with the item
    mysql_creation_statements string
    MySQL Creation Statements
    mysql_dbname string
    MySQL DB name
    mysql_host string
    MySQL Host
    mysql_password string
    MySQL password
    mysql_port string
    MySQL port
    mysql_revocation_statements string
    MySQL Revocation Statements
    mysql_username string
    MySQL Username
    name string
    Dynamic secret name
    password_length string
    The length of the password to be generated
    secure_access_bastion_issuer string
    Path to the SSH Certificate Issuer for your Akeyless Bastion

    Deprecated: Deprecated

    secure_access_certificate_issuer string
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    secure_access_db_name string
    The DB name (relevant only for DB Dynamic-Secret)
    secure_access_delay number
    The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
    secure_access_enable string
    Enable/Disable secure remote access, [true/false]
    secure_access_hosts list(string)
    Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
    secure_access_web bool
    Enable Web Secure Remote Access
    ssl bool
    Enable/Disable SSL [true/false]
    ssl_certificate string
    SSL connection certificate
    tags list(string)
    Add tags attached to this object
    target_name string
    Target name
    user_ttl string
    User TTL
    customUsernameTemplate String
    Customize how temporary usernames are generated using go template
    dbServerCertificates String
    (Optional) DB server certificates
    dbServerName String
    (Optional) Server name for certificate verification
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    description String
    Description of the object
    dynamicSecretMysqlId String
    The ID of this resource.
    encryptionKeyName String
    Dynamic producer encryption key
    itemCustomFields Map<String,String>
    Additional custom fields to associate with the item
    mysqlCreationStatements String
    MySQL Creation Statements
    mysqlDbname String
    MySQL DB name
    mysqlHost String
    MySQL Host
    mysqlPassword String
    MySQL password
    mysqlPort String
    MySQL port
    mysqlRevocationStatements String
    MySQL Revocation Statements
    mysqlUsername String
    MySQL Username
    name String
    Dynamic secret name
    passwordLength String
    The length of the password to be generated
    secureAccessBastionIssuer String
    Path to the SSH Certificate Issuer for your Akeyless Bastion

    Deprecated: Deprecated

    secureAccessCertificateIssuer String
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    secureAccessDbName String
    The DB name (relevant only for DB Dynamic-Secret)
    secureAccessDelay Double
    The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
    secureAccessEnable String
    Enable/Disable secure remote access, [true/false]
    secureAccessHosts List<String>
    Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
    secureAccessWeb Boolean
    Enable Web Secure Remote Access
    ssl Boolean
    Enable/Disable SSL [true/false]
    sslCertificate String
    SSL connection certificate
    tags List<String>
    Add tags attached to this object
    targetName String
    Target name
    userTtl String
    User TTL
    customUsernameTemplate string
    Customize how temporary usernames are generated using go template
    dbServerCertificates string
    (Optional) DB server certificates
    dbServerName string
    (Optional) Server name for certificate verification
    deleteProtection string
    Protection from accidental deletion of this object [true/false]
    description string
    Description of the object
    dynamicSecretMysqlId string
    The ID of this resource.
    encryptionKeyName string
    Dynamic producer encryption key
    itemCustomFields {[key: string]: string}
    Additional custom fields to associate with the item
    mysqlCreationStatements string
    MySQL Creation Statements
    mysqlDbname string
    MySQL DB name
    mysqlHost string
    MySQL Host
    mysqlPassword string
    MySQL password
    mysqlPort string
    MySQL port
    mysqlRevocationStatements string
    MySQL Revocation Statements
    mysqlUsername string
    MySQL Username
    name string
    Dynamic secret name
    passwordLength string
    The length of the password to be generated
    secureAccessBastionIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Bastion

    Deprecated: Deprecated

    secureAccessCertificateIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    secureAccessDbName string
    The DB name (relevant only for DB Dynamic-Secret)
    secureAccessDelay number
    The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
    secureAccessEnable string
    Enable/Disable secure remote access, [true/false]
    secureAccessHosts string[]
    Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
    secureAccessWeb boolean
    Enable Web Secure Remote Access
    ssl boolean
    Enable/Disable SSL [true/false]
    sslCertificate string
    SSL connection certificate
    tags string[]
    Add tags attached to this object
    targetName string
    Target name
    userTtl string
    User TTL
    custom_username_template str
    Customize how temporary usernames are generated using go template
    db_server_certificates str
    (Optional) DB server certificates
    db_server_name str
    (Optional) Server name for certificate verification
    delete_protection str
    Protection from accidental deletion of this object [true/false]
    description str
    Description of the object
    dynamic_secret_mysql_id str
    The ID of this resource.
    encryption_key_name str
    Dynamic producer encryption key
    item_custom_fields Mapping[str, str]
    Additional custom fields to associate with the item
    mysql_creation_statements str
    MySQL Creation Statements
    mysql_dbname str
    MySQL DB name
    mysql_host str
    MySQL Host
    mysql_password str
    MySQL password
    mysql_port str
    MySQL port
    mysql_revocation_statements str
    MySQL Revocation Statements
    mysql_username str
    MySQL Username
    name str
    Dynamic secret name
    password_length str
    The length of the password to be generated
    secure_access_bastion_issuer str
    Path to the SSH Certificate Issuer for your Akeyless Bastion

    Deprecated: Deprecated

    secure_access_certificate_issuer str
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    secure_access_db_name str
    The DB name (relevant only for DB Dynamic-Secret)
    secure_access_delay float
    The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
    secure_access_enable str
    Enable/Disable secure remote access, [true/false]
    secure_access_hosts Sequence[str]
    Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
    secure_access_web bool
    Enable Web Secure Remote Access
    ssl bool
    Enable/Disable SSL [true/false]
    ssl_certificate str
    SSL connection certificate
    tags Sequence[str]
    Add tags attached to this object
    target_name str
    Target name
    user_ttl str
    User TTL
    customUsernameTemplate String
    Customize how temporary usernames are generated using go template
    dbServerCertificates String
    (Optional) DB server certificates
    dbServerName String
    (Optional) Server name for certificate verification
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    description String
    Description of the object
    dynamicSecretMysqlId String
    The ID of this resource.
    encryptionKeyName String
    Dynamic producer encryption key
    itemCustomFields Map<String>
    Additional custom fields to associate with the item
    mysqlCreationStatements String
    MySQL Creation Statements
    mysqlDbname String
    MySQL DB name
    mysqlHost String
    MySQL Host
    mysqlPassword String
    MySQL password
    mysqlPort String
    MySQL port
    mysqlRevocationStatements String
    MySQL Revocation Statements
    mysqlUsername String
    MySQL Username
    name String
    Dynamic secret name
    passwordLength String
    The length of the password to be generated
    secureAccessBastionIssuer String
    Path to the SSH Certificate Issuer for your Akeyless Bastion

    Deprecated: Deprecated

    secureAccessCertificateIssuer String
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    secureAccessDbName String
    The DB name (relevant only for DB Dynamic-Secret)
    secureAccessDelay Number
    The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
    secureAccessEnable String
    Enable/Disable secure remote access, [true/false]
    secureAccessHosts List<String>
    Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
    secureAccessWeb Boolean
    Enable Web Secure Remote Access
    ssl Boolean
    Enable/Disable SSL [true/false]
    sslCertificate String
    SSL connection certificate
    tags List<String>
    Add tags attached to this object
    targetName String
    Target name
    userTtl String
    User TTL

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DynamicSecretMysql Resource

    Get an existing DynamicSecretMysql 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?: DynamicSecretMysqlState, opts?: CustomResourceOptions): DynamicSecretMysql
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            custom_username_template: Optional[str] = None,
            db_server_certificates: Optional[str] = None,
            db_server_name: Optional[str] = None,
            delete_protection: Optional[str] = None,
            description: Optional[str] = None,
            dynamic_secret_mysql_id: Optional[str] = None,
            encryption_key_name: Optional[str] = None,
            item_custom_fields: Optional[Mapping[str, str]] = None,
            mysql_creation_statements: Optional[str] = None,
            mysql_dbname: Optional[str] = None,
            mysql_host: Optional[str] = None,
            mysql_password: Optional[str] = None,
            mysql_port: Optional[str] = None,
            mysql_revocation_statements: Optional[str] = None,
            mysql_username: Optional[str] = None,
            name: Optional[str] = None,
            password_length: Optional[str] = None,
            secure_access_bastion_issuer: Optional[str] = None,
            secure_access_certificate_issuer: Optional[str] = None,
            secure_access_db_name: Optional[str] = None,
            secure_access_delay: Optional[float] = None,
            secure_access_enable: Optional[str] = None,
            secure_access_hosts: Optional[Sequence[str]] = None,
            secure_access_web: Optional[bool] = None,
            ssl: Optional[bool] = None,
            ssl_certificate: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            target_name: Optional[str] = None,
            user_ttl: Optional[str] = None) -> DynamicSecretMysql
    func GetDynamicSecretMysql(ctx *Context, name string, id IDInput, state *DynamicSecretMysqlState, opts ...ResourceOption) (*DynamicSecretMysql, error)
    public static DynamicSecretMysql Get(string name, Input<string> id, DynamicSecretMysqlState? state, CustomResourceOptions? opts = null)
    public static DynamicSecretMysql get(String name, Output<String> id, DynamicSecretMysqlState state, CustomResourceOptions options)
    resources:  _:    type: akeyless:DynamicSecretMysql    get:      id: ${id}
    import {
      to = akeyless_dynamicsecretmysql.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:
    CustomUsernameTemplate string
    Customize how temporary usernames are generated using go template
    DbServerCertificates string
    (Optional) DB server certificates
    DbServerName string
    (Optional) Server name for certificate verification
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    Description string
    Description of the object
    DynamicSecretMysqlId string
    The ID of this resource.
    EncryptionKeyName string
    Dynamic producer encryption key
    ItemCustomFields Dictionary<string, string>
    Additional custom fields to associate with the item
    MysqlCreationStatements string
    MySQL Creation Statements
    MysqlDbname string
    MySQL DB name
    MysqlHost string
    MySQL Host
    MysqlPassword string
    MySQL password
    MysqlPort string
    MySQL port
    MysqlRevocationStatements string
    MySQL Revocation Statements
    MysqlUsername string
    MySQL Username
    Name string
    Dynamic secret name
    PasswordLength string
    The length of the password to be generated
    SecureAccessBastionIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Bastion

    Deprecated: Deprecated

    SecureAccessCertificateIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    SecureAccessDbName string
    The DB name (relevant only for DB Dynamic-Secret)
    SecureAccessDelay double
    The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
    SecureAccessEnable string
    Enable/Disable secure remote access, [true/false]
    SecureAccessHosts List<string>
    Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
    SecureAccessWeb bool
    Enable Web Secure Remote Access
    Ssl bool
    Enable/Disable SSL [true/false]
    SslCertificate string
    SSL connection certificate
    Tags List<string>
    Add tags attached to this object
    TargetName string
    Target name
    UserTtl string
    User TTL
    CustomUsernameTemplate string
    Customize how temporary usernames are generated using go template
    DbServerCertificates string
    (Optional) DB server certificates
    DbServerName string
    (Optional) Server name for certificate verification
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    Description string
    Description of the object
    DynamicSecretMysqlId string
    The ID of this resource.
    EncryptionKeyName string
    Dynamic producer encryption key
    ItemCustomFields map[string]string
    Additional custom fields to associate with the item
    MysqlCreationStatements string
    MySQL Creation Statements
    MysqlDbname string
    MySQL DB name
    MysqlHost string
    MySQL Host
    MysqlPassword string
    MySQL password
    MysqlPort string
    MySQL port
    MysqlRevocationStatements string
    MySQL Revocation Statements
    MysqlUsername string
    MySQL Username
    Name string
    Dynamic secret name
    PasswordLength string
    The length of the password to be generated
    SecureAccessBastionIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Bastion

    Deprecated: Deprecated

    SecureAccessCertificateIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    SecureAccessDbName string
    The DB name (relevant only for DB Dynamic-Secret)
    SecureAccessDelay float64
    The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
    SecureAccessEnable string
    Enable/Disable secure remote access, [true/false]
    SecureAccessHosts []string
    Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
    SecureAccessWeb bool
    Enable Web Secure Remote Access
    Ssl bool
    Enable/Disable SSL [true/false]
    SslCertificate string
    SSL connection certificate
    Tags []string
    Add tags attached to this object
    TargetName string
    Target name
    UserTtl string
    User TTL
    custom_username_template string
    Customize how temporary usernames are generated using go template
    db_server_certificates string
    (Optional) DB server certificates
    db_server_name string
    (Optional) Server name for certificate verification
    delete_protection string
    Protection from accidental deletion of this object [true/false]
    description string
    Description of the object
    dynamic_secret_mysql_id string
    The ID of this resource.
    encryption_key_name string
    Dynamic producer encryption key
    item_custom_fields map(string)
    Additional custom fields to associate with the item
    mysql_creation_statements string
    MySQL Creation Statements
    mysql_dbname string
    MySQL DB name
    mysql_host string
    MySQL Host
    mysql_password string
    MySQL password
    mysql_port string
    MySQL port
    mysql_revocation_statements string
    MySQL Revocation Statements
    mysql_username string
    MySQL Username
    name string
    Dynamic secret name
    password_length string
    The length of the password to be generated
    secure_access_bastion_issuer string
    Path to the SSH Certificate Issuer for your Akeyless Bastion

    Deprecated: Deprecated

    secure_access_certificate_issuer string
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    secure_access_db_name string
    The DB name (relevant only for DB Dynamic-Secret)
    secure_access_delay number
    The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
    secure_access_enable string
    Enable/Disable secure remote access, [true/false]
    secure_access_hosts list(string)
    Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
    secure_access_web bool
    Enable Web Secure Remote Access
    ssl bool
    Enable/Disable SSL [true/false]
    ssl_certificate string
    SSL connection certificate
    tags list(string)
    Add tags attached to this object
    target_name string
    Target name
    user_ttl string
    User TTL
    customUsernameTemplate String
    Customize how temporary usernames are generated using go template
    dbServerCertificates String
    (Optional) DB server certificates
    dbServerName String
    (Optional) Server name for certificate verification
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    description String
    Description of the object
    dynamicSecretMysqlId String
    The ID of this resource.
    encryptionKeyName String
    Dynamic producer encryption key
    itemCustomFields Map<String,String>
    Additional custom fields to associate with the item
    mysqlCreationStatements String
    MySQL Creation Statements
    mysqlDbname String
    MySQL DB name
    mysqlHost String
    MySQL Host
    mysqlPassword String
    MySQL password
    mysqlPort String
    MySQL port
    mysqlRevocationStatements String
    MySQL Revocation Statements
    mysqlUsername String
    MySQL Username
    name String
    Dynamic secret name
    passwordLength String
    The length of the password to be generated
    secureAccessBastionIssuer String
    Path to the SSH Certificate Issuer for your Akeyless Bastion

    Deprecated: Deprecated

    secureAccessCertificateIssuer String
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    secureAccessDbName String
    The DB name (relevant only for DB Dynamic-Secret)
    secureAccessDelay Double
    The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
    secureAccessEnable String
    Enable/Disable secure remote access, [true/false]
    secureAccessHosts List<String>
    Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
    secureAccessWeb Boolean
    Enable Web Secure Remote Access
    ssl Boolean
    Enable/Disable SSL [true/false]
    sslCertificate String
    SSL connection certificate
    tags List<String>
    Add tags attached to this object
    targetName String
    Target name
    userTtl String
    User TTL
    customUsernameTemplate string
    Customize how temporary usernames are generated using go template
    dbServerCertificates string
    (Optional) DB server certificates
    dbServerName string
    (Optional) Server name for certificate verification
    deleteProtection string
    Protection from accidental deletion of this object [true/false]
    description string
    Description of the object
    dynamicSecretMysqlId string
    The ID of this resource.
    encryptionKeyName string
    Dynamic producer encryption key
    itemCustomFields {[key: string]: string}
    Additional custom fields to associate with the item
    mysqlCreationStatements string
    MySQL Creation Statements
    mysqlDbname string
    MySQL DB name
    mysqlHost string
    MySQL Host
    mysqlPassword string
    MySQL password
    mysqlPort string
    MySQL port
    mysqlRevocationStatements string
    MySQL Revocation Statements
    mysqlUsername string
    MySQL Username
    name string
    Dynamic secret name
    passwordLength string
    The length of the password to be generated
    secureAccessBastionIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Bastion

    Deprecated: Deprecated

    secureAccessCertificateIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    secureAccessDbName string
    The DB name (relevant only for DB Dynamic-Secret)
    secureAccessDelay number
    The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
    secureAccessEnable string
    Enable/Disable secure remote access, [true/false]
    secureAccessHosts string[]
    Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
    secureAccessWeb boolean
    Enable Web Secure Remote Access
    ssl boolean
    Enable/Disable SSL [true/false]
    sslCertificate string
    SSL connection certificate
    tags string[]
    Add tags attached to this object
    targetName string
    Target name
    userTtl string
    User TTL
    custom_username_template str
    Customize how temporary usernames are generated using go template
    db_server_certificates str
    (Optional) DB server certificates
    db_server_name str
    (Optional) Server name for certificate verification
    delete_protection str
    Protection from accidental deletion of this object [true/false]
    description str
    Description of the object
    dynamic_secret_mysql_id str
    The ID of this resource.
    encryption_key_name str
    Dynamic producer encryption key
    item_custom_fields Mapping[str, str]
    Additional custom fields to associate with the item
    mysql_creation_statements str
    MySQL Creation Statements
    mysql_dbname str
    MySQL DB name
    mysql_host str
    MySQL Host
    mysql_password str
    MySQL password
    mysql_port str
    MySQL port
    mysql_revocation_statements str
    MySQL Revocation Statements
    mysql_username str
    MySQL Username
    name str
    Dynamic secret name
    password_length str
    The length of the password to be generated
    secure_access_bastion_issuer str
    Path to the SSH Certificate Issuer for your Akeyless Bastion

    Deprecated: Deprecated

    secure_access_certificate_issuer str
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    secure_access_db_name str
    The DB name (relevant only for DB Dynamic-Secret)
    secure_access_delay float
    The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
    secure_access_enable str
    Enable/Disable secure remote access, [true/false]
    secure_access_hosts Sequence[str]
    Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
    secure_access_web bool
    Enable Web Secure Remote Access
    ssl bool
    Enable/Disable SSL [true/false]
    ssl_certificate str
    SSL connection certificate
    tags Sequence[str]
    Add tags attached to this object
    target_name str
    Target name
    user_ttl str
    User TTL
    customUsernameTemplate String
    Customize how temporary usernames are generated using go template
    dbServerCertificates String
    (Optional) DB server certificates
    dbServerName String
    (Optional) Server name for certificate verification
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    description String
    Description of the object
    dynamicSecretMysqlId String
    The ID of this resource.
    encryptionKeyName String
    Dynamic producer encryption key
    itemCustomFields Map<String>
    Additional custom fields to associate with the item
    mysqlCreationStatements String
    MySQL Creation Statements
    mysqlDbname String
    MySQL DB name
    mysqlHost String
    MySQL Host
    mysqlPassword String
    MySQL password
    mysqlPort String
    MySQL port
    mysqlRevocationStatements String
    MySQL Revocation Statements
    mysqlUsername String
    MySQL Username
    name String
    Dynamic secret name
    passwordLength String
    The length of the password to be generated
    secureAccessBastionIssuer String
    Path to the SSH Certificate Issuer for your Akeyless Bastion

    Deprecated: Deprecated

    secureAccessCertificateIssuer String
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    secureAccessDbName String
    The DB name (relevant only for DB Dynamic-Secret)
    secureAccessDelay Number
    The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
    secureAccessEnable String
    Enable/Disable secure remote access, [true/false]
    secureAccessHosts List<String>
    Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
    secureAccessWeb Boolean
    Enable Web Secure Remote Access
    ssl Boolean
    Enable/Disable SSL [true/false]
    sslCertificate String
    SSL connection certificate
    tags List<String>
    Add tags attached to this object
    targetName String
    Target name
    userTtl String
    User TTL

    Package Details

    Repository
    akeyless akeyless-community/terraform-provider-akeyless
    License
    Notes
    This Pulumi package is based on the akeyless Terraform Provider.
    Viewing docs for akeyless 2.0.1
    published on Monday, Apr 27, 2026 by akeyless-community
      Try Pulumi Cloud free. Your team will thank you.