Documentation ¶
Index ¶
- func CreateDenyOutRule(ctx context.Context, nsgName string) (rule network.SecurityRule, err error)
- func CreateHTTPRule(ctx context.Context, nsgName string) (rule network.SecurityRule, err error)
- func CreateNetworkSecurityGroup(ctx context.Context, nsgName string) (nsg network.SecurityGroup, err error)
- func CreateSQLRule(ctx context.Context, nsgName, frontEndAddressPrefix string) (rule network.SecurityRule, err error)
- func CreateSSHRule(ctx context.Context, nsgName string) (rule network.SecurityRule, err error)
- func CreateSimpleNetworkSecurityGroup(ctx context.Context, nsgName string) (nsg network.SecurityGroup, err error)
- func CreateSubnetWithNetworkSecurityGroup(ctx context.Context, vnetName, subnetName, addressPrefix, nsgName string) (subnet network.Subnet, err error)
- func CreateVirtualNetworkSubnet(ctx context.Context, vnetName, subnetName string) (subnet network.Subnet, err error)
- func DeleteNetworkSecurityGroup(ctx context.Context, nsgName string) (result network.SecurityGroupsDeleteFuture, err error)
- func DeleteVirtualNetworkSubnet()
- func GetNetworkSecurityGroup(ctx context.Context, nsgName string) (network.SecurityGroup, error)
- func GetVirtualNetworkSubnet(ctx context.Context, vnetName string, subnetName string) (network.Subnet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDenyOutRule ¶
CreateDenyOutRule creates an network security rule that denies outbound traffic
func CreateHTTPRule ¶
CreateHTTPRule creates an inbound network security rule that allows using port 80
func CreateNetworkSecurityGroup ¶
func CreateNetworkSecurityGroup(ctx context.Context, nsgName string) (nsg network.SecurityGroup, err error)
CreateNetworkSecurityGroup creates a new network security group with rules set for allowing SSH and HTTPS use
func CreateSQLRule ¶
func CreateSQLRule(ctx context.Context, nsgName, frontEndAddressPrefix string) (rule network.SecurityRule, err error)
CreateSQLRule creates an inbound network security rule that allows using port 1433
func CreateSSHRule ¶
CreateSSHRule creates an inbound network security rule that allows using port 22
func CreateSimpleNetworkSecurityGroup ¶
func CreateSimpleNetworkSecurityGroup(ctx context.Context, nsgName string) (nsg network.SecurityGroup, err error)
CreateSimpleNetworkSecurityGroup creates a new network security group, without rules (rules can be set later)
func DeleteNetworkSecurityGroup ¶
func DeleteNetworkSecurityGroup(ctx context.Context, nsgName string) (result network.SecurityGroupsDeleteFuture, err error)
DeleteNetworkSecurityGroup deletes an existing network security group
func DeleteVirtualNetworkSubnet ¶
func DeleteVirtualNetworkSubnet()
func GetNetworkSecurityGroup ¶
GetNetworkSecurityGroup returns an existing network security group
Types ¶
This section is empty.