ALIYUN::ThreatDetection::HoneyPot类型用于新增蜜罐实例。
语法
{
"Type": "ALIYUN::ThreatDetection::HoneyPot",
"Properties": {
"HoneypotImageName": String,
"HoneypotImageId": String,
"HoneypotName": String,
"NodeId": String,
"Meta": Map
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
HoneypotImageId |
String |
是 |
否 |
蜜罐镜像ID。 |
无 |
|
HoneypotImageName |
String |
是 |
否 |
蜜罐镜像名称。 |
无 |
|
HoneypotName |
String |
是 |
是 |
蜜罐的自定义名称。 |
无 |
|
NodeId |
String |
是 |
否 |
管理节点ID。 |
无 |
|
Meta |
Map |
否 |
否 |
蜜罐自定义配置。 |
JSON 格式。包含以下字段:
|
返回值
Fn::GetAtt
-
HoneypotImageName:蜜罐镜像名称。
-
State:蜜罐状态。
-
HoneypotId:蜜罐ID。
-
NodeId:管理节点ID。
-
HoneypotImageId:蜜罐镜像ID。
-
HoneypotName:蜜罐的自定义名称。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
HoneypotImageName:
Type: String
Description:
en: |-
The name of the honeypot image.
> You can call the [ListAvailableHoneypot](~~ListAvailableHoneypot~~) operation to query the names of images from the **HoneypotImageName** response parameter.
Required: true
HoneypotName:
Type: String
Description:
en: The custom name of the honeypot.
Required: true
NodeId:
Type: String
Description:
en: |-
The ID of the management node.
> You can call the [ListHoneypotNode](~~ListHoneypotNode~~) operation to query the IDs of management nodes.
Required: true
HoneypotImageId:
Type: String
Description:
en: |-
The ID of the honeypot image.
> You can call the [ListAvailableHoneypot](~~ListAvailableHoneypot~~) operation to query the IDs of images from the **HoneypotImageId** response parameter.
Required: true
Meta:
Description:
en: |-
Honeypot custom configuration. JSON format. Contains the following fields:
- **trojan_git**:Git counterplan. Value:
- **zip**:Git source package
- **web**:.git directory leak
- **close**: close
- **trojan_git\_addr**:Git anti-control connection address
- **Trojan_git.zip**:Git anti-Trojan package
- **burp**:Burp counter. Value:
- **open**: On
- **close**: close
- **portrait_option**: traceability configuration. Value:
- **false**: Disabled
- **true**: Enable.
Required: false
Default: Null
Type: Json
Resources:
ExtensionResource:
Type: ALIYUN::ThreatDetection::HoneyPot
Properties:
HoneypotImageName:
Ref: HoneypotImageName
HoneypotName:
Ref: HoneypotName
NodeId:
Ref: NodeId
HoneypotImageId:
Ref: HoneypotImageId
Meta:
Ref: Meta
Outputs:
HoneypotImageName:
Value:
Fn::GetAtt:
- ExtensionResource
- HoneypotImageName
Description: The name of the honeypot image.
HoneypotName:
Value:
Fn::GetAtt:
- ExtensionResource
- HoneypotName
Description: The custom name of the honeypot.
HoneypotImageId:
Value:
Fn::GetAtt:
- ExtensionResource
- HoneypotImageId
Description: The ID of the honeypot image.
NodeId:
Value:
Fn::GetAtt:
- ExtensionResource
- NodeId
Description: The ID of the management node.
State:
Value:
Fn::GetAtt:
- ExtensionResource
- State
Description: Honeypot status.
HoneypotId:
Value:
Fn::GetAtt:
- ExtensionResource
- HoneypotId
Description: The ID of the honeypot.
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"HoneypotImageName": {
"Type": "String",
"Description": {
"en": "The name of the honeypot image.\n> You can call the [ListAvailableHoneypot](~~ListAvailableHoneypot~~) operation to query the names of images from the **HoneypotImageName** response parameter."
},
"Required": true
},
"HoneypotName": {
"Type": "String",
"Description": {
"en": "The custom name of the honeypot."
},
"Required": true
},
"NodeId": {
"Type": "String",
"Description": {
"en": "The ID of the management node.\n> You can call the [ListHoneypotNode](~~ListHoneypotNode~~) operation to query the IDs of management nodes."
},
"Required": true
},
"HoneypotImageId": {
"Type": "String",
"Description": {
"en": "The ID of the honeypot image.\n> You can call the [ListAvailableHoneypot](~~ListAvailableHoneypot~~) operation to query the IDs of images from the **HoneypotImageId** response parameter."
},
"Required": true
},
"Meta": {
"Description": {
"en": "Honeypot custom configuration. JSON format. Contains the following fields:\n- **trojan_git**:Git counterplan. Value:\n- **zip**:Git source package\n- **web**:.git directory leak\n- **close**: close\n- **trojan_git\\_addr**:Git anti-control connection address\n- **Trojan_git.zip**:Git anti-Trojan package\n- **burp**:Burp counter. Value:\n- **open**: On\n- **close**: close\n- **portrait_option**: traceability configuration. Value:\n- **false**: Disabled\n- **true**: Enable."
},
"Required": false,
"Default": null,
"Type": "Json"
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::ThreatDetection::HoneyPot",
"Properties": {
"HoneypotImageName": {
"Ref": "HoneypotImageName"
},
"HoneypotName": {
"Ref": "HoneypotName"
},
"NodeId": {
"Ref": "NodeId"
},
"HoneypotImageId": {
"Ref": "HoneypotImageId"
},
"Meta": {
"Ref": "Meta"
}
}
}
},
"Outputs": {
"HoneypotImageName": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"HoneypotImageName"
]
},
"Description": "The name of the honeypot image."
},
"HoneypotName": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"HoneypotName"
]
},
"Description": "The custom name of the honeypot."
},
"HoneypotImageId": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"HoneypotImageId"
]
},
"Description": "The ID of the honeypot image."
},
"NodeId": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"NodeId"
]
},
"Description": "The ID of the management node."
},
"State": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"State"
]
},
"Description": "Honeypot status."
},
"HoneypotId": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"HoneypotId"
]
},
"Description": "The ID of the honeypot."
}
}
}该文章对您有帮助吗?