Versions in this module Expand all Collapse all v0 v0.0.1 Nov 7, 2022 Changes in this version + type RuleAction string + const RuleActionAllow + const RuleActionDeny + type RuleProtocol string + const RuleProtocolAll + const RuleProtocolTCP + const RuleProtocolUDP + type RuleRequest struct + Action RuleAction + DestinationAddressPrefix string + DestinationPortRange string + Name string + Priority int + Protocol RuleProtocol + SourceAddressPrefix string + SourcePortRange string + Type RuleType + XMLName xml.Name + type RuleResponse struct + Action RuleAction + DestinationAddressPrefix string + DestinationPortRange string + IsDefault bool + Name string + Priority int + Protocol RuleProtocol + SourceAddressPrefix string + SourcePortRange string + State string + Type RuleType + XMLName xml.Name + type RuleType string + const RuleTypeInbound + const RuleTypeOutbound + type SecurityGroupClient struct + func NewClient(client management.Client) SecurityGroupClient + func (sg SecurityGroupClient) AddNetworkSecurityToSubnet(name string, subnet string, virtualNetwork string) (management.OperationID, error) + func (sg SecurityGroupClient) CreateNetworkSecurityGroup(name string, label string, location string) (management.OperationID, error) + func (sg SecurityGroupClient) DeleteNetworkSecurityGroup(name string) (management.OperationID, error) + func (sg SecurityGroupClient) DeleteNetworkSecurityGroupRule(securityGroup string, rule string) (management.OperationID, error) + func (sg SecurityGroupClient) GetNetworkSecurityGroup(name string) (SecurityGroupResponse, error) + func (sg SecurityGroupClient) GetNetworkSecurityGroupForSubnet(subnet string, virtualNetwork string) (SecurityGroupResponse, error) + func (sg SecurityGroupClient) ListNetworkSecurityGroups() (SecurityGroupList, error) + func (sg SecurityGroupClient) RemoveNetworkSecurityGroupFromSubnet(name string, subnet string, virtualNetwork string) (management.OperationID, error) + func (sg SecurityGroupClient) SetNetworkSecurityGroupRule(securityGroup string, rule RuleRequest) (management.OperationID, error) + type SecurityGroupList []SecurityGroupResponse + type SecurityGroupRequest struct + Label string + Location string + Name string + XMLName xml.Name + type SecurityGroupResponse struct + Label string + Location string + Name string + Rules []RuleResponse + State SecurityGroupState + XMLName xml.Name + type SecurityGroupState string + const SecurityGroupStateCreated + const SecurityGroupStateCreating + const SecurityGroupStateDeleting + const SecurityGroupStateUnavailable + const SecurityGroupStateUpdating