Bir ApsaraDB RDS örneğinin veritabanı hesapları hakkında bilgi sorgular.
Sözdizimi
{
"Type": "DATASOURCE::RDS::Accounts",
"Properties": {
"DBInstanceId": String,
"AccountName": String,
"RefreshOptions": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
DBInstanceId |
String |
Yes |
Yes |
Örnek kimliği. |
Not
SQL Server 2017 EE veya PostgreSQL çalıştıran örnekler desteklenmez. |
|
AccountName |
String |
No |
Yes |
Veritabanı hesabının adı. |
Yok. |
|
RefreshOptions |
String |
No |
Yes |
Yığın güncellendiğinde veri kaynağı kaynakları için yenileme ilkesi. |
Geçerli değerler:
|
Dönüş değerleri (Fn::GetAtt)
AccountNames: Veritabanı hesaplarının adları.
Accounts: Veritabanı hesaplarının ayrıntıları.
|
Property |
Type |
Description |
Constraint |
|
AccountNames |
List |
Veritabanı hesaplarının adları. |
Yok. |
|
Accounts |
List |
Veritabanı hesaplarının ayrıntıları. |
Yok. |
|
AccountStatus |
String |
Veritabanı hesabının durumu. |
Geçerli değerler:
|
|
AccountDescription |
String |
Veritabanı hesabının açıklaması. |
Yok. |
|
DBInstanceId |
String |
Veritabanı hesabının örnek kimliği. |
Yok. |
|
PrivExceeded |
String |
Veritabanı hesabı tarafından yönetilen veritabanı sayısının üst sınırı aşıp aşmadığını gösterir. |
Geçerli değerler:
|
|
AccountType |
String |
Veritabanı hesabının türü. |
Geçerli değerler:
|
|
AccountName |
String |
Veritabanı hesabının adı. |
Yok. |
|
DatabasePrivileges |
Map |
Veritabanı hesabına verilen veritabanı izinleri. |
Örnek:
|
Örnekler
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"DBInstanceId": {
"Type": "String",
"Description": "The ID of the RDS instance."
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::RDS::Accounts",
"Properties": {
"DBInstanceId": {
"Ref": "DBInstanceId"
}
}
}
},
"Outputs": {
"AccountNames": {
"Description": "The list of The RDS account names.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"AccountNames"
]
}
},
"Accounts": {
"Description": "The list of The RDS accounts.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Accounts"
]
}
}
}
}ROSTemplateFormatVersion: '2015-09-01'
Parameters:
DBInstanceId:
Type: String
Description: The ID of the RDS instance.
Resources:
ExtensionDataSource:
Type: DATASOURCE::RDS::Accounts
Properties:
DBInstanceId:
Ref: DBInstanceId
Outputs:
AccountNames:
Description: The list of The RDS account names.
Value:
Fn::GetAtt:
- ExtensionDataSource
- AccountNames
Accounts:
Description: The list of The RDS accounts.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Accounts