published on Monday, Apr 27, 2026 by akeyless-community
published on Monday, Apr 27, 2026 by akeyless-community
Mongo DB dynamic secret resource
Create DynamicSecretMongodb Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DynamicSecretMongodb(name: string, args?: DynamicSecretMongodbArgs, opts?: CustomResourceOptions);@overload
def DynamicSecretMongodb(resource_name: str,
args: Optional[DynamicSecretMongodbArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def DynamicSecretMongodb(resource_name: str,
opts: Optional[ResourceOptions] = None,
custom_username_template: Optional[str] = None,
delete_protection: Optional[str] = None,
description: Optional[str] = None,
dynamic_secret_mongodb_id: Optional[str] = None,
encryption_key_name: Optional[str] = None,
item_custom_fields: Optional[Mapping[str, str]] = None,
mongodb_atlas_api_private_key: Optional[str] = None,
mongodb_atlas_api_public_key: Optional[str] = None,
mongodb_atlas_project_id: Optional[str] = None,
mongodb_custom_data: Optional[str] = None,
mongodb_default_auth_db: Optional[str] = None,
mongodb_host_port: Optional[str] = None,
mongodb_name: Optional[str] = None,
mongodb_password: Optional[str] = None,
mongodb_roles: Optional[str] = None,
mongodb_scopes: Optional[str] = None,
mongodb_server_uri: Optional[str] = None,
mongodb_uri_options: Optional[str] = None,
mongodb_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,
tags: Optional[Sequence[str]] = None,
target_name: Optional[str] = None,
user_ttl: Optional[str] = None)func NewDynamicSecretMongodb(ctx *Context, name string, args *DynamicSecretMongodbArgs, opts ...ResourceOption) (*DynamicSecretMongodb, error)public DynamicSecretMongodb(string name, DynamicSecretMongodbArgs? args = null, CustomResourceOptions? opts = null)
public DynamicSecretMongodb(String name, DynamicSecretMongodbArgs args)
public DynamicSecretMongodb(String name, DynamicSecretMongodbArgs args, CustomResourceOptions options)
type: akeyless:DynamicSecretMongodb
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 DynamicSecretMongodbArgs
- 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 DynamicSecretMongodbArgs
- 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 DynamicSecretMongodbArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DynamicSecretMongodbArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DynamicSecretMongodbArgs
- 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 dynamicSecretMongodbResource = new Akeyless.DynamicSecretMongodb("dynamicSecretMongodbResource", new()
{
CustomUsernameTemplate = "string",
DeleteProtection = "string",
Description = "string",
DynamicSecretMongodbId = "string",
EncryptionKeyName = "string",
ItemCustomFields =
{
{ "string", "string" },
},
MongodbAtlasApiPrivateKey = "string",
MongodbAtlasApiPublicKey = "string",
MongodbAtlasProjectId = "string",
MongodbCustomData = "string",
MongodbDefaultAuthDb = "string",
MongodbHostPort = "string",
MongodbName = "string",
MongodbPassword = "string",
MongodbRoles = "string",
MongodbScopes = "string",
MongodbServerUri = "string",
MongodbUriOptions = "string",
MongodbUsername = "string",
Name = "string",
PasswordLength = "string",
SecureAccessCertificateIssuer = "string",
SecureAccessDbName = "string",
SecureAccessDelay = 0,
SecureAccessEnable = "string",
SecureAccessHosts = new[]
{
"string",
},
SecureAccessWeb = false,
Tags = new[]
{
"string",
},
TargetName = "string",
UserTtl = "string",
});
example, err := akeyless.NewDynamicSecretMongodb(ctx, "dynamicSecretMongodbResource", &akeyless.DynamicSecretMongodbArgs{
CustomUsernameTemplate: pulumi.String("string"),
DeleteProtection: pulumi.String("string"),
Description: pulumi.String("string"),
DynamicSecretMongodbId: pulumi.String("string"),
EncryptionKeyName: pulumi.String("string"),
ItemCustomFields: pulumi.StringMap{
"string": pulumi.String("string"),
},
MongodbAtlasApiPrivateKey: pulumi.String("string"),
MongodbAtlasApiPublicKey: pulumi.String("string"),
MongodbAtlasProjectId: pulumi.String("string"),
MongodbCustomData: pulumi.String("string"),
MongodbDefaultAuthDb: pulumi.String("string"),
MongodbHostPort: pulumi.String("string"),
MongodbName: pulumi.String("string"),
MongodbPassword: pulumi.String("string"),
MongodbRoles: pulumi.String("string"),
MongodbScopes: pulumi.String("string"),
MongodbServerUri: pulumi.String("string"),
MongodbUriOptions: pulumi.String("string"),
MongodbUsername: 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),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
TargetName: pulumi.String("string"),
UserTtl: pulumi.String("string"),
})
var dynamicSecretMongodbResource = new DynamicSecretMongodb("dynamicSecretMongodbResource", DynamicSecretMongodbArgs.builder()
.customUsernameTemplate("string")
.deleteProtection("string")
.description("string")
.dynamicSecretMongodbId("string")
.encryptionKeyName("string")
.itemCustomFields(Map.of("string", "string"))
.mongodbAtlasApiPrivateKey("string")
.mongodbAtlasApiPublicKey("string")
.mongodbAtlasProjectId("string")
.mongodbCustomData("string")
.mongodbDefaultAuthDb("string")
.mongodbHostPort("string")
.mongodbName("string")
.mongodbPassword("string")
.mongodbRoles("string")
.mongodbScopes("string")
.mongodbServerUri("string")
.mongodbUriOptions("string")
.mongodbUsername("string")
.name("string")
.passwordLength("string")
.secureAccessCertificateIssuer("string")
.secureAccessDbName("string")
.secureAccessDelay(0.0)
.secureAccessEnable("string")
.secureAccessHosts("string")
.secureAccessWeb(false)
.tags("string")
.targetName("string")
.userTtl("string")
.build());
dynamic_secret_mongodb_resource = akeyless.DynamicSecretMongodb("dynamicSecretMongodbResource",
custom_username_template="string",
delete_protection="string",
description="string",
dynamic_secret_mongodb_id="string",
encryption_key_name="string",
item_custom_fields={
"string": "string",
},
mongodb_atlas_api_private_key="string",
mongodb_atlas_api_public_key="string",
mongodb_atlas_project_id="string",
mongodb_custom_data="string",
mongodb_default_auth_db="string",
mongodb_host_port="string",
mongodb_name="string",
mongodb_password="string",
mongodb_roles="string",
mongodb_scopes="string",
mongodb_server_uri="string",
mongodb_uri_options="string",
mongodb_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,
tags=["string"],
target_name="string",
user_ttl="string")
const dynamicSecretMongodbResource = new akeyless.DynamicSecretMongodb("dynamicSecretMongodbResource", {
customUsernameTemplate: "string",
deleteProtection: "string",
description: "string",
dynamicSecretMongodbId: "string",
encryptionKeyName: "string",
itemCustomFields: {
string: "string",
},
mongodbAtlasApiPrivateKey: "string",
mongodbAtlasApiPublicKey: "string",
mongodbAtlasProjectId: "string",
mongodbCustomData: "string",
mongodbDefaultAuthDb: "string",
mongodbHostPort: "string",
mongodbName: "string",
mongodbPassword: "string",
mongodbRoles: "string",
mongodbScopes: "string",
mongodbServerUri: "string",
mongodbUriOptions: "string",
mongodbUsername: "string",
name: "string",
passwordLength: "string",
secureAccessCertificateIssuer: "string",
secureAccessDbName: "string",
secureAccessDelay: 0,
secureAccessEnable: "string",
secureAccessHosts: ["string"],
secureAccessWeb: false,
tags: ["string"],
targetName: "string",
userTtl: "string",
});
type: akeyless:DynamicSecretMongodb
properties:
customUsernameTemplate: string
deleteProtection: string
description: string
dynamicSecretMongodbId: string
encryptionKeyName: string
itemCustomFields:
string: string
mongodbAtlasApiPrivateKey: string
mongodbAtlasApiPublicKey: string
mongodbAtlasProjectId: string
mongodbCustomData: string
mongodbDefaultAuthDb: string
mongodbHostPort: string
mongodbName: string
mongodbPassword: string
mongodbRoles: string
mongodbScopes: string
mongodbServerUri: string
mongodbUriOptions: string
mongodbUsername: string
name: string
passwordLength: string
secureAccessCertificateIssuer: string
secureAccessDbName: string
secureAccessDelay: 0
secureAccessEnable: string
secureAccessHosts:
- string
secureAccessWeb: false
tags:
- string
targetName: string
userTtl: string
DynamicSecretMongodb 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 DynamicSecretMongodb resource accepts the following input properties:
- Custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- Delete
Protection string - Protection from accidental deletion of this object [true/false]
- Description string
- Description of the object
- Dynamic
Secret stringMongodb Id - The ID of this resource.
- Encryption
Key stringName - Encrypt producer with following key
- Item
Custom Dictionary<string, string>Fields - Additional custom fields to associate with the item
- Mongodb
Atlas stringApi Private Key - MongoDB Atlas private key
- Mongodb
Atlas stringApi Public Key - MongoDB Atlas public key
- Mongodb
Atlas stringProject Id - MongoDB Atlas project ID
- Mongodb
Custom stringData - MongoDB custom data
- Mongodb
Default stringAuth Db - MongoDB server default authentication database
- Mongodb
Host stringPort - MongoDB server host and port
- Mongodb
Name string - MongoDB Name
- Mongodb
Password string - MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters
- Mongodb
Roles string - MongoDB Roles
- Mongodb
Scopes string - MongoDB Scopes (Atlas only)
- Mongodb
Server stringUri - MongoDB server URI
- Mongodb
Uri stringOptions - MongoDB server URI options
- Mongodb
Username string - MongoDB server username
- Name string
- Dynamic secret name
- Password
Length string - The length of the password to be generated
- Secure
Access stringBastion Issuer - Path to the SSH Certificate Issuer for your Akeyless Bastion
- Secure
Access stringCertificate Issuer - Path to the SSH Certificate Issuer for your Akeyless Secure Access
- Secure
Access stringDb Name - The DB name
- Secure
Access doubleDelay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- Secure
Access stringEnable - Enable/Disable secure remote access, [true/false]
- Secure
Access List<string>Hosts - Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
- Secure
Access boolWeb - Enable Web Secure Remote Access
- List<string>
- Add tags attached to this object
- Target
Name string - Target name
- User
Ttl string - User TTL (e.g. 60s, 60m, 60h)
- Custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- Delete
Protection string - Protection from accidental deletion of this object [true/false]
- Description string
- Description of the object
- Dynamic
Secret stringMongodb Id - The ID of this resource.
- Encryption
Key stringName - Encrypt producer with following key
- Item
Custom map[string]stringFields - Additional custom fields to associate with the item
- Mongodb
Atlas stringApi Private Key - MongoDB Atlas private key
- Mongodb
Atlas stringApi Public Key - MongoDB Atlas public key
- Mongodb
Atlas stringProject Id - MongoDB Atlas project ID
- Mongodb
Custom stringData - MongoDB custom data
- Mongodb
Default stringAuth Db - MongoDB server default authentication database
- Mongodb
Host stringPort - MongoDB server host and port
- Mongodb
Name string - MongoDB Name
- Mongodb
Password string - MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters
- Mongodb
Roles string - MongoDB Roles
- Mongodb
Scopes string - MongoDB Scopes (Atlas only)
- Mongodb
Server stringUri - MongoDB server URI
- Mongodb
Uri stringOptions - MongoDB server URI options
- Mongodb
Username string - MongoDB server username
- Name string
- Dynamic secret name
- Password
Length string - The length of the password to be generated
- Secure
Access stringBastion Issuer - Path to the SSH Certificate Issuer for your Akeyless Bastion
- Secure
Access stringCertificate Issuer - Path to the SSH Certificate Issuer for your Akeyless Secure Access
- Secure
Access stringDb Name - The DB name
- Secure
Access float64Delay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- Secure
Access stringEnable - Enable/Disable secure remote access, [true/false]
- Secure
Access []stringHosts - Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
- Secure
Access boolWeb - Enable Web Secure Remote Access
- []string
- Add tags attached to this object
- Target
Name string - Target name
- User
Ttl string - User TTL (e.g. 60s, 60m, 60h)
- custom
Username StringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection String - Protection from accidental deletion of this object [true/false]
- description String
- Description of the object
- dynamic
Secret StringMongodb Id - The ID of this resource.
- encryption
Key StringName - Encrypt producer with following key
- item
Custom Map<String,String>Fields - Additional custom fields to associate with the item
- mongodb
Atlas StringApi Private Key - MongoDB Atlas private key
- mongodb
Atlas StringApi Public Key - MongoDB Atlas public key
- mongodb
Atlas StringProject Id - MongoDB Atlas project ID
- mongodb
Custom StringData - MongoDB custom data
- mongodb
Default StringAuth Db - MongoDB server default authentication database
- mongodb
Host StringPort - MongoDB server host and port
- mongodb
Name String - MongoDB Name
- mongodb
Password String - MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters
- mongodb
Roles String - MongoDB Roles
- mongodb
Scopes String - MongoDB Scopes (Atlas only)
- mongodb
Server StringUri - MongoDB server URI
- mongodb
Uri StringOptions - MongoDB server URI options
- mongodb
Username String - MongoDB server username
- name String
- Dynamic secret name
- password
Length String - The length of the password to be generated
- secure
Access StringBastion Issuer - Path to the SSH Certificate Issuer for your Akeyless Bastion
- secure
Access StringCertificate Issuer - Path to the SSH Certificate Issuer for your Akeyless Secure Access
- secure
Access StringDb Name - The DB name
- secure
Access DoubleDelay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- secure
Access StringEnable - Enable/Disable secure remote access, [true/false]
- secure
Access List<String>Hosts - Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
- secure
Access BooleanWeb - Enable Web Secure Remote Access
- List<String>
- Add tags attached to this object
- target
Name String - Target name
- user
Ttl String - User TTL (e.g. 60s, 60m, 60h)
- custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection string - Protection from accidental deletion of this object [true/false]
- description string
- Description of the object
- dynamic
Secret stringMongodb Id - The ID of this resource.
- encryption
Key stringName - Encrypt producer with following key
- item
Custom {[key: string]: string}Fields - Additional custom fields to associate with the item
- mongodb
Atlas stringApi Private Key - MongoDB Atlas private key
- mongodb
Atlas stringApi Public Key - MongoDB Atlas public key
- mongodb
Atlas stringProject Id - MongoDB Atlas project ID
- mongodb
Custom stringData - MongoDB custom data
- mongodb
Default stringAuth Db - MongoDB server default authentication database
- mongodb
Host stringPort - MongoDB server host and port
- mongodb
Name string - MongoDB Name
- mongodb
Password string - MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters
- mongodb
Roles string - MongoDB Roles
- mongodb
Scopes string - MongoDB Scopes (Atlas only)
- mongodb
Server stringUri - MongoDB server URI
- mongodb
Uri stringOptions - MongoDB server URI options
- mongodb
Username string - MongoDB server username
- name string
- Dynamic secret name
- password
Length string - The length of the password to be generated
- secure
Access stringBastion Issuer - Path to the SSH Certificate Issuer for your Akeyless Bastion
- secure
Access stringCertificate Issuer - Path to the SSH Certificate Issuer for your Akeyless Secure Access
- secure
Access stringDb Name - The DB name
- secure
Access numberDelay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- secure
Access stringEnable - Enable/Disable secure remote access, [true/false]
- secure
Access string[]Hosts - Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
- secure
Access booleanWeb - Enable Web Secure Remote Access
- string[]
- Add tags attached to this object
- target
Name string - Target name
- user
Ttl string - User TTL (e.g. 60s, 60m, 60h)
- custom_
username_ strtemplate - Customize how temporary usernames are generated using go template
- delete_
protection str - Protection from accidental deletion of this object [true/false]
- description str
- Description of the object
- dynamic_
secret_ strmongodb_ id - The ID of this resource.
- encryption_
key_ strname - Encrypt producer with following key
- item_
custom_ Mapping[str, str]fields - Additional custom fields to associate with the item
- mongodb_
atlas_ strapi_ private_ key - MongoDB Atlas private key
- mongodb_
atlas_ strapi_ public_ key - MongoDB Atlas public key
- mongodb_
atlas_ strproject_ id - MongoDB Atlas project ID
- mongodb_
custom_ strdata - MongoDB custom data
- mongodb_
default_ strauth_ db - MongoDB server default authentication database
- mongodb_
host_ strport - MongoDB server host and port
- mongodb_
name str - MongoDB Name
- mongodb_
password str - MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters
- mongodb_
roles str - MongoDB Roles
- mongodb_
scopes str - MongoDB Scopes (Atlas only)
- mongodb_
server_ struri - MongoDB server URI
- mongodb_
uri_ stroptions - MongoDB server URI options
- mongodb_
username str - MongoDB server username
- name str
- Dynamic secret name
- password_
length str - The length of the password to be generated
- secure_
access_ strbastion_ issuer - Path to the SSH Certificate Issuer for your Akeyless Bastion
- secure_
access_ strcertificate_ issuer - Path to the SSH Certificate Issuer for your Akeyless Secure Access
- secure_
access_ strdb_ name - The DB name
- secure_
access_ floatdelay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- secure_
access_ strenable - Enable/Disable secure remote access, [true/false]
- secure_
access_ Sequence[str]hosts - Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
- secure_
access_ boolweb - Enable Web Secure Remote Access
- Sequence[str]
- Add tags attached to this object
- target_
name str - Target name
- user_
ttl str - User TTL (e.g. 60s, 60m, 60h)
- custom
Username StringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection String - Protection from accidental deletion of this object [true/false]
- description String
- Description of the object
- dynamic
Secret StringMongodb Id - The ID of this resource.
- encryption
Key StringName - Encrypt producer with following key
- item
Custom Map<String>Fields - Additional custom fields to associate with the item
- mongodb
Atlas StringApi Private Key - MongoDB Atlas private key
- mongodb
Atlas StringApi Public Key - MongoDB Atlas public key
- mongodb
Atlas StringProject Id - MongoDB Atlas project ID
- mongodb
Custom StringData - MongoDB custom data
- mongodb
Default StringAuth Db - MongoDB server default authentication database
- mongodb
Host StringPort - MongoDB server host and port
- mongodb
Name String - MongoDB Name
- mongodb
Password String - MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters
- mongodb
Roles String - MongoDB Roles
- mongodb
Scopes String - MongoDB Scopes (Atlas only)
- mongodb
Server StringUri - MongoDB server URI
- mongodb
Uri StringOptions - MongoDB server URI options
- mongodb
Username String - MongoDB server username
- name String
- Dynamic secret name
- password
Length String - The length of the password to be generated
- secure
Access StringBastion Issuer - Path to the SSH Certificate Issuer for your Akeyless Bastion
- secure
Access StringCertificate Issuer - Path to the SSH Certificate Issuer for your Akeyless Secure Access
- secure
Access StringDb Name - The DB name
- secure
Access NumberDelay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- secure
Access StringEnable - Enable/Disable secure remote access, [true/false]
- secure
Access List<String>Hosts - Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
- secure
Access BooleanWeb - Enable Web Secure Remote Access
- List<String>
- Add tags attached to this object
- target
Name String - Target name
- user
Ttl String - User TTL (e.g. 60s, 60m, 60h)
Outputs
All input properties are implicitly available as output properties. Additionally, the DynamicSecretMongodb 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 str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DynamicSecretMongodb Resource
Get an existing DynamicSecretMongodb 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?: DynamicSecretMongodbState, opts?: CustomResourceOptions): DynamicSecretMongodb@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
custom_username_template: Optional[str] = None,
delete_protection: Optional[str] = None,
description: Optional[str] = None,
dynamic_secret_mongodb_id: Optional[str] = None,
encryption_key_name: Optional[str] = None,
item_custom_fields: Optional[Mapping[str, str]] = None,
mongodb_atlas_api_private_key: Optional[str] = None,
mongodb_atlas_api_public_key: Optional[str] = None,
mongodb_atlas_project_id: Optional[str] = None,
mongodb_custom_data: Optional[str] = None,
mongodb_default_auth_db: Optional[str] = None,
mongodb_host_port: Optional[str] = None,
mongodb_name: Optional[str] = None,
mongodb_password: Optional[str] = None,
mongodb_roles: Optional[str] = None,
mongodb_scopes: Optional[str] = None,
mongodb_server_uri: Optional[str] = None,
mongodb_uri_options: Optional[str] = None,
mongodb_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,
tags: Optional[Sequence[str]] = None,
target_name: Optional[str] = None,
user_ttl: Optional[str] = None) -> DynamicSecretMongodbfunc GetDynamicSecretMongodb(ctx *Context, name string, id IDInput, state *DynamicSecretMongodbState, opts ...ResourceOption) (*DynamicSecretMongodb, error)public static DynamicSecretMongodb Get(string name, Input<string> id, DynamicSecretMongodbState? state, CustomResourceOptions? opts = null)public static DynamicSecretMongodb get(String name, Output<String> id, DynamicSecretMongodbState state, CustomResourceOptions options)resources: _: type: akeyless:DynamicSecretMongodb 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.
- Custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- Delete
Protection string - Protection from accidental deletion of this object [true/false]
- Description string
- Description of the object
- Dynamic
Secret stringMongodb Id - The ID of this resource.
- Encryption
Key stringName - Encrypt producer with following key
- Item
Custom Dictionary<string, string>Fields - Additional custom fields to associate with the item
- Mongodb
Atlas stringApi Private Key - MongoDB Atlas private key
- Mongodb
Atlas stringApi Public Key - MongoDB Atlas public key
- Mongodb
Atlas stringProject Id - MongoDB Atlas project ID
- Mongodb
Custom stringData - MongoDB custom data
- Mongodb
Default stringAuth Db - MongoDB server default authentication database
- Mongodb
Host stringPort - MongoDB server host and port
- Mongodb
Name string - MongoDB Name
- Mongodb
Password string - MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters
- Mongodb
Roles string - MongoDB Roles
- Mongodb
Scopes string - MongoDB Scopes (Atlas only)
- Mongodb
Server stringUri - MongoDB server URI
- Mongodb
Uri stringOptions - MongoDB server URI options
- Mongodb
Username string - MongoDB server username
- Name string
- Dynamic secret name
- Password
Length string - The length of the password to be generated
- Secure
Access stringBastion Issuer - Path to the SSH Certificate Issuer for your Akeyless Bastion
- Secure
Access stringCertificate Issuer - Path to the SSH Certificate Issuer for your Akeyless Secure Access
- Secure
Access stringDb Name - The DB name
- Secure
Access doubleDelay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- Secure
Access stringEnable - Enable/Disable secure remote access, [true/false]
- Secure
Access List<string>Hosts - Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
- Secure
Access boolWeb - Enable Web Secure Remote Access
- List<string>
- Add tags attached to this object
- Target
Name string - Target name
- User
Ttl string - User TTL (e.g. 60s, 60m, 60h)
- Custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- Delete
Protection string - Protection from accidental deletion of this object [true/false]
- Description string
- Description of the object
- Dynamic
Secret stringMongodb Id - The ID of this resource.
- Encryption
Key stringName - Encrypt producer with following key
- Item
Custom map[string]stringFields - Additional custom fields to associate with the item
- Mongodb
Atlas stringApi Private Key - MongoDB Atlas private key
- Mongodb
Atlas stringApi Public Key - MongoDB Atlas public key
- Mongodb
Atlas stringProject Id - MongoDB Atlas project ID
- Mongodb
Custom stringData - MongoDB custom data
- Mongodb
Default stringAuth Db - MongoDB server default authentication database
- Mongodb
Host stringPort - MongoDB server host and port
- Mongodb
Name string - MongoDB Name
- Mongodb
Password string - MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters
- Mongodb
Roles string - MongoDB Roles
- Mongodb
Scopes string - MongoDB Scopes (Atlas only)
- Mongodb
Server stringUri - MongoDB server URI
- Mongodb
Uri stringOptions - MongoDB server URI options
- Mongodb
Username string - MongoDB server username
- Name string
- Dynamic secret name
- Password
Length string - The length of the password to be generated
- Secure
Access stringBastion Issuer - Path to the SSH Certificate Issuer for your Akeyless Bastion
- Secure
Access stringCertificate Issuer - Path to the SSH Certificate Issuer for your Akeyless Secure Access
- Secure
Access stringDb Name - The DB name
- Secure
Access float64Delay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- Secure
Access stringEnable - Enable/Disable secure remote access, [true/false]
- Secure
Access []stringHosts - Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
- Secure
Access boolWeb - Enable Web Secure Remote Access
- []string
- Add tags attached to this object
- Target
Name string - Target name
- User
Ttl string - User TTL (e.g. 60s, 60m, 60h)
- custom
Username StringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection String - Protection from accidental deletion of this object [true/false]
- description String
- Description of the object
- dynamic
Secret StringMongodb Id - The ID of this resource.
- encryption
Key StringName - Encrypt producer with following key
- item
Custom Map<String,String>Fields - Additional custom fields to associate with the item
- mongodb
Atlas StringApi Private Key - MongoDB Atlas private key
- mongodb
Atlas StringApi Public Key - MongoDB Atlas public key
- mongodb
Atlas StringProject Id - MongoDB Atlas project ID
- mongodb
Custom StringData - MongoDB custom data
- mongodb
Default StringAuth Db - MongoDB server default authentication database
- mongodb
Host StringPort - MongoDB server host and port
- mongodb
Name String - MongoDB Name
- mongodb
Password String - MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters
- mongodb
Roles String - MongoDB Roles
- mongodb
Scopes String - MongoDB Scopes (Atlas only)
- mongodb
Server StringUri - MongoDB server URI
- mongodb
Uri StringOptions - MongoDB server URI options
- mongodb
Username String - MongoDB server username
- name String
- Dynamic secret name
- password
Length String - The length of the password to be generated
- secure
Access StringBastion Issuer - Path to the SSH Certificate Issuer for your Akeyless Bastion
- secure
Access StringCertificate Issuer - Path to the SSH Certificate Issuer for your Akeyless Secure Access
- secure
Access StringDb Name - The DB name
- secure
Access DoubleDelay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- secure
Access StringEnable - Enable/Disable secure remote access, [true/false]
- secure
Access List<String>Hosts - Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
- secure
Access BooleanWeb - Enable Web Secure Remote Access
- List<String>
- Add tags attached to this object
- target
Name String - Target name
- user
Ttl String - User TTL (e.g. 60s, 60m, 60h)
- custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection string - Protection from accidental deletion of this object [true/false]
- description string
- Description of the object
- dynamic
Secret stringMongodb Id - The ID of this resource.
- encryption
Key stringName - Encrypt producer with following key
- item
Custom {[key: string]: string}Fields - Additional custom fields to associate with the item
- mongodb
Atlas stringApi Private Key - MongoDB Atlas private key
- mongodb
Atlas stringApi Public Key - MongoDB Atlas public key
- mongodb
Atlas stringProject Id - MongoDB Atlas project ID
- mongodb
Custom stringData - MongoDB custom data
- mongodb
Default stringAuth Db - MongoDB server default authentication database
- mongodb
Host stringPort - MongoDB server host and port
- mongodb
Name string - MongoDB Name
- mongodb
Password string - MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters
- mongodb
Roles string - MongoDB Roles
- mongodb
Scopes string - MongoDB Scopes (Atlas only)
- mongodb
Server stringUri - MongoDB server URI
- mongodb
Uri stringOptions - MongoDB server URI options
- mongodb
Username string - MongoDB server username
- name string
- Dynamic secret name
- password
Length string - The length of the password to be generated
- secure
Access stringBastion Issuer - Path to the SSH Certificate Issuer for your Akeyless Bastion
- secure
Access stringCertificate Issuer - Path to the SSH Certificate Issuer for your Akeyless Secure Access
- secure
Access stringDb Name - The DB name
- secure
Access numberDelay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- secure
Access stringEnable - Enable/Disable secure remote access, [true/false]
- secure
Access string[]Hosts - Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
- secure
Access booleanWeb - Enable Web Secure Remote Access
- string[]
- Add tags attached to this object
- target
Name string - Target name
- user
Ttl string - User TTL (e.g. 60s, 60m, 60h)
- custom_
username_ strtemplate - Customize how temporary usernames are generated using go template
- delete_
protection str - Protection from accidental deletion of this object [true/false]
- description str
- Description of the object
- dynamic_
secret_ strmongodb_ id - The ID of this resource.
- encryption_
key_ strname - Encrypt producer with following key
- item_
custom_ Mapping[str, str]fields - Additional custom fields to associate with the item
- mongodb_
atlas_ strapi_ private_ key - MongoDB Atlas private key
- mongodb_
atlas_ strapi_ public_ key - MongoDB Atlas public key
- mongodb_
atlas_ strproject_ id - MongoDB Atlas project ID
- mongodb_
custom_ strdata - MongoDB custom data
- mongodb_
default_ strauth_ db - MongoDB server default authentication database
- mongodb_
host_ strport - MongoDB server host and port
- mongodb_
name str - MongoDB Name
- mongodb_
password str - MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters
- mongodb_
roles str - MongoDB Roles
- mongodb_
scopes str - MongoDB Scopes (Atlas only)
- mongodb_
server_ struri - MongoDB server URI
- mongodb_
uri_ stroptions - MongoDB server URI options
- mongodb_
username str - MongoDB server username
- name str
- Dynamic secret name
- password_
length str - The length of the password to be generated
- secure_
access_ strbastion_ issuer - Path to the SSH Certificate Issuer for your Akeyless Bastion
- secure_
access_ strcertificate_ issuer - Path to the SSH Certificate Issuer for your Akeyless Secure Access
- secure_
access_ strdb_ name - The DB name
- secure_
access_ floatdelay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- secure_
access_ strenable - Enable/Disable secure remote access, [true/false]
- secure_
access_ Sequence[str]hosts - Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
- secure_
access_ boolweb - Enable Web Secure Remote Access
- Sequence[str]
- Add tags attached to this object
- target_
name str - Target name
- user_
ttl str - User TTL (e.g. 60s, 60m, 60h)
- custom
Username StringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection String - Protection from accidental deletion of this object [true/false]
- description String
- Description of the object
- dynamic
Secret StringMongodb Id - The ID of this resource.
- encryption
Key StringName - Encrypt producer with following key
- item
Custom Map<String>Fields - Additional custom fields to associate with the item
- mongodb
Atlas StringApi Private Key - MongoDB Atlas private key
- mongodb
Atlas StringApi Public Key - MongoDB Atlas public key
- mongodb
Atlas StringProject Id - MongoDB Atlas project ID
- mongodb
Custom StringData - MongoDB custom data
- mongodb
Default StringAuth Db - MongoDB server default authentication database
- mongodb
Host StringPort - MongoDB server host and port
- mongodb
Name String - MongoDB Name
- mongodb
Password String - MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters
- mongodb
Roles String - MongoDB Roles
- mongodb
Scopes String - MongoDB Scopes (Atlas only)
- mongodb
Server StringUri - MongoDB server URI
- mongodb
Uri StringOptions - MongoDB server URI options
- mongodb
Username String - MongoDB server username
- name String
- Dynamic secret name
- password
Length String - The length of the password to be generated
- secure
Access StringBastion Issuer - Path to the SSH Certificate Issuer for your Akeyless Bastion
- secure
Access StringCertificate Issuer - Path to the SSH Certificate Issuer for your Akeyless Secure Access
- secure
Access StringDb Name - The DB name
- secure
Access NumberDelay - The delay duration, in seconds, to wait after generating just-in-time credentials. Accepted range: 0-120 seconds
- secure
Access StringEnable - Enable/Disable secure remote access, [true/false]
- secure
Access List<String>Hosts - Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
- secure
Access BooleanWeb - Enable Web Secure Remote Access
- List<String>
- Add tags attached to this object
- target
Name String - Target name
- user
Ttl String - User TTL (e.g. 60s, 60m, 60h)
Package Details
- Repository
- akeyless akeyless-community/terraform-provider-akeyless
- License
- Notes
- This Pulumi package is based on the
akeylessTerraform Provider.
published on Monday, Apr 27, 2026 by akeyless-community
