Queries a list of managed ECS instances.
Syntax
{
"Type": "DATASOURCE::ECS::ManagedInstances",
"Properties": {
"InstanceName": String,
"InstanceId": List,
"OsType": String,
"ActivationId": String,
"InstanceIp": String,
"Tags": List,
"RefreshOptions": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
InstanceName |
String |
No |
Yes |
The name of the managed instance. |
None. |
|
InstanceId |
List |
No |
Yes |
The ID of the managed instance. |
|
|
OsType |
String |
No |
Yes |
The OS type of the managed instance. |
Valid values:
|
|
ActivationId |
String |
No |
Yes |
The ID of the activation code. |
None. |
|
InstanceIp |
String |
No |
Yes |
The private or public IP address of the managed instance. |
None. |
|
Tags |
List |
No |
Yes |
The tags. |
|
|
RefreshOptions |
String |
No |
Yes |
The refresh policy for data source resources when the stack is updated. |
Valid values:
|
Tags syntax
"Tags": [
{
"Value": String,
"Key": String
}
]
Tags properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
Value |
String |
No |
No |
The tag value of the managed instance. |
The tag value can be up to 128 characters in length and cannot contain |
|
Key |
String |
Yes |
No |
The tag key of the managed instance. |
The tag key can be up to 64 characters in length and cannot contain |
Return values
Fn::GetAtt
-
Instances: details of the managed instances.
-
InstanceIds: the IDs of the managed instances.
|
Property |
Type |
Description |
Constraint |
|
InstanceIds |
List |
The IDs of the managed instances. |
None. |
|
Instances |
List |
Details of the managed instances. |
None. |
|
LastInvokedTime |
String |
The most recent time a Cloud Assistant task was run on the instance. |
None. |
|
Connected |
Boolean |
Whether the managed instance is connected. |
Valid values:
|
|
Hostname |
String |
The hostname of the managed instance. |
None. |
|
InstanceId |
String |
The ID of the managed instance. |
None. |
|
ActivationId |
String |
The ID of the activation code. |
None. |
|
IntranetIp |
String |
The private IP address of the managed instance. |
None. |
|
AgentVersion |
String |
The version number of Cloud Assistant Agent. |
None. |
|
RegistrationTime |
String |
The time when the managed instance was registered. |
None. |
|
InstanceName |
String |
The name of the managed instance. |
None. |
|
OsType |
String |
The OS type of the managed instance. |
None. |
|
OsVersion |
String |
The OS version. |
None. |
|
InvocationCount |
Number |
The number of Cloud Assistant task executions on the managed instance. |
None. |
|
MachineId |
String |
The machine code of the managed instance. |
None. |
|
Tags |
Map |
The tags. |
Example:
|
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
ExtensionDataSource:
Type: DATASOURCE::ECS::ManagedInstances
Properties:
InstanceName: TestEcs
OsType: linux
Outputs:
Instances:
Description: The list of managed instances.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Instances
InstanceIds:
Description: The list of managed instance ids.
Value:
Fn::GetAtt:
- ExtensionDataSource
- InstanceIds{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::ECS::ManagedInstances",
"Properties": {
"InstanceName": "TestEcs",
"OsType": "linux"
}
}
},
"Outputs": {
"Instances": {
"Description": "The list of managed instances.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Instances"
]
}
},
"InstanceIds": {
"Description": "The list of managed instance ids.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"InstanceIds"
]
}
}
}
}