DatabaseProps
Properties for defining a Database
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-polardb-database
Initializer
using AlibabaCloud.SDK.ROS.CDK.Polardb;
new DatabaseProps {
object CharacterSetName,
object DbClusterId,
object DbName,
object AccountName = null,
object AccountPrivilege = null,
object Collate = null,
object Ctype = null,
object DbDescription = null
};
Properties
Name | Type | Description |
---|---|---|
CharacterSetName |
object |
Property characterSetName: The character set of the database. |
DbClusterId |
object |
Property dbClusterId: The ID of the ApsaraDB for POLARDB cluster for which a database is to be created. |
DbName |
object |
Property dbName: The name of the database to be created. |
AccountName |
object |
Property accountName: The name of the database account to be used. |
AccountPrivilege |
object |
Property accountPrivilege: The permissions of the database account on the database. |
Collate |
object |
Property collate: A locale setting that specifies the collation for newly created databases. |
Ctype |
object |
Property ctype: A locale setting that specifies the character classification of the database. |
DbDescription |
object |
Property dbDescription: The description of the database. |
CharacterSetName
Required
public object CharacterSetName { get; set; }
- Type: object
Property characterSetName: The character set of the database.
For more information, see Character sets.
DbClusterId
Required
public object DbClusterId { get; set; }
- Type: object
Property dbClusterId: The ID of the ApsaraDB for POLARDB cluster for which a database is to be created.
DbName
Required
public object DbName { get; set; }
- Type: object
Property dbName: The name of the database to be created.
The name must comply with the following rules: It must start with a lowercase letter and consist of lowercase letters, digits, hyphens (-), and underscores (_). It must end with a letter or a digit. It can be up to 64 characters in length.
AccountName
Optional
public object AccountName { get; set; }
- Type: object
Property accountName: The name of the database account to be used.
AccountPrivilege
Optional
public object AccountPrivilege { get; set; }
- Type: object
Property accountPrivilege: The permissions of the database account on the database.
Valid values: ReadWrite: has read and write permissions on the database. ReadOnly: has the read-only permission on the database. DMLOnly: runs only data manipulation language (DML) statements. DDLOnly: runs only data definition language (DDL) statements. Default value: ReadWrite.
Collate
Optional
public object Collate { get; set; }
- Type: object
Property collate: A locale setting that specifies the collation for newly created databases.
The locale must be compatible with the character set set by the CharacterSetName parameter.When the cluster is PolarDB PostgreSQL (compatible with Oracle) or PolarDB PostgreSQL, this parameter is required; when the cluster is PolarDB MySQL, this parameter is not supported.
Ctype
Optional
public object Ctype { get; set; }
- Type: object
Property ctype: A locale setting that specifies the character classification of the database.
The locale must be compatible with the character set set by the CharacterSetName parameter. It is consistent with the incoming information of Collate. When the cluster is PolarDB PostgreSQL (compatible with Oracle) or PolarDB PostgreSQL, this parameter is required; when the cluster is PolarDB MySQL, this parameter is optional.
DbDescription
Optional
public object DbDescription { get; set; }
- Type: object
Property dbDescription: The description of the database.
Valid values: It cannot start with http:// or https://. It must be 2 to 256 characters in length.