azure

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterRules

func FilterRules(rules []*armstorage.IPRule) []*armstorage.IPRule

FilterRules transforms the specified rules into a list that is acceptable by Azure. See https://learn.microsoft.com/en-us/azure/storage/common/storage-network-security?tabs=azure-portal#restrictions-for-ip-network-rules.

func GetIPRulesForServices

func GetIPRulesForServices(ctx context.Context, credential azcore.TokenCredential, subscriptionID string, location string, serviceTags ...string) ([]*armstorage.IPRule, error)

GetIPRulesForServices returns a list of allow IP rules for the specified services.

func UpdateStorageAccountIPRules

func UpdateStorageAccountIPRules(ctx context.Context, credential azcore.TokenCredential, subscriptionID string, resourceGroup string, storageAccount string, rules []*armstorage.IPRule) error

UpdateStorageAccountIPRules updates the network IP rules for the specified storage account.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL