Skip to content

SecurityGroupsProps

Properties for defining a SecurityGroups.

See https://www.alibabacloud.com/help/ros/developer-reference/datasource-ecs-securitygroups

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs/datasource"
&datasource.SecurityGroupsProps {
    NetworkType: interface{},
    RefreshOptions: interface{},
    ResourceGroupId: interface{},
    SecurityGroupId: interface{},
    SecurityGroupIds: interface{},
    SecurityGroupName: interface{},
    SecurityGroupType: interface{},
    Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.datasource.RosSecurityGroups.TagsProperty,
    VpcId: interface{},
}

Properties

Name Type Description
NetworkType interface{} Property networkType: The network type of the security group.
RefreshOptions interface{} Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
ResourceGroupId interface{} Property resourceGroupId: The ID of the resource group to which the instance belongs.
SecurityGroupId interface{} Property securityGroupId: The ID of the security group.
SecurityGroupIds interface{} Property securityGroupIds: The IDs of security groups.
SecurityGroupName interface{} Property securityGroupName: The name of the security group.
SecurityGroupType interface{} Property securityGroupType: The type of the security group.
Tags *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.datasource.RosSecurityGroups.TagsProperty Property tags: Tags of securitygroup.
VpcId interface{} Property vpcId: The ID of the virtual private cloud (VPC) to which the security group belongs.

NetworkTypeOptional

NetworkType interface{}
  • Type: interface{}

Property networkType: The network type of the security group.

Valid values: vpc classic


RefreshOptionsOptional

RefreshOptions interface{}
  • Type: interface{}

Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.

Valid values:

  • Never: Never refresh the datasource resource when the stack is updated.
  • Always: Always refresh the datasource resource when the stack is updated. Default is Never.

ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: The ID of the resource group to which the instance belongs.

If this parameter is specified to query resources,up to 1,000 resources that belong to the specified resource group can be displayed in the response.


SecurityGroupIdOptional

SecurityGroupId interface{}
  • Type: interface{}

Property securityGroupId: The ID of the security group.


SecurityGroupIdsOptional

SecurityGroupIds interface{}
  • Type: interface{}

Property securityGroupIds: The IDs of security groups.

The value is a JSON array that consists of up to 100 security group IDs. Separate multiple security group IDs with commas (,).


SecurityGroupNameOptional

SecurityGroupName interface{}
  • Type: interface{}

Property securityGroupName: The name of the security group.


SecurityGroupTypeOptional

SecurityGroupType interface{}
  • Type: interface{}

Property securityGroupType: The type of the security group.

Valid values: normal: basic security group enterprise: advanced security group Note If you do not specify this parameter, both basic and advanced security groups are queried.


TagsOptional

Tags *[]TagsProperty
  • Type: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.datasource.RosSecurityGroups.TagsProperty

Property tags: Tags of securitygroup.


VpcIdOptional

VpcId interface{}
  • Type: interface{}

Property vpcId: The ID of the virtual private cloud (VPC) to which the security group belongs.