资源编排服务 RFS-VPC.SecurityGroupRule:blueprint样例

时间:2025-02-12 14:53:03

blueprint样例

tosca_definitions_version: huaweicloud_tosca_version_1_0inputs:  sg-id:    type: HuaweiCloud.VPC.SecurityGroup.Id  direction:    default: ingress    type: string  ethertype:    default: IPv4    type: string  protocol:    default: TCP    type: string  minPort:    default: 80    type: integer  maxPort:    default: 80    type: integer  remoteSecurityGroup:    type: HuaweiCloud.VPC.SecurityGroup.Idnode_templates:  my-rule:    type: HuaweiCloud.VPC.SecurityGroupRule    properties:      securityGroupId: {get_input: sg-id}      direction: {get_input: direction}      ethertype: {get_input: ethertype}      protocol: {get_input: protocol}      minPort: {get_input: minPort}      maxPort: {get_input: maxPort}      remoteSecurityGroup: {get_input: remoteSecurityGroup}outputs:  rule-id:    value:      get_attribute: [my-rule, refID]
support.huaweicloud.com/tr-aos/vpc-securitygrouprule.html