Class DatabaseSecretCredentialDetails
User provides a secret OCID, which will be used to retrieve the password to connect to the database.
Inherited Members
Namespace: Oci.DatabasemanagementService.Models
Assembly: OCI.DotNetSDK.Databasemanagement.dll
Syntax
public class DatabaseSecretCredentialDetails : DatabaseCredentialDetails
Properties
PasswordSecretId
Declaration
[Required(ErrorMessage = "PasswordSecretId is required.")]
[JsonProperty(PropertyName = "passwordSecretId")]
public string PasswordSecretId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the Secret where the database password is stored. |
Remarks
Required
Role
Declaration
[JsonProperty(PropertyName = "role")]
[JsonConverter(typeof(ResponseEnumConverter))]
public DatabaseSecretCredentialDetails.RoleEnum? Role { get; set; }
Property Value
Type | Description |
---|---|
DatabaseSecretCredentialDetails.RoleEnum? | The role of the database user. |
Username
Declaration
[JsonProperty(PropertyName = "username")]
public string Username { get; set; }
Property Value
Type | Description |
---|---|
string | The user to connect to the database. |