DATASOURCE::DRDS::DrdsInstances is used to query instances.
Syntax
{
"Type": "DATASOURCE::DRDS::DrdsInstances",
"Properties": {
"Type": String,
"Description": String,
"ResourceGroupId": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
Type | String | No | Yes | The type of the instance. | Valid values:
|
Description | String | No | Yes | The description of the instance. | None. |
ResourceGroupId | String | No | Yes | The ID of the resource group. | None. |
Return values
Fn::GetAtt
- Instances: details of the instances.
- InstanceIds: the instance IDs.
Property | Type | Description | Constraint |
---|---|---|---|
InstanceIds | List | The instance IDs. | None. |
Instances | List | Details of the instances. | None. |
ExpireDate | String | The timestamp that indicates when the instance expires. | None. |
InstanceSpec | String | The specifications of the instance. | None. |
MasterInstanceId | String | The ID of the primary instance. | None. |
Label | String | The label of the instance. | Valid values:
|
Version | String | The version of the instance. | None. |
ReadOnlyDBInstanceIds | List | The IDs of the read-only instances. | Example:
|
VersionAction | String | Indicates whether the version of the instance can be upgraded. | None. |
Type | String | The type of the instance. | Valid values:
|
Status | String | The state of the instance. | None. |
Description | String | The description of the instance. | None. |
InstRole | String | The role of the instance. | Valid values:
|
RegionId | String | The region ID. | None. |
ResourceGroupId | String | The ID of the resource group. | None. |
OrderInstanceId | String | The ID of the purchased instance. | None. |
DrdsInstanceId | String | The instance ID. | None. |
CommodityCode | String | The commodity code of the instance. | None. |
ZoneId | String | The zone ID. | None. |
Vips | List | Details of the virtual IP addresses (VIPs). | Example:
|
VpcCloudInstanceId | String | The ID of the instance that is deployed in the VPC. | None. |
MachineType | String | The machine type of the instance. | Only ecs may be returned. |
InstanceSeries | String | The instance type. | None. |
NetworkType | String | The network type of the instance. | Valid values:
|
CreateTime | String | The timestamp that indicates when the instance was created. | None. |
Examples
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { }, "Resources": { "ExtensionDataSource": { "Type": "DATASOURCE::DRDS::DrdsInstances", "Properties": { "Type": "0" } } }, "Outputs": { "Instances": { "Description": "The list of drds instances.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Instances" ] } }, "InstanceIds": { "Description": "The list of drds instance IDs.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "InstanceIds" ] } } } }