DATASOURCE::REDIS::Instances is used to query the information about ApsaraDB for Redis instances.
Syntax
{
"Type": "DATASOURCE::REDIS::Instances",
"Properties": {
"ArchitectureType": String,
"EngineVersion": String,
"EditionType": String,
"ZoneId": String,
"ResourceGroupId": String,
"VSwitchId": String,
"InstanceClass": String,
"Expired": String,
"VpcId": String,
"PrivateIp": String,
"InstanceStatus": String,
"ChargeType": String,
"NetworkType": String,
"SearchKey": String,
"GlobalInstance": String,
"InstanceType": String,
"InstanceIds": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
ArchitectureType | String | No | Yes | The type of the architecture. | Valid values:
|
EngineVersion | String | No | Yes | The engine version of the instance. | Valid values:
|
EditionType | String | No | Yes | The edition of the instance. | Valid values:
|
ZoneId | String | No | Yes | The ID of the zone. | None |
ResourceGroupId | String | No | Yes | The ID of the resource group to which the instance belongs. | None |
VSwitchId | String | No | Yes | The ID of the vSwitch. | None |
InstanceClass | String | No | Yes | The type of the instance. | None |
Expired | String | No | Yes | Specifies whether the instance has expired. | Valid values:
|
VpcId | String | No | Yes | The ID of the virtual private cloud (VPC). | None |
PrivateIp | String | No | Yes | The private IP address. | None |
InstanceStatus | String | No | Yes | The state of the instance. | Valid values:
|
ChargeType | String | No | Yes | The billing method of the instance. | Valid values:
|
NetworkType | String | No | Yes | The network type. | Valid values:
|
SearchKey | String | No | Yes | The keyword that you want to use for fuzzy match. The keyword can be based on an instance name or instance ID. | None |
GlobalInstance | String | No | Yes | Specifies whether to return the child instance of a distributed instance. | Valid values:
|
InstanceType | String | No | Yes | The category of the instance. | Valid values:
|
InstanceIds | String | No | Yes | The IDs of the instances that you want to query. |
Note If you specify multiple instance IDs, separate the instance IDs with commas (,).
|
Return values (Fn::GetAtt)
- InstanceIds: the IDs of the instances.
- Instances: details of the instances.
Property | Type | Description | Constraint |
---|---|---|---|
InstanceIds | List | The IDs of the instances. | None. |
Instances | List | Details of the instances. | None. |
VpcId | String | The ID of the VPC. | None. |
PrivateIp | String | The private IP address. |
Note This property is not returned if the instance is deployed in the classic network.
|
Capacity | Number | The capacity of the instance. | Unit: MB. |
ReplacateId | String | The logical ID of the distributed instance. | None. |
CreateTime | String | The time when the instance is created. | None. |
ConnectionDomain | String | The private endpoint of the instance. | None. |
IsRds | Boolean | Indicates whether the instance is managed by ApsaraDB RDS. | Valid values:
|
ChargeType | String | The billing method of the instance. | Valid values:
|
ArchitectureType | String | The type of the architecture. | Default value: NULL. Valid values:
|
NetworkType | String | The network type of the instance. | Valid values:
|
ConnectionMode | String | The connection mode of the instance. | Valid values:
|
Port | Number | The service port of the instance. | None. |
SecondaryZoneId | String | The ID of the secondary zone. |
Note If a value that indicates multiple zone IDs, such as cn-hangzhou-MAZ10(h,i), is returned
for the ZoneId property, the SecondaryZoneId property is not returned.
|
EngineVersion | String | The engine version of the instance. | Valid values:
|
PackageType | String | The type of the plan. | Valid values:
|
Config | String | The parameter settings of the instance. | For more information, see Modify parameters of an instance. |
Bandwidth | Number | The bandwidth of the instance. | Unit: MB/s. |
InstanceName | String | The name of the instance. | None. |
ShardCount | Number | The number of shards in the cluster. |
Note This property is returned only if the instance is a cluster instance that supports
cloud disks.
|
UserName | String | The username that is used to access the instance. | By default, the username that is named after the instance ID is returned. |
GlobalInstanceId | String | The ID of the distributed instance. |
Note This property is returned only if the instance is a child instance of a distributed
instance.
|
QPS | Number | The queries per second (QPS). | None. |
InstanceClass | String | The specifications of the instance. | None. |
DestroyTime | String | The time when the instance was permanently deleted. | None. |
InstanceType | String | The category of the instance. | Valid values:
|
HasRenewChangeOrder | Boolean | Indicates whether an order for renewal and configuration change that has not taken effect exists. | Valid values:
|
SearchKey | String | The keyword that is used for fuzzy match. The keyword can be based on an instance ID or instance description. | None. |
EndTime | String | The time when the subscription instance expires. | None. |
VSwitchId | String | The ID of the vSwitch. | None. |
NodeType | String | The type of the node. | Valid values:
|
Connections | Number | The maximum number of connections supported by the instance. | None. |
ResourceGroupId | String | The ID of the resource group to which the instance belongs. | None. |
ZoneId | String | The ID of the zone. | None. |
InstanceStatus | String | The state of the instance. | Valid values:
|
CloudType | String | This property is returned only if the instance uses a cloud box. | None. |
EditionType | String | The edition of the instance. | Valid values:
|
Tags | Map | The information about the tags. | Example:
|
InstanceId | String | The ID of the instance. | None. |
Examples
-
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "InstanceIds": { "Type": "String", "Description": "The IDs of instances.\nIf you specify multiple instance IDs, separate the instance IDs with commas (,)." } }, "Resources": { "ExtensionDataSource": { "Type": "DATASOURCE::REDIS::Instances", "Properties": { "InstanceIds": { "Ref": "InstanceIds" } } } }, "Outputs": { "Instances": { "Description": "The list of The Redis instances.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Instances" ] } }, "InstanceIds": { "Description": "The list of The Redis instance Ids.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "InstanceIds" ] } } } }