DATASOURCE::ECS::SecurityGroup类型用于查询单个安全组详情。
语法
{
"Type": "DATASOURCE::ECS::SecurityGroup",
"Properties": {
"SecurityGroupId": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
SecurityGroupId | String | 是 | 是 | 安全组 ID。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值:
|
返回值
Fn::GetAtt
Description:安全组描述信息。
SecurityGroupName:目标安全组名称。
ServiceManaged:安全组所有者是否为云产品或供应商。
ResourceGroupId:资源组ID。
SecurityGroupReferences:所有用户指定安全组的授权完整信息。
SecurityGroupId:安全组ID。
CreateTime:安全组创建时间。
SecurityGroupType:安全组类型。
ServiceId:对应于安全组的虚拟商ID。
VpcId:安全组所属专有网络。
Permissions:安全组权限规则集合。
InnerAccessPolicy:安全组内的网络连接策略。
Tags:安全组绑定标签。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
SecurityGroupId:
AssociationPropertyMetadata:
VpcId: ${VpcId}
AssociationProperty: ALIYUN::ECS::SecurityGroup::SecurityGroupId
Type: String
Description:
en: Security group ID.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::ECS::SecurityGroup
Properties:
SecurityGroupId:
Ref: SecurityGroupId
Outputs:
Description:
Description: The description.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Description
SecurityGroupName:
Description: The security group name.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SecurityGroupName
ServiceManaged:
Description: Whether the owner of the security group is a cloud product or vendor.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ServiceManaged
ResourceGroupId:
Description: The enterprise resource group ID where the security group resides.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ResourceGroupId
SecurityGroupReferences:
Description: The complete information about the authorization of all user-specified security groups.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SecurityGroupReferences
SecurityGroupId:
Description: Security group ID.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SecurityGroupId
CreateTime:
Description: The create time.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
SecurityGroupType:
Description: Security group type.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SecurityGroupType
ServiceId:
Description: The virtual quotient ID corresponding to the security group.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ServiceId
VpcId:
Description: Secure the group's proprietary network.
Value:
Fn::GetAtt:
- ExtensionDataSource
- VpcId
Permissions:
Description: A collection of Security Group permission rules.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Permissions
InnerAccessPolicy:
Description: Network connectivity policy within the security group.
Value:
Fn::GetAtt:
- ExtensionDataSource
- InnerAccessPolicy
Tags:
Description: The tags.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Tags
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"SecurityGroupId": {
"AssociationPropertyMetadata": {
"VpcId": "${VpcId}"
},
"AssociationProperty": "ALIYUN::ECS::SecurityGroup::SecurityGroupId",
"Type": "String",
"Description": {
"en": "Security group ID."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::ECS::SecurityGroup",
"Properties": {
"SecurityGroupId": {
"Ref": "SecurityGroupId"
}
}
}
},
"Outputs": {
"Description": {
"Description": "The description.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Description"
]
}
},
"SecurityGroupName": {
"Description": "The security group name.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SecurityGroupName"
]
}
},
"ServiceManaged": {
"Description": "Whether the owner of the security group is a cloud product or vendor.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ServiceManaged"
]
}
},
"ResourceGroupId": {
"Description": "The enterprise resource group ID where the security group resides.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ResourceGroupId"
]
}
},
"SecurityGroupReferences": {
"Description": "The complete information about the authorization of all user-specified security groups.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SecurityGroupReferences"
]
}
},
"SecurityGroupId": {
"Description": "Security group ID.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SecurityGroupId"
]
}
},
"CreateTime": {
"Description": "The create time.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"SecurityGroupType": {
"Description": "Security group type.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SecurityGroupType"
]
}
},
"ServiceId": {
"Description": "The virtual quotient ID corresponding to the security group.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ServiceId"
]
}
},
"VpcId": {
"Description": "Secure the group's proprietary network.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"VpcId"
]
}
},
"Permissions": {
"Description": "A collection of Security Group permission rules.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Permissions"
]
}
},
"InnerAccessPolicy": {
"Description": "Network connectivity policy within the security group.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"InnerAccessPolicy"
]
}
},
"Tags": {
"Description": "The tags.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Tags"
]
}
}
}
}
文档内容是否对您有帮助?