DATASOURCE::ECS::SecurityGroup類型用于查詢單個安全組詳情。
語法
{
"Type": "DATASOURCE::ECS::SecurityGroup",
"Properties": {
"SecurityGroupId": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
SecurityGroupId | String | 是 | 是 | 安全組 ID。 | 無 |
返回值
Fn::GetAtt
Description:安全組描述信息。
SecurityGroupName:目標安全組名稱。
ServiceManaged:安全組所有者是否為云產品或供應商。
ResourceGroupId:資源組ID。
SecurityGroupReferences:所有用戶指定安全組的授權完整信息。
SecurityGroupId:安全組ID。
CreateTime:安全組創建時間。
SecurityGroupType:安全組類型。
ServiceId:對應于安全組的虛擬商ID。
VpcId:安全組所屬專有網絡。
Permissions:安全組權限規則集合。
InnerAccessPolicy:安全組內的網絡連接策略。
Tags:安全組綁定標簽。
示例
YAML
格式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
JSON
格式{ "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" ] } } } }
文檔內容是否對您有幫助?