DATASOURCE::DRDS::DrdsDBs is used to query the details of databases on an instance.
Syntax
{
"Type": "DATASOURCE::DRDS::DrdsDBs",
"Properties": {
"InstanceId": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
InstanceId | String | Yes | Yes | The ID of the instance on which the databases reside. | None. |
Return values
Fn::GetAtt
- DrdsDatabaseNames: the names of the databases.
- Databases: details of the databases.
Property | Type | Description | Constraint |
---|---|---|---|
DrdsDatabaseNames | List | The names of the databases. | None. |
Databases | List | Details of the databases. | None. |
Status | String | The state of the database. | None. |
StorageType | String | The partition mode of the database. | Valid values:
|
SplitMode | String | The engine of the database. | Valid values:
|
Schema | String | The schema ID that is assigned to the partitioned database by the system. | None. |
CreateTime | String | The time when the database was created. | This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC. |
DrdsDatabaseName | String | The name of the database. | None. |
Examples
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "InstanceId": { "Type": "String", "Description": "Drds Instance ID." } }, "Resources": { "ExtensionDataSource": { "Type": "DATASOURCE::DRDS::DrdsDBs", "Properties": { "InstanceId": { "Ref": "InstanceId" } } } }, "Outputs": { "DrdsDatabaseNames": { "Description": "The list of drds database names.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "DrdsDatabaseNames" ] } }, "Databases": { "Description": "The list of drds databases.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Databases" ] } } } }