Queries information about Edge Node Service (ENS) instances.
Syntax
{
"Type": "DATASOURCE::ENS::Instances",
"Properties": {
"InstanceId": String
}
}
Properties
|
Property |
Type |
Required |
Allow updates |
Description |
Constraint |
|
RefreshOptions |
String |
No |
Yes |
The refresh policy for data source resources when the stack is updated. |
Valid values:
|
|
InstanceId |
String |
No |
Yes |
The ID of the instance. |
None. |
Return values (Fn::GetAtt)
-
Instances: details of the instances.
-
InstanceIds: the IDs of the instances.
|
Property |
Type |
Description |
Constraint |
|
InstanceIds |
List |
The IDs of the instances. |
None. |
|
Instances |
List |
Details of the instances. |
None. |
|
InstanceId |
String |
The ID of the instance. |
None. |
|
Status |
String |
The status of the instance. |
Valid values:
|
|
Memory |
Integer |
The memory size. |
Unit: MB. |
|
Cpu |
String |
The number of vCPUs. |
None. |
|
SpecName |
String |
The instance type. |
None. |
|
OSName |
String |
The name of the image. |
None. |
|
InstanceName |
String |
The name of the instance. |
None. |
|
SystemDisk |
Map |
The system disk information. |
Example:
|
|
Disk |
Integer |
The total disk size. |
None. |
|
NetworkAttributes |
Map |
The network attributes. |
Example:
|
|
InternetMaxBandwidthOut |
Integer |
The minimum upstream bandwidth. |
Unit: Mbit/s. |
|
InternetMaxBandwidthIn |
Integer |
The maximum downstream bandwidth. |
Unit: Mbit/s. |
|
ExpiredTime |
String |
The expiration time of the instance. |
The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
|
CreationTime |
String |
The creation time of the instance. |
The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
|
ImageId |
String |
The ID of the image. |
None. |
|
EnsRegionId |
String |
The region ID of the instance. |
None. |
|
HostName |
String |
The hostname of the instance. |
None. |
|
InstanceResourceType |
String |
The category of the instance. |
Valid values:
|
|
SecurityGroupIds |
List |
The IDs of the security groups. |
None. |
|
PrivateIpAddresses |
Map |
The private IP address information. |
Example:
|
|
PublicIpAddresses |
Map |
The public IP address information. |
Example:
|
|
InnerIpAddresses |
List |
The private IP addresses of the instance. |
None. |
|
DataDisks |
Map |
The data disk information. |
Example:
|
Examples
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceId": {
"Type": "String",
"Description": "The instance ID."
}
},
"Resources": {
"Instances": {
"Type": "DATASOURCE::ENS::Instances",
"Properties": {
"InstanceId": {
"Ref": "InstanceId"
}
}
}
},
"Outputs": {
"Instances": {
"Description": "The list of instances.",
"Value": {
"Fn::GetAtt": [
"Instances",
"Instances"
]
}
},
"InstanceIds": {
"Description": "The list of instance IDs.",
"Value": {
"Fn::GetAtt": [
"Instances",
"InstanceIds"
]
}
}
}
}ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InstanceId:
Type: String
Description: The instance ID.
Resources:
Instances:
Type: DATASOURCE::ENS::Instances
Properties:
InstanceId:
Ref: InstanceId
Outputs:
Instances:
Description: The list of instances.
Value:
Fn::GetAtt:
- Instances
- Instances
InstanceIds:
Description: The list of instance IDs.
Value:
Fn::GetAtt:
- Instances
- InstanceIds