ALIYUN::CMS::MonitoringAgent は、Alibaba Cloud ホストに CloudMonitor エージェントをインストールするために使用されます。
構文
{
"Type": "ALIYUN::CMS::MonitoringAgent",
"Properties": {
"Force": Boolean,
"InstallCommand": String,
"InstanceIds": List
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
Force | ブール値 | いいえ | いいえ | CloudMonitor エージェントを強制的にインストールするかどうかを指定します。 | 有効値:
|
InstallCommand | String | いいえ | いいえ | 現在の Alibaba Cloud アカウントに属するすべての Alibaba Cloud ホストに CloudMonitor エージェントをインストールするかどうかを指定します。 | 有効値:
|
InstanceIds | List | いいえ | いいえ | Alibaba Cloud ホストの ID。 | 最大 10 個の ID を指定できます。 説明
|
戻り値
Fn::GetAtt
なし。
例
YAML 形式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Force:
Description:
en: 'Specifies whether to install the CloudMonitor agent. Valid values:
true (default value): yes
false: no'
Required: false
Type: Boolean
InstanceIds:
Description:
en: 'Alibaba Cloud host ID.
The range of n: 1 ~ 10.
Explain that InstallCommand and InstanceIds must be selected one by one.'
MaxLength: 10
MinLength: 1
Required: false
Type: Json
Resources:
MonitoringAgent:
Properties:
Force:
Ref: Force
InstanceIds:
Ref: InstanceIds
Type: ALIYUN::CMS::MonitoringAgent
JSON 形式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Force": {
"Type": "Boolean",
"Description": {
"en": "Specifies whether to install the CloudMonitor agent. Valid values:\ntrue (default value): yes\nfalse: no"
},
"Required": false
},
"InstanceIds": {
"Type": "Json",
"Description": {
"en": "Alibaba Cloud host ID.\nThe range of n: 1 ~ 10.\nExplain that InstallCommand and InstanceIds must be selected one by one."
},
"Required": false,
"MinLength": 1,
"MaxLength": 10
}
},
"Resources": {
"MonitoringAgent": {
"Type": "ALIYUN::CMS::MonitoringAgent",
"Properties": {
"Force": {
"Ref": "Force"
},
"InstanceIds": {
"Ref": "InstanceIds"
}
}
}
}
}