published on Monday, Apr 27, 2026 by akeyless-community
published on Monday, Apr 27, 2026 by akeyless-community
DB Target resource
Create TargetDb Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TargetDb(name: string, args: TargetDbArgs, opts?: CustomResourceOptions);@overload
def TargetDb(resource_name: str,
args: TargetDbArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TargetDb(resource_name: str,
opts: Optional[ResourceOptions] = None,
db_type: Optional[str] = None,
mongodb_atlas_api_public_key: Optional[str] = None,
mongodb_default_auth_db: Optional[str] = None,
cloud_service_provider: Optional[str] = None,
cluster_mode: Optional[bool] = None,
connection_type: Optional[str] = None,
db_name: Optional[str] = None,
db_server_certificates: Optional[str] = None,
db_server_name: Optional[str] = None,
azure_client_secret: Optional[str] = None,
description: Optional[str] = None,
mongodb_uri_options: Optional[str] = None,
key: Optional[str] = None,
max_versions: Optional[str] = None,
mongodb_atlas: Optional[bool] = None,
mongodb_atlas_api_private_key: Optional[str] = None,
azure_client_id: Optional[str] = None,
azure_tenant_id: Optional[str] = None,
mongodb_atlas_project_id: Optional[str] = None,
host: Optional[str] = None,
name: Optional[str] = None,
oracle_service_name: Optional[str] = None,
oracle_wallet_login_type: Optional[str] = None,
oracle_wallet_p12_file_data: Optional[str] = None,
oracle_wallet_sso_file_data: Optional[str] = None,
parent_target_name: Optional[str] = None,
port: Optional[str] = None,
pwd: Optional[str] = None,
snowflake_account: Optional[str] = None,
snowflake_api_private_key: Optional[str] = None,
snowflake_api_private_key_password: Optional[str] = None,
ssl: Optional[bool] = None,
ssl_certificate: Optional[str] = None,
target_db_id: Optional[str] = None,
user_name: Optional[str] = None)func NewTargetDb(ctx *Context, name string, args TargetDbArgs, opts ...ResourceOption) (*TargetDb, error)public TargetDb(string name, TargetDbArgs args, CustomResourceOptions? opts = null)
public TargetDb(String name, TargetDbArgs args)
public TargetDb(String name, TargetDbArgs args, CustomResourceOptions options)
type: akeyless:TargetDb
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "akeyless_targetdb" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args TargetDbArgs
- 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 TargetDbArgs
- 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 TargetDbArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TargetDbArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TargetDbArgs
- 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 targetDbResource = new Akeyless.TargetDb("targetDbResource", new()
{
DbType = "string",
MongodbAtlasApiPublicKey = "string",
MongodbDefaultAuthDb = "string",
CloudServiceProvider = "string",
ClusterMode = false,
ConnectionType = "string",
DbName = "string",
DbServerCertificates = "string",
DbServerName = "string",
AzureClientSecret = "string",
Description = "string",
MongodbUriOptions = "string",
Key = "string",
MaxVersions = "string",
MongodbAtlas = false,
MongodbAtlasApiPrivateKey = "string",
AzureClientId = "string",
AzureTenantId = "string",
MongodbAtlasProjectId = "string",
Host = "string",
Name = "string",
OracleServiceName = "string",
OracleWalletLoginType = "string",
OracleWalletP12FileData = "string",
OracleWalletSsoFileData = "string",
ParentTargetName = "string",
Port = "string",
Pwd = "string",
SnowflakeAccount = "string",
SnowflakeApiPrivateKey = "string",
SnowflakeApiPrivateKeyPassword = "string",
Ssl = false,
SslCertificate = "string",
TargetDbId = "string",
UserName = "string",
});
example, err := akeyless.NewTargetDb(ctx, "targetDbResource", &akeyless.TargetDbArgs{
DbType: pulumi.String("string"),
MongodbAtlasApiPublicKey: pulumi.String("string"),
MongodbDefaultAuthDb: pulumi.String("string"),
CloudServiceProvider: pulumi.String("string"),
ClusterMode: pulumi.Bool(false),
ConnectionType: pulumi.String("string"),
DbName: pulumi.String("string"),
DbServerCertificates: pulumi.String("string"),
DbServerName: pulumi.String("string"),
AzureClientSecret: pulumi.String("string"),
Description: pulumi.String("string"),
MongodbUriOptions: pulumi.String("string"),
Key: pulumi.String("string"),
MaxVersions: pulumi.String("string"),
MongodbAtlas: pulumi.Bool(false),
MongodbAtlasApiPrivateKey: pulumi.String("string"),
AzureClientId: pulumi.String("string"),
AzureTenantId: pulumi.String("string"),
MongodbAtlasProjectId: pulumi.String("string"),
Host: pulumi.String("string"),
Name: pulumi.String("string"),
OracleServiceName: pulumi.String("string"),
OracleWalletLoginType: pulumi.String("string"),
OracleWalletP12FileData: pulumi.String("string"),
OracleWalletSsoFileData: pulumi.String("string"),
ParentTargetName: pulumi.String("string"),
Port: pulumi.String("string"),
Pwd: pulumi.String("string"),
SnowflakeAccount: pulumi.String("string"),
SnowflakeApiPrivateKey: pulumi.String("string"),
SnowflakeApiPrivateKeyPassword: pulumi.String("string"),
Ssl: pulumi.Bool(false),
SslCertificate: pulumi.String("string"),
TargetDbId: pulumi.String("string"),
UserName: pulumi.String("string"),
})
resource "akeyless_targetdb" "targetDbResource" {
db_type = "string"
mongodb_atlas_api_public_key = "string"
mongodb_default_auth_db = "string"
cloud_service_provider = "string"
cluster_mode = false
connection_type = "string"
db_name = "string"
db_server_certificates = "string"
db_server_name = "string"
azure_client_secret = "string"
description = "string"
mongodb_uri_options = "string"
key = "string"
max_versions = "string"
mongodb_atlas = false
mongodb_atlas_api_private_key = "string"
azure_client_id = "string"
azure_tenant_id = "string"
mongodb_atlas_project_id = "string"
host = "string"
name = "string"
oracle_service_name = "string"
oracle_wallet_login_type = "string"
oracle_wallet_p12_file_data = "string"
oracle_wallet_sso_file_data = "string"
parent_target_name = "string"
port = "string"
pwd = "string"
snowflake_account = "string"
snowflake_api_private_key = "string"
snowflake_api_private_key_password = "string"
ssl = false
ssl_certificate = "string"
target_db_id = "string"
user_name = "string"
}
var targetDbResource = new TargetDb("targetDbResource", TargetDbArgs.builder()
.dbType("string")
.mongodbAtlasApiPublicKey("string")
.mongodbDefaultAuthDb("string")
.cloudServiceProvider("string")
.clusterMode(false)
.connectionType("string")
.dbName("string")
.dbServerCertificates("string")
.dbServerName("string")
.azureClientSecret("string")
.description("string")
.mongodbUriOptions("string")
.key("string")
.maxVersions("string")
.mongodbAtlas(false)
.mongodbAtlasApiPrivateKey("string")
.azureClientId("string")
.azureTenantId("string")
.mongodbAtlasProjectId("string")
.host("string")
.name("string")
.oracleServiceName("string")
.oracleWalletLoginType("string")
.oracleWalletP12FileData("string")
.oracleWalletSsoFileData("string")
.parentTargetName("string")
.port("string")
.pwd("string")
.snowflakeAccount("string")
.snowflakeApiPrivateKey("string")
.snowflakeApiPrivateKeyPassword("string")
.ssl(false)
.sslCertificate("string")
.targetDbId("string")
.userName("string")
.build());
target_db_resource = akeyless.TargetDb("targetDbResource",
db_type="string",
mongodb_atlas_api_public_key="string",
mongodb_default_auth_db="string",
cloud_service_provider="string",
cluster_mode=False,
connection_type="string",
db_name="string",
db_server_certificates="string",
db_server_name="string",
azure_client_secret="string",
description="string",
mongodb_uri_options="string",
key="string",
max_versions="string",
mongodb_atlas=False,
mongodb_atlas_api_private_key="string",
azure_client_id="string",
azure_tenant_id="string",
mongodb_atlas_project_id="string",
host="string",
name="string",
oracle_service_name="string",
oracle_wallet_login_type="string",
oracle_wallet_p12_file_data="string",
oracle_wallet_sso_file_data="string",
parent_target_name="string",
port="string",
pwd="string",
snowflake_account="string",
snowflake_api_private_key="string",
snowflake_api_private_key_password="string",
ssl=False,
ssl_certificate="string",
target_db_id="string",
user_name="string")
const targetDbResource = new akeyless.TargetDb("targetDbResource", {
dbType: "string",
mongodbAtlasApiPublicKey: "string",
mongodbDefaultAuthDb: "string",
cloudServiceProvider: "string",
clusterMode: false,
connectionType: "string",
dbName: "string",
dbServerCertificates: "string",
dbServerName: "string",
azureClientSecret: "string",
description: "string",
mongodbUriOptions: "string",
key: "string",
maxVersions: "string",
mongodbAtlas: false,
mongodbAtlasApiPrivateKey: "string",
azureClientId: "string",
azureTenantId: "string",
mongodbAtlasProjectId: "string",
host: "string",
name: "string",
oracleServiceName: "string",
oracleWalletLoginType: "string",
oracleWalletP12FileData: "string",
oracleWalletSsoFileData: "string",
parentTargetName: "string",
port: "string",
pwd: "string",
snowflakeAccount: "string",
snowflakeApiPrivateKey: "string",
snowflakeApiPrivateKeyPassword: "string",
ssl: false,
sslCertificate: "string",
targetDbId: "string",
userName: "string",
});
type: akeyless:TargetDb
properties:
azureClientId: string
azureClientSecret: string
azureTenantId: string
cloudServiceProvider: string
clusterMode: false
connectionType: string
dbName: string
dbServerCertificates: string
dbServerName: string
dbType: string
description: string
host: string
key: string
maxVersions: string
mongodbAtlas: false
mongodbAtlasApiPrivateKey: string
mongodbAtlasApiPublicKey: string
mongodbAtlasProjectId: string
mongodbDefaultAuthDb: string
mongodbUriOptions: string
name: string
oracleServiceName: string
oracleWalletLoginType: string
oracleWalletP12FileData: string
oracleWalletSsoFileData: string
parentTargetName: string
port: string
pwd: string
snowflakeAccount: string
snowflakeApiPrivateKey: string
snowflakeApiPrivateKeyPassword: string
ssl: false
sslCertificate: string
targetDbId: string
userName: string
TargetDb 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 TargetDb resource accepts the following input properties:
- Db
Type string - Database type: mysql/mssql/postgres/mongodb/snowflake/oracle/cassandra/redshift
- Azure
Client stringId - (Optional) Client id (relevant for "cloud-service-provider" only)
- Azure
Client stringSecret - (Optional) Client secret (relevant for "cloud-service-provider" only)
- Azure
Tenant stringId - (Optional) Tenant id (relevant for "cloud-service-provider" only)
- Cloud
Service stringProvider - (Optional) Cloud service provider (currently only supports Azure)
- Cluster
Mode bool - Cluster Mode
- Connection
Type string - Type of connection to mssql database [credentials/cloud-identity/wallet/parent-target]
- Db
Name string - Database name
- Db
Server stringCertificates - (Optional) DB server certificates
- Db
Server stringName - (Optional) Server name for certificate verification
- Description string
- Description of the object
- Host string
- Database host
- Key string
- The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
- Max
Versions string - Set the maximum number of versions, limited by the account settings defaults.
- Mongodb
Atlas bool - Flag, set database type to mongodb and the flag to true to create Mongo Atlas target
- 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
Default stringAuth Db - MongoDB server default authentication database
- Mongodb
Uri stringOptions - MongoDB server URI options (e.g. replicaSet=mySet&authSource=authDB)
- Name string
- Target name
- Oracle
Service stringName - Oracle db service name
- Oracle
Wallet stringLogin Type - Oracle Wallet login type (password/mtls)
- Oracle
Wallet stringP12File Data - Oracle wallet p12 file data in base64
- Oracle
Wallet stringSso File Data - Oracle wallet sso file data in base64
- Parent
Target stringName - Name of the parent target, relevant only when connection-type is parent-target
- Port string
- Database port
- Pwd string
- Database password
- Snowflake
Account string - Snowflake account name
- Snowflake
Api stringPrivate Key - RSA Private key (base64 encoded)
- Snowflake
Api stringPrivate Key Password - The Private key passphrase
- Ssl bool
- Enable/Disable SSL [true/false]
- Ssl
Certificate string - SSL connection certificate
- Target
Db stringId - The ID of this resource.
- User
Name string - Database user name
- Db
Type string - Database type: mysql/mssql/postgres/mongodb/snowflake/oracle/cassandra/redshift
- Azure
Client stringId - (Optional) Client id (relevant for "cloud-service-provider" only)
- Azure
Client stringSecret - (Optional) Client secret (relevant for "cloud-service-provider" only)
- Azure
Tenant stringId - (Optional) Tenant id (relevant for "cloud-service-provider" only)
- Cloud
Service stringProvider - (Optional) Cloud service provider (currently only supports Azure)
- Cluster
Mode bool - Cluster Mode
- Connection
Type string - Type of connection to mssql database [credentials/cloud-identity/wallet/parent-target]
- Db
Name string - Database name
- Db
Server stringCertificates - (Optional) DB server certificates
- Db
Server stringName - (Optional) Server name for certificate verification
- Description string
- Description of the object
- Host string
- Database host
- Key string
- The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
- Max
Versions string - Set the maximum number of versions, limited by the account settings defaults.
- Mongodb
Atlas bool - Flag, set database type to mongodb and the flag to true to create Mongo Atlas target
- 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
Default stringAuth Db - MongoDB server default authentication database
- Mongodb
Uri stringOptions - MongoDB server URI options (e.g. replicaSet=mySet&authSource=authDB)
- Name string
- Target name
- Oracle
Service stringName - Oracle db service name
- Oracle
Wallet stringLogin Type - Oracle Wallet login type (password/mtls)
- Oracle
Wallet stringP12File Data - Oracle wallet p12 file data in base64
- Oracle
Wallet stringSso File Data - Oracle wallet sso file data in base64
- Parent
Target stringName - Name of the parent target, relevant only when connection-type is parent-target
- Port string
- Database port
- Pwd string
- Database password
- Snowflake
Account string - Snowflake account name
- Snowflake
Api stringPrivate Key - RSA Private key (base64 encoded)
- Snowflake
Api stringPrivate Key Password - The Private key passphrase
- Ssl bool
- Enable/Disable SSL [true/false]
- Ssl
Certificate string - SSL connection certificate
- Target
Db stringId - The ID of this resource.
- User
Name string - Database user name
- db_
type string - Database type: mysql/mssql/postgres/mongodb/snowflake/oracle/cassandra/redshift
- azure_
client_ stringid - (Optional) Client id (relevant for "cloud-service-provider" only)
- azure_
client_ stringsecret - (Optional) Client secret (relevant for "cloud-service-provider" only)
- azure_
tenant_ stringid - (Optional) Tenant id (relevant for "cloud-service-provider" only)
- cloud_
service_ stringprovider - (Optional) Cloud service provider (currently only supports Azure)
- cluster_
mode bool - Cluster Mode
- connection_
type string - Type of connection to mssql database [credentials/cloud-identity/wallet/parent-target]
- db_
name string - Database name
- db_
server_ stringcertificates - (Optional) DB server certificates
- db_
server_ stringname - (Optional) Server name for certificate verification
- description string
- Description of the object
- host string
- Database host
- key string
- The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
- max_
versions string - Set the maximum number of versions, limited by the account settings defaults.
- mongodb_
atlas bool - Flag, set database type to mongodb and the flag to true to create Mongo Atlas target
- 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_
default_ stringauth_ db - MongoDB server default authentication database
- mongodb_
uri_ stringoptions - MongoDB server URI options (e.g. replicaSet=mySet&authSource=authDB)
- name string
- Target name
- oracle_
service_ stringname - Oracle db service name
- oracle_
wallet_ stringlogin_ type - Oracle Wallet login type (password/mtls)
- oracle_
wallet_ stringp12_ file_ data - Oracle wallet p12 file data in base64
- oracle_
wallet_ stringsso_ file_ data - Oracle wallet sso file data in base64
- parent_
target_ stringname - Name of the parent target, relevant only when connection-type is parent-target
- port string
- Database port
- pwd string
- Database password
- snowflake_
account string - Snowflake account name
- snowflake_
api_ stringprivate_ key - RSA Private key (base64 encoded)
- snowflake_
api_ stringprivate_ key_ password - The Private key passphrase
- ssl bool
- Enable/Disable SSL [true/false]
- ssl_
certificate string - SSL connection certificate
- target_
db_ stringid - The ID of this resource.
- user_
name string - Database user name
- db
Type String - Database type: mysql/mssql/postgres/mongodb/snowflake/oracle/cassandra/redshift
- azure
Client StringId - (Optional) Client id (relevant for "cloud-service-provider" only)
- azure
Client StringSecret - (Optional) Client secret (relevant for "cloud-service-provider" only)
- azure
Tenant StringId - (Optional) Tenant id (relevant for "cloud-service-provider" only)
- cloud
Service StringProvider - (Optional) Cloud service provider (currently only supports Azure)
- cluster
Mode Boolean - Cluster Mode
- connection
Type String - Type of connection to mssql database [credentials/cloud-identity/wallet/parent-target]
- db
Name String - Database name
- db
Server StringCertificates - (Optional) DB server certificates
- db
Server StringName - (Optional) Server name for certificate verification
- description String
- Description of the object
- host String
- Database host
- key String
- The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
- max
Versions String - Set the maximum number of versions, limited by the account settings defaults.
- mongodb
Atlas Boolean - Flag, set database type to mongodb and the flag to true to create Mongo Atlas target
- 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
Default StringAuth Db - MongoDB server default authentication database
- mongodb
Uri StringOptions - MongoDB server URI options (e.g. replicaSet=mySet&authSource=authDB)
- name String
- Target name
- oracle
Service StringName - Oracle db service name
- oracle
Wallet StringLogin Type - Oracle Wallet login type (password/mtls)
- oracle
Wallet StringP12File Data - Oracle wallet p12 file data in base64
- oracle
Wallet StringSso File Data - Oracle wallet sso file data in base64
- parent
Target StringName - Name of the parent target, relevant only when connection-type is parent-target
- port String
- Database port
- pwd String
- Database password
- snowflake
Account String - Snowflake account name
- snowflake
Api StringPrivate Key - RSA Private key (base64 encoded)
- snowflake
Api StringPrivate Key Password - The Private key passphrase
- ssl Boolean
- Enable/Disable SSL [true/false]
- ssl
Certificate String - SSL connection certificate
- target
Db StringId - The ID of this resource.
- user
Name String - Database user name
- db
Type string - Database type: mysql/mssql/postgres/mongodb/snowflake/oracle/cassandra/redshift
- azure
Client stringId - (Optional) Client id (relevant for "cloud-service-provider" only)
- azure
Client stringSecret - (Optional) Client secret (relevant for "cloud-service-provider" only)
- azure
Tenant stringId - (Optional) Tenant id (relevant for "cloud-service-provider" only)
- cloud
Service stringProvider - (Optional) Cloud service provider (currently only supports Azure)
- cluster
Mode boolean - Cluster Mode
- connection
Type string - Type of connection to mssql database [credentials/cloud-identity/wallet/parent-target]
- db
Name string - Database name
- db
Server stringCertificates - (Optional) DB server certificates
- db
Server stringName - (Optional) Server name for certificate verification
- description string
- Description of the object
- host string
- Database host
- key string
- The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
- max
Versions string - Set the maximum number of versions, limited by the account settings defaults.
- mongodb
Atlas boolean - Flag, set database type to mongodb and the flag to true to create Mongo Atlas target
- 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
Default stringAuth Db - MongoDB server default authentication database
- mongodb
Uri stringOptions - MongoDB server URI options (e.g. replicaSet=mySet&authSource=authDB)
- name string
- Target name
- oracle
Service stringName - Oracle db service name
- oracle
Wallet stringLogin Type - Oracle Wallet login type (password/mtls)
- oracle
Wallet stringP12File Data - Oracle wallet p12 file data in base64
- oracle
Wallet stringSso File Data - Oracle wallet sso file data in base64
- parent
Target stringName - Name of the parent target, relevant only when connection-type is parent-target
- port string
- Database port
- pwd string
- Database password
- snowflake
Account string - Snowflake account name
- snowflake
Api stringPrivate Key - RSA Private key (base64 encoded)
- snowflake
Api stringPrivate Key Password - The Private key passphrase
- ssl boolean
- Enable/Disable SSL [true/false]
- ssl
Certificate string - SSL connection certificate
- target
Db stringId - The ID of this resource.
- user
Name string - Database user name
- db_
type str - Database type: mysql/mssql/postgres/mongodb/snowflake/oracle/cassandra/redshift
- azure_
client_ strid - (Optional) Client id (relevant for "cloud-service-provider" only)
- azure_
client_ strsecret - (Optional) Client secret (relevant for "cloud-service-provider" only)
- azure_
tenant_ strid - (Optional) Tenant id (relevant for "cloud-service-provider" only)
- cloud_
service_ strprovider - (Optional) Cloud service provider (currently only supports Azure)
- cluster_
mode bool - Cluster Mode
- connection_
type str - Type of connection to mssql database [credentials/cloud-identity/wallet/parent-target]
- db_
name str - Database name
- db_
server_ strcertificates - (Optional) DB server certificates
- db_
server_ strname - (Optional) Server name for certificate verification
- description str
- Description of the object
- host str
- Database host
- key str
- The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
- max_
versions str - Set the maximum number of versions, limited by the account settings defaults.
- mongodb_
atlas bool - Flag, set database type to mongodb and the flag to true to create Mongo Atlas target
- 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_
default_ strauth_ db - MongoDB server default authentication database
- mongodb_
uri_ stroptions - MongoDB server URI options (e.g. replicaSet=mySet&authSource=authDB)
- name str
- Target name
- oracle_
service_ strname - Oracle db service name
- oracle_
wallet_ strlogin_ type - Oracle Wallet login type (password/mtls)
- oracle_
wallet_ strp12_ file_ data - Oracle wallet p12 file data in base64
- oracle_
wallet_ strsso_ file_ data - Oracle wallet sso file data in base64
- parent_
target_ strname - Name of the parent target, relevant only when connection-type is parent-target
- port str
- Database port
- pwd str
- Database password
- snowflake_
account str - Snowflake account name
- snowflake_
api_ strprivate_ key - RSA Private key (base64 encoded)
- snowflake_
api_ strprivate_ key_ password - The Private key passphrase
- ssl bool
- Enable/Disable SSL [true/false]
- ssl_
certificate str - SSL connection certificate
- target_
db_ strid - The ID of this resource.
- user_
name str - Database user name
- db
Type String - Database type: mysql/mssql/postgres/mongodb/snowflake/oracle/cassandra/redshift
- azure
Client StringId - (Optional) Client id (relevant for "cloud-service-provider" only)
- azure
Client StringSecret - (Optional) Client secret (relevant for "cloud-service-provider" only)
- azure
Tenant StringId - (Optional) Tenant id (relevant for "cloud-service-provider" only)
- cloud
Service StringProvider - (Optional) Cloud service provider (currently only supports Azure)
- cluster
Mode Boolean - Cluster Mode
- connection
Type String - Type of connection to mssql database [credentials/cloud-identity/wallet/parent-target]
- db
Name String - Database name
- db
Server StringCertificates - (Optional) DB server certificates
- db
Server StringName - (Optional) Server name for certificate verification
- description String
- Description of the object
- host String
- Database host
- key String
- The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
- max
Versions String - Set the maximum number of versions, limited by the account settings defaults.
- mongodb
Atlas Boolean - Flag, set database type to mongodb and the flag to true to create Mongo Atlas target
- 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
Default StringAuth Db - MongoDB server default authentication database
- mongodb
Uri StringOptions - MongoDB server URI options (e.g. replicaSet=mySet&authSource=authDB)
- name String
- Target name
- oracle
Service StringName - Oracle db service name
- oracle
Wallet StringLogin Type - Oracle Wallet login type (password/mtls)
- oracle
Wallet StringP12File Data - Oracle wallet p12 file data in base64
- oracle
Wallet StringSso File Data - Oracle wallet sso file data in base64
- parent
Target StringName - Name of the parent target, relevant only when connection-type is parent-target
- port String
- Database port
- pwd String
- Database password
- snowflake
Account String - Snowflake account name
- snowflake
Api StringPrivate Key - RSA Private key (base64 encoded)
- snowflake
Api StringPrivate Key Password - The Private key passphrase
- ssl Boolean
- Enable/Disable SSL [true/false]
- ssl
Certificate String - SSL connection certificate
- target
Db StringId - The ID of this resource.
- user
Name String - Database user name
Outputs
All input properties are implicitly available as output properties. Additionally, the TargetDb 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 TargetDb Resource
Get an existing TargetDb 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?: TargetDbState, opts?: CustomResourceOptions): TargetDb@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
azure_client_id: Optional[str] = None,
azure_client_secret: Optional[str] = None,
azure_tenant_id: Optional[str] = None,
cloud_service_provider: Optional[str] = None,
cluster_mode: Optional[bool] = None,
connection_type: Optional[str] = None,
db_name: Optional[str] = None,
db_server_certificates: Optional[str] = None,
db_server_name: Optional[str] = None,
db_type: Optional[str] = None,
description: Optional[str] = None,
host: Optional[str] = None,
key: Optional[str] = None,
max_versions: Optional[str] = None,
mongodb_atlas: Optional[bool] = 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_default_auth_db: Optional[str] = None,
mongodb_uri_options: Optional[str] = None,
name: Optional[str] = None,
oracle_service_name: Optional[str] = None,
oracle_wallet_login_type: Optional[str] = None,
oracle_wallet_p12_file_data: Optional[str] = None,
oracle_wallet_sso_file_data: Optional[str] = None,
parent_target_name: Optional[str] = None,
port: Optional[str] = None,
pwd: Optional[str] = None,
snowflake_account: Optional[str] = None,
snowflake_api_private_key: Optional[str] = None,
snowflake_api_private_key_password: Optional[str] = None,
ssl: Optional[bool] = None,
ssl_certificate: Optional[str] = None,
target_db_id: Optional[str] = None,
user_name: Optional[str] = None) -> TargetDbfunc GetTargetDb(ctx *Context, name string, id IDInput, state *TargetDbState, opts ...ResourceOption) (*TargetDb, error)public static TargetDb Get(string name, Input<string> id, TargetDbState? state, CustomResourceOptions? opts = null)public static TargetDb get(String name, Output<String> id, TargetDbState state, CustomResourceOptions options)resources: _: type: akeyless:TargetDb get: id: ${id}import {
to = akeyless_targetdb.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.
- Azure
Client stringId - (Optional) Client id (relevant for "cloud-service-provider" only)
- Azure
Client stringSecret - (Optional) Client secret (relevant for "cloud-service-provider" only)
- Azure
Tenant stringId - (Optional) Tenant id (relevant for "cloud-service-provider" only)
- Cloud
Service stringProvider - (Optional) Cloud service provider (currently only supports Azure)
- Cluster
Mode bool - Cluster Mode
- Connection
Type string - Type of connection to mssql database [credentials/cloud-identity/wallet/parent-target]
- Db
Name string - Database name
- Db
Server stringCertificates - (Optional) DB server certificates
- Db
Server stringName - (Optional) Server name for certificate verification
- Db
Type string - Database type: mysql/mssql/postgres/mongodb/snowflake/oracle/cassandra/redshift
- Description string
- Description of the object
- Host string
- Database host
- Key string
- The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
- Max
Versions string - Set the maximum number of versions, limited by the account settings defaults.
- Mongodb
Atlas bool - Flag, set database type to mongodb and the flag to true to create Mongo Atlas target
- 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
Default stringAuth Db - MongoDB server default authentication database
- Mongodb
Uri stringOptions - MongoDB server URI options (e.g. replicaSet=mySet&authSource=authDB)
- Name string
- Target name
- Oracle
Service stringName - Oracle db service name
- Oracle
Wallet stringLogin Type - Oracle Wallet login type (password/mtls)
- Oracle
Wallet stringP12File Data - Oracle wallet p12 file data in base64
- Oracle
Wallet stringSso File Data - Oracle wallet sso file data in base64
- Parent
Target stringName - Name of the parent target, relevant only when connection-type is parent-target
- Port string
- Database port
- Pwd string
- Database password
- Snowflake
Account string - Snowflake account name
- Snowflake
Api stringPrivate Key - RSA Private key (base64 encoded)
- Snowflake
Api stringPrivate Key Password - The Private key passphrase
- Ssl bool
- Enable/Disable SSL [true/false]
- Ssl
Certificate string - SSL connection certificate
- Target
Db stringId - The ID of this resource.
- User
Name string - Database user name
- Azure
Client stringId - (Optional) Client id (relevant for "cloud-service-provider" only)
- Azure
Client stringSecret - (Optional) Client secret (relevant for "cloud-service-provider" only)
- Azure
Tenant stringId - (Optional) Tenant id (relevant for "cloud-service-provider" only)
- Cloud
Service stringProvider - (Optional) Cloud service provider (currently only supports Azure)
- Cluster
Mode bool - Cluster Mode
- Connection
Type string - Type of connection to mssql database [credentials/cloud-identity/wallet/parent-target]
- Db
Name string - Database name
- Db
Server stringCertificates - (Optional) DB server certificates
- Db
Server stringName - (Optional) Server name for certificate verification
- Db
Type string - Database type: mysql/mssql/postgres/mongodb/snowflake/oracle/cassandra/redshift
- Description string
- Description of the object
- Host string
- Database host
- Key string
- The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
- Max
Versions string - Set the maximum number of versions, limited by the account settings defaults.
- Mongodb
Atlas bool - Flag, set database type to mongodb and the flag to true to create Mongo Atlas target
- 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
Default stringAuth Db - MongoDB server default authentication database
- Mongodb
Uri stringOptions - MongoDB server URI options (e.g. replicaSet=mySet&authSource=authDB)
- Name string
- Target name
- Oracle
Service stringName - Oracle db service name
- Oracle
Wallet stringLogin Type - Oracle Wallet login type (password/mtls)
- Oracle
Wallet stringP12File Data - Oracle wallet p12 file data in base64
- Oracle
Wallet stringSso File Data - Oracle wallet sso file data in base64
- Parent
Target stringName - Name of the parent target, relevant only when connection-type is parent-target
- Port string
- Database port
- Pwd string
- Database password
- Snowflake
Account string - Snowflake account name
- Snowflake
Api stringPrivate Key - RSA Private key (base64 encoded)
- Snowflake
Api stringPrivate Key Password - The Private key passphrase
- Ssl bool
- Enable/Disable SSL [true/false]
- Ssl
Certificate string - SSL connection certificate
- Target
Db stringId - The ID of this resource.
- User
Name string - Database user name
- azure_
client_ stringid - (Optional) Client id (relevant for "cloud-service-provider" only)
- azure_
client_ stringsecret - (Optional) Client secret (relevant for "cloud-service-provider" only)
- azure_
tenant_ stringid - (Optional) Tenant id (relevant for "cloud-service-provider" only)
- cloud_
service_ stringprovider - (Optional) Cloud service provider (currently only supports Azure)
- cluster_
mode bool - Cluster Mode
- connection_
type string - Type of connection to mssql database [credentials/cloud-identity/wallet/parent-target]
- db_
name string - Database name
- db_
server_ stringcertificates - (Optional) DB server certificates
- db_
server_ stringname - (Optional) Server name for certificate verification
- db_
type string - Database type: mysql/mssql/postgres/mongodb/snowflake/oracle/cassandra/redshift
- description string
- Description of the object
- host string
- Database host
- key string
- The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
- max_
versions string - Set the maximum number of versions, limited by the account settings defaults.
- mongodb_
atlas bool - Flag, set database type to mongodb and the flag to true to create Mongo Atlas target
- 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_
default_ stringauth_ db - MongoDB server default authentication database
- mongodb_
uri_ stringoptions - MongoDB server URI options (e.g. replicaSet=mySet&authSource=authDB)
- name string
- Target name
- oracle_
service_ stringname - Oracle db service name
- oracle_
wallet_ stringlogin_ type - Oracle Wallet login type (password/mtls)
- oracle_
wallet_ stringp12_ file_ data - Oracle wallet p12 file data in base64
- oracle_
wallet_ stringsso_ file_ data - Oracle wallet sso file data in base64
- parent_
target_ stringname - Name of the parent target, relevant only when connection-type is parent-target
- port string
- Database port
- pwd string
- Database password
- snowflake_
account string - Snowflake account name
- snowflake_
api_ stringprivate_ key - RSA Private key (base64 encoded)
- snowflake_
api_ stringprivate_ key_ password - The Private key passphrase
- ssl bool
- Enable/Disable SSL [true/false]
- ssl_
certificate string - SSL connection certificate
- target_
db_ stringid - The ID of this resource.
- user_
name string - Database user name
- azure
Client StringId - (Optional) Client id (relevant for "cloud-service-provider" only)
- azure
Client StringSecret - (Optional) Client secret (relevant for "cloud-service-provider" only)
- azure
Tenant StringId - (Optional) Tenant id (relevant for "cloud-service-provider" only)
- cloud
Service StringProvider - (Optional) Cloud service provider (currently only supports Azure)
- cluster
Mode Boolean - Cluster Mode
- connection
Type String - Type of connection to mssql database [credentials/cloud-identity/wallet/parent-target]
- db
Name String - Database name
- db
Server StringCertificates - (Optional) DB server certificates
- db
Server StringName - (Optional) Server name for certificate verification
- db
Type String - Database type: mysql/mssql/postgres/mongodb/snowflake/oracle/cassandra/redshift
- description String
- Description of the object
- host String
- Database host
- key String
- The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
- max
Versions String - Set the maximum number of versions, limited by the account settings defaults.
- mongodb
Atlas Boolean - Flag, set database type to mongodb and the flag to true to create Mongo Atlas target
- 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
Default StringAuth Db - MongoDB server default authentication database
- mongodb
Uri StringOptions - MongoDB server URI options (e.g. replicaSet=mySet&authSource=authDB)
- name String
- Target name
- oracle
Service StringName - Oracle db service name
- oracle
Wallet StringLogin Type - Oracle Wallet login type (password/mtls)
- oracle
Wallet StringP12File Data - Oracle wallet p12 file data in base64
- oracle
Wallet StringSso File Data - Oracle wallet sso file data in base64
- parent
Target StringName - Name of the parent target, relevant only when connection-type is parent-target
- port String
- Database port
- pwd String
- Database password
- snowflake
Account String - Snowflake account name
- snowflake
Api StringPrivate Key - RSA Private key (base64 encoded)
- snowflake
Api StringPrivate Key Password - The Private key passphrase
- ssl Boolean
- Enable/Disable SSL [true/false]
- ssl
Certificate String - SSL connection certificate
- target
Db StringId - The ID of this resource.
- user
Name String - Database user name
- azure
Client stringId - (Optional) Client id (relevant for "cloud-service-provider" only)
- azure
Client stringSecret - (Optional) Client secret (relevant for "cloud-service-provider" only)
- azure
Tenant stringId - (Optional) Tenant id (relevant for "cloud-service-provider" only)
- cloud
Service stringProvider - (Optional) Cloud service provider (currently only supports Azure)
- cluster
Mode boolean - Cluster Mode
- connection
Type string - Type of connection to mssql database [credentials/cloud-identity/wallet/parent-target]
- db
Name string - Database name
- db
Server stringCertificates - (Optional) DB server certificates
- db
Server stringName - (Optional) Server name for certificate verification
- db
Type string - Database type: mysql/mssql/postgres/mongodb/snowflake/oracle/cassandra/redshift
- description string
- Description of the object
- host string
- Database host
- key string
- The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
- max
Versions string - Set the maximum number of versions, limited by the account settings defaults.
- mongodb
Atlas boolean - Flag, set database type to mongodb and the flag to true to create Mongo Atlas target
- 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
Default stringAuth Db - MongoDB server default authentication database
- mongodb
Uri stringOptions - MongoDB server URI options (e.g. replicaSet=mySet&authSource=authDB)
- name string
- Target name
- oracle
Service stringName - Oracle db service name
- oracle
Wallet stringLogin Type - Oracle Wallet login type (password/mtls)
- oracle
Wallet stringP12File Data - Oracle wallet p12 file data in base64
- oracle
Wallet stringSso File Data - Oracle wallet sso file data in base64
- parent
Target stringName - Name of the parent target, relevant only when connection-type is parent-target
- port string
- Database port
- pwd string
- Database password
- snowflake
Account string - Snowflake account name
- snowflake
Api stringPrivate Key - RSA Private key (base64 encoded)
- snowflake
Api stringPrivate Key Password - The Private key passphrase
- ssl boolean
- Enable/Disable SSL [true/false]
- ssl
Certificate string - SSL connection certificate
- target
Db stringId - The ID of this resource.
- user
Name string - Database user name
- azure_
client_ strid - (Optional) Client id (relevant for "cloud-service-provider" only)
- azure_
client_ strsecret - (Optional) Client secret (relevant for "cloud-service-provider" only)
- azure_
tenant_ strid - (Optional) Tenant id (relevant for "cloud-service-provider" only)
- cloud_
service_ strprovider - (Optional) Cloud service provider (currently only supports Azure)
- cluster_
mode bool - Cluster Mode
- connection_
type str - Type of connection to mssql database [credentials/cloud-identity/wallet/parent-target]
- db_
name str - Database name
- db_
server_ strcertificates - (Optional) DB server certificates
- db_
server_ strname - (Optional) Server name for certificate verification
- db_
type str - Database type: mysql/mssql/postgres/mongodb/snowflake/oracle/cassandra/redshift
- description str
- Description of the object
- host str
- Database host
- key str
- The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
- max_
versions str - Set the maximum number of versions, limited by the account settings defaults.
- mongodb_
atlas bool - Flag, set database type to mongodb and the flag to true to create Mongo Atlas target
- 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_
default_ strauth_ db - MongoDB server default authentication database
- mongodb_
uri_ stroptions - MongoDB server URI options (e.g. replicaSet=mySet&authSource=authDB)
- name str
- Target name
- oracle_
service_ strname - Oracle db service name
- oracle_
wallet_ strlogin_ type - Oracle Wallet login type (password/mtls)
- oracle_
wallet_ strp12_ file_ data - Oracle wallet p12 file data in base64
- oracle_
wallet_ strsso_ file_ data - Oracle wallet sso file data in base64
- parent_
target_ strname - Name of the parent target, relevant only when connection-type is parent-target
- port str
- Database port
- pwd str
- Database password
- snowflake_
account str - Snowflake account name
- snowflake_
api_ strprivate_ key - RSA Private key (base64 encoded)
- snowflake_
api_ strprivate_ key_ password - The Private key passphrase
- ssl bool
- Enable/Disable SSL [true/false]
- ssl_
certificate str - SSL connection certificate
- target_
db_ strid - The ID of this resource.
- user_
name str - Database user name
- azure
Client StringId - (Optional) Client id (relevant for "cloud-service-provider" only)
- azure
Client StringSecret - (Optional) Client secret (relevant for "cloud-service-provider" only)
- azure
Tenant StringId - (Optional) Tenant id (relevant for "cloud-service-provider" only)
- cloud
Service StringProvider - (Optional) Cloud service provider (currently only supports Azure)
- cluster
Mode Boolean - Cluster Mode
- connection
Type String - Type of connection to mssql database [credentials/cloud-identity/wallet/parent-target]
- db
Name String - Database name
- db
Server StringCertificates - (Optional) DB server certificates
- db
Server StringName - (Optional) Server name for certificate verification
- db
Type String - Database type: mysql/mssql/postgres/mongodb/snowflake/oracle/cassandra/redshift
- description String
- Description of the object
- host String
- Database host
- key String
- The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
- max
Versions String - Set the maximum number of versions, limited by the account settings defaults.
- mongodb
Atlas Boolean - Flag, set database type to mongodb and the flag to true to create Mongo Atlas target
- 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
Default StringAuth Db - MongoDB server default authentication database
- mongodb
Uri StringOptions - MongoDB server URI options (e.g. replicaSet=mySet&authSource=authDB)
- name String
- Target name
- oracle
Service StringName - Oracle db service name
- oracle
Wallet StringLogin Type - Oracle Wallet login type (password/mtls)
- oracle
Wallet StringP12File Data - Oracle wallet p12 file data in base64
- oracle
Wallet StringSso File Data - Oracle wallet sso file data in base64
- parent
Target StringName - Name of the parent target, relevant only when connection-type is parent-target
- port String
- Database port
- pwd String
- Database password
- snowflake
Account String - Snowflake account name
- snowflake
Api StringPrivate Key - RSA Private key (base64 encoded)
- snowflake
Api StringPrivate Key Password - The Private key passphrase
- ssl Boolean
- Enable/Disable SSL [true/false]
- ssl
Certificate String - SSL connection certificate
- target
Db StringId - The ID of this resource.
- user
Name String - Database user name
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
