azurerm

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 49 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(ctx context.Context, clientID, clientSecret, environment string, resourceGroupNames []string, subscriptionID, tenantID string) (provider.Provider, error)

NewProvider returns a AzureRM Provider

func ResourceTypeStrings

func ResourceTypeStrings() []string

ResourceTypeStrings returns a slice of all String values of the enum

Types

type AzureReader

type AzureReader struct {
	// contains filtered or unexported fields
}

AzureReader is the middleware between TC and AzureRM

func NewAzureReader

func NewAzureReader(ctx context.Context, clientID, clientSecret, environment, resourceGroupName, subscriptionID, tenantID string) (*AzureReader, error)

NewAzureReader returns a AzureReader

func (*AzureReader) GetLocation

func (ar *AzureReader) GetLocation() string

GetLocation returns the current Resource Group location

func (*AzureReader) GetResourceGroup

func (ar *AzureReader) GetResourceGroup() azureResourcesAPI.Group

GetResourceGroup returns the current Resource Group resource

func (*AzureReader) GetResourceGroupName

func (ar *AzureReader) GetResourceGroupName() string

GetResourceGroupName returns the current Resource Group name

func (*AzureReader) ListAPIManagementServiceResources added in v0.8.4

func (ar *AzureReader) ListAPIManagementServiceResources(ctx context.Context) ([]apimanagement.ServiceResource, error)

ListAPIManagementServiceResources returns a list of ServiceResources within a subscription

func (*AzureReader) ListAppServicePlans added in v0.8.0

func (ar *AzureReader) ListAppServicePlans(ctx context.Context, detailed *bool) ([]web.AppServicePlan, error)

ListAppServicePlans returns a list of AppServicePlans within a subscription

func (*AzureReader) ListApplicationGateways added in v0.7.2

func (ar *AzureReader) ListApplicationGateways(ctx context.Context) ([]network.ApplicationGateway, error)

ListApplicationGateways returns a list of ApplicationGateways within a subscription and a resource group

func (*AzureReader) ListApplicationGroups added in v0.6.0

func (ar *AzureReader) ListApplicationGroups(ctx context.Context, filter string) ([]desktopvirtualization.ApplicationGroup, error)

ListApplicationGroups returns a list of ApplicationGroups within a subscription and a resource group

func (*AzureReader) ListApplicationSecurityGroups added in v0.7.2

func (ar *AzureReader) ListApplicationSecurityGroups(ctx context.Context) ([]network.ApplicationSecurityGroup, error)

ListApplicationSecurityGroups returns a list of ApplicationSecurityGroups within a subscription and a resource group

func (*AzureReader) ListAvailabilitySets added in v0.7.2

func (ar *AzureReader) ListAvailabilitySets(ctx context.Context) ([]compute.AvailabilitySet, error)

ListAvailabilitySets returns a list of AvailabilitySets within a subscription and a resource group

func (*AzureReader) ListAzureFirewalls added in v0.7.2

func (ar *AzureReader) ListAzureFirewalls(ctx context.Context) ([]network.AzureFirewall, error)

ListAzureFirewalls returns a list of AzureFirewalls within a subscription and a resource group

func (*AzureReader) ListBackupInstanceResources added in v0.8.4

func (ar *AzureReader) ListBackupInstanceResources(ctx context.Context, vaultName string) ([]dataprotection.BackupInstanceResource, error)

ListBackupInstanceResources returns a list of BackupInstanceResources within a subscription and a resource group

func (*AzureReader) ListBackupPolicies added in v0.8.4

func (ar *AzureReader) ListBackupPolicies(ctx context.Context, filter string, vaultName string) ([]backup.ProtectionPolicyResource, error)

ListBackupPolicies returns a list of ProtectionPolicyResources within a subscription and a resource group

func (*AzureReader) ListBackupProtectedItems added in v0.8.4

func (ar *AzureReader) ListBackupProtectedItems(ctx context.Context, vaultName string, filter string, skipToken string) ([]backup.ProtectedItemResource, error)

ListBackupProtectedItems returns a list of ProtectedItemResources within a subscription and a resource group

func (*AzureReader) ListBackupVaultResources added in v0.8.2

func (ar *AzureReader) ListBackupVaultResources(ctx context.Context) ([]dataprotection.BackupVaultResource, error)

ListBackupVaultResources returns a list of BackupVaultResources within a subscription and a resource group

func (*AzureReader) ListBaseBackupPolicyResources added in v0.8.4

func (ar *AzureReader) ListBaseBackupPolicyResources(ctx context.Context, vaultName string) ([]dataprotection.BaseBackupPolicyResource, error)

ListBaseBackupPolicyResources returns a list of BaseBackupPolicyResources within a subscription and a resource group

func (*AzureReader) ListContainerRegistries added in v0.7.2

func (ar *AzureReader) ListContainerRegistries(ctx context.Context) ([]containerregistry.Registry, error)

ListContainerRegistries returns a list of Registries within a subscription

func (*AzureReader) ListContainerRegistryWebhooks added in v0.7.2

func (ar *AzureReader) ListContainerRegistryWebhooks(ctx context.Context, registryName string) ([]containerregistry.Webhook, error)

ListContainerRegistryWebhooks returns a list of Webhooks within a subscription and a resource group

func (*AzureReader) ListDNSRecordSets added in v0.7.5

func (ar *AzureReader) ListDNSRecordSets(ctx context.Context, zoneName string, top *int32, recordSetNameSuffix string) ([]dns.RecordSet, error)

ListDNSRecordSets returns a list of RecordSets within a subscription and a resource group

func (*AzureReader) ListDNSZones added in v0.7.5

func (ar *AzureReader) ListDNSZones(ctx context.Context, top *int32) ([]dns.Zone, error)

ListDNSZones returns a list of Zones within a subscription

func (*AzureReader) ListDdosProtectionPlans added in v0.7.2

func (ar *AzureReader) ListDdosProtectionPlans(ctx context.Context) ([]network.DdosProtectionPlan, error)

ListDdosProtectionPlans returns a list of DdosProtectionPlans within a subscription

func (*AzureReader) ListDeploymentSlots added in v0.8.0

func (ar *AzureReader) ListDeploymentSlots(ctx context.Context, name string) ([]web.Site, error)

ListDeploymentSlots returns a list of Sites within a subscription and a resource group

func (*AzureReader) ListDisks added in v0.7.5

func (ar *AzureReader) ListDisks(ctx context.Context) ([]compute.Disk, error)

ListDisks returns a list of Disks within a subscription and a resource group

func (*AzureReader) ListHostPools added in v0.6.0

func (ar *AzureReader) ListHostPools(ctx context.Context) ([]desktopvirtualization.HostPool, error)

ListHostPools returns a list of HostPools within a subscription and a resource group

func (*AzureReader) ListHubRouteTables added in v0.7.5

func (ar *AzureReader) ListHubRouteTables(ctx context.Context, virtualHubName string) ([]network.HubRouteTable, error)

ListHubRouteTables returns a list of HubRouteTables within a subscription and a resource group

func (*AzureReader) ListHubVirtualNetworkConnections added in v0.7.5

func (ar *AzureReader) ListHubVirtualNetworkConnections(ctx context.Context, virtualHubName string) ([]network.HubVirtualNetworkConnection, error)

ListHubVirtualNetworkConnections returns a list of HubVirtualNetworkConnections within a subscription and a resource group

func (*AzureReader) ListHybridConnections added in v0.8.0

func (ar *AzureReader) ListHybridConnections(ctx context.Context, name string) ([]web.HybridConnection, error)

ListHybridConnections returns a list of HybridConnections within a subscription and a resource group

func (*AzureReader) ListINSIGHTSAPIKeys added in v0.7.5

func (ar *AzureReader) ListINSIGHTSAPIKeys(ctx context.Context, ApplicationInsightsComponent string) ([]insights.ApplicationInsightsComponentAPIKey, error)

ListINSIGHTSAPIKeys returns a list of APIKeys within a subscription and a resource group

func (*AzureReader) ListINSIGHTSAnalyticsItems added in v0.7.5

func (ar *AzureReader) ListINSIGHTSAnalyticsItems(ctx context.Context, ApplicationInsightsComponent string, scopePath insights.ItemScopePath, scope insights.ItemScope, typeParameter insights.ItemTypeParameter, includeContent *bool) ([]insights.ApplicationInsightsComponentAnalyticsItem, error)

ListINSIGHTSAnalyticsItems returns a list of AnalyticsItems within a subscription and a resource group

func (*AzureReader) ListINSIGHTSComponents added in v0.7.5

func (ar *AzureReader) ListINSIGHTSComponents(ctx context.Context) ([]insights.ApplicationInsightsComponent, error)

ListINSIGHTSComponents returns a list of Components within a subscription

func (*AzureReader) ListINSIGHTSWebTests added in v0.7.5

func (ar *AzureReader) ListINSIGHTSWebTests(ctx context.Context) ([]insights.WebTest, error)

ListINSIGHTSWebTests returns a list of WebTests within a subscription

func (*AzureReader) ListImages added in v0.7.2

func (ar *AzureReader) ListImages(ctx context.Context) ([]compute.Image, error)

ListImages returns a list of Images within a subscription

func (*AzureReader) ListInterfaces

func (ar *AzureReader) ListInterfaces(ctx context.Context) ([]network.Interface, error)

ListInterfaces returns a list of Interfaces within a subscription and a resource group

func (*AzureReader) ListKeyVaults added in v0.7.5

func (ar *AzureReader) ListKeyVaults(ctx context.Context, top *int32) ([]keyvault.Vault, error)

ListKeyVaults returns a list of Vaults within a subscription and a resource group

func (*AzureReader) ListKubernetesClusterNodes added in v0.7.5

func (ar *AzureReader) ListKubernetesClusterNodes(ctx context.Context, managedClusterName string) ([]containerservice.AgentPool, error)

ListKubernetesClusterNodes returns a list of AgentPools within a subscription and a resource group

func (*AzureReader) ListKubernetesClusters added in v0.7.5

func (ar *AzureReader) ListKubernetesClusters(ctx context.Context) ([]containerservice.ManagedCluster, error)

ListKubernetesClusters returns a list of ManagedClusters within a subscription

func (*AzureReader) ListLoadBalancerBackendAddressPools added in v0.7.5

func (ar *AzureReader) ListLoadBalancerBackendAddressPools(ctx context.Context, loadBalancerName string) ([]network.BackendAddressPool, error)

ListLoadBalancerBackendAddressPools returns a list of LoadBalancerBackendAddressPools within a subscription and a resource group

func (*AzureReader) ListLoadBalancers added in v0.7.5

func (ar *AzureReader) ListLoadBalancers(ctx context.Context) ([]network.LoadBalancer, error)

ListLoadBalancers returns a list of LoadBalancers within a subscription and a resource group

func (*AzureReader) ListLocalNetworkGateways added in v0.7.2

func (ar *AzureReader) ListLocalNetworkGateways(ctx context.Context) ([]network.LocalNetworkGateway, error)

ListLocalNetworkGateways returns a list of LocalNetworkGateways within a subscription and a resource group

func (*AzureReader) ListLogAnalyticsDatasource added in v0.7.5

func (ar *AzureReader) ListLogAnalyticsDatasource(ctx context.Context, workspaceName string, filter string, skiptoken string) ([]operationalinsights.DataSource, error)

ListLogAnalyticsDatasource returns a list of DataSources within a subscription and a resource group

func (*AzureReader) ListLogAnalyticsLinkedService added in v0.7.5

func (ar *AzureReader) ListLogAnalyticsLinkedService(ctx context.Context, workspaceName string) ([]operationalinsights.LinkedService, error)

ListLogAnalyticsLinkedService returns a list of LinkedServices within a subscription and a resource group

func (*AzureReader) ListLogAnalyticsWorkspaces added in v0.7.5

func (ar *AzureReader) ListLogAnalyticsWorkspaces(ctx context.Context) ([]operationalinsights.Workspace, error)

ListLogAnalyticsWorkspaces returns a list of Workspaces within a subscription

func (*AzureReader) ListMARIADBConfigurations added in v0.7.2

func (ar *AzureReader) ListMARIADBConfigurations(ctx context.Context, serverName string) ([]mariadb.Configuration, error)

ListMARIADBConfigurations returns a list of Configurations within a subscription and a resource group

func (*AzureReader) ListMARIADBDatabases added in v0.7.2

func (ar *AzureReader) ListMARIADBDatabases(ctx context.Context, serverName string) ([]mariadb.Database, error)

ListMARIADBDatabases returns a list of Databases within a subscription and a resource group

func (*AzureReader) ListMARIADBFirewallRules added in v0.7.2

func (ar *AzureReader) ListMARIADBFirewallRules(ctx context.Context, serverName string) ([]mariadb.FirewallRule, error)

ListMARIADBFirewallRules returns a list of FirewallRules within a subscription and a resource group

func (*AzureReader) ListMARIADBServers added in v0.7.2

func (ar *AzureReader) ListMARIADBServers(ctx context.Context) ([]mariadb.Server, error)

ListMARIADBServers returns a list of Servers within a subscription

func (*AzureReader) ListMARIADBVirtualNetworkRules added in v0.7.2

func (ar *AzureReader) ListMARIADBVirtualNetworkRules(ctx context.Context, serverName string) ([]mariadb.VirtualNetworkRule, error)

ListMARIADBVirtualNetworkRules returns a list of VirtualNetworkRules within a subscription and a resource group

func (*AzureReader) ListMYSQLConfigurations added in v0.7.2

func (ar *AzureReader) ListMYSQLConfigurations(ctx context.Context, serverName string) ([]mysql.Configuration, error)

ListMYSQLConfigurations returns a list of Configurations within a subscription and a resource group

func (*AzureReader) ListMYSQLDatabases added in v0.7.2

func (ar *AzureReader) ListMYSQLDatabases(ctx context.Context, serverName string) ([]mysql.Database, error)

ListMYSQLDatabases returns a list of Databases within a subscription and a resource group

func (*AzureReader) ListMYSQLFirewallRules added in v0.7.2

func (ar *AzureReader) ListMYSQLFirewallRules(ctx context.Context, serverName string) ([]mysql.FirewallRule, error)

ListMYSQLFirewallRules returns a list of FirewallRules within a subscription and a resource group

func (*AzureReader) ListMYSQLServers added in v0.7.2

func (ar *AzureReader) ListMYSQLServers(ctx context.Context) ([]mysql.Server, error)

ListMYSQLServers returns a list of Servers within a subscription

func (*AzureReader) ListMYSQLVirtualNetworkRules added in v0.7.2

func (ar *AzureReader) ListMYSQLVirtualNetworkRules(ctx context.Context, serverName string) ([]mysql.VirtualNetworkRule, error)

ListMYSQLVirtualNetworkRules returns a list of VirtualNetworkRules within a subscription and a resource group

func (*AzureReader) ListMonitorActionsGroup added in v0.7.5

func (ar *AzureReader) ListMonitorActionsGroup(ctx context.Context) ([]newActionGroupClient.ActionGroupResource, error)

ListMonitorActionsGroup returns a list of ActionGroupResources within a subscription and a resource group

func (*AzureReader) ListMonitorActivityLogAlert added in v0.7.5

func (ar *AzureReader) ListMonitorActivityLogAlert(ctx context.Context) ([]newActivityLogAlertsClient.ActivityLogAlertResource, error)

ListMonitorActivityLogAlert returns a list of ActivityLogAlertResources within a subscription and a resource group

func (*AzureReader) ListMonitorAutoScaleSettings added in v0.7.5

func (ar *AzureReader) ListMonitorAutoScaleSettings(ctx context.Context) ([]monitor.AutoscaleSettingResource, error)

ListMonitorAutoScaleSettings returns a list of AutoscaleSettingResources within a subscription and a resource group

func (*AzureReader) ListMonitorLogProfiles added in v0.7.5

func (ar *AzureReader) ListMonitorLogProfiles(ctx context.Context) ([]monitor.LogProfileResource, error)

ListMonitorLogProfiles returns a list of LogProfileResources within a subscription

func (*AzureReader) ListMonitorMetricsAlerts added in v0.7.5

func (ar *AzureReader) ListMonitorMetricsAlerts(ctx context.Context) ([]monitor.MetricAlertResource, error)

ListMonitorMetricsAlerts returns a list of MetricAlertResources within a subscription and a resource group

func (*AzureReader) ListNatGateways added in v0.7.2

func (ar *AzureReader) ListNatGateways(ctx context.Context) ([]network.NatGateway, error)

ListNatGateways returns a list of NatGateways within a subscription and a resource group

func (*AzureReader) ListPOLICYDefinitions added in v0.7.5

func (ar *AzureReader) ListPOLICYDefinitions(ctx context.Context, filter string, top *int32) ([]policy.Definition, error)

ListPOLICYDefinitions returns a list of Definitions within a subscription

func (*AzureReader) ListPOLICYINSIGHTSRemediations added in v0.7.5

func (ar *AzureReader) ListPOLICYINSIGHTSRemediations(ctx context.Context, top *int32, filter string) ([]policyinsights.Remediation, error)

ListPOLICYINSIGHTSRemediations returns a list of Remediations within a subscription and a resource group

func (*AzureReader) ListPOLICYSetDefinitions added in v0.7.5

func (ar *AzureReader) ListPOLICYSetDefinitions(ctx context.Context, filter string, top *int32) ([]policy.SetDefinition, error)

ListPOLICYSetDefinitions returns a list of SetDefinitions within a subscription

func (*AzureReader) ListPOSTGRESQLConfigurations added in v0.7.2

func (ar *AzureReader) ListPOSTGRESQLConfigurations(ctx context.Context, serverName string) ([]postgresql.Configuration, error)

ListPOSTGRESQLConfigurations returns a list of Configurations within a subscription and a resource group

func (*AzureReader) ListPOSTGRESQLDatabases added in v0.7.2

func (ar *AzureReader) ListPOSTGRESQLDatabases(ctx context.Context, serverName string) ([]postgresql.Database, error)

ListPOSTGRESQLDatabases returns a list of Databases within a subscription and a resource group

func (*AzureReader) ListPOSTGRESQLFirewallRules added in v0.7.2

func (ar *AzureReader) ListPOSTGRESQLFirewallRules(ctx context.Context, serverName string) ([]postgresql.FirewallRule, error)

ListPOSTGRESQLFirewallRules returns a list of FirewallRules within a subscription and a resource group

func (*AzureReader) ListPOSTGRESQLServers added in v0.7.2

func (ar *AzureReader) ListPOSTGRESQLServers(ctx context.Context) ([]postgresql.Server, error)

ListPOSTGRESQLServers returns a list of Servers within a subscription

func (*AzureReader) ListPOSTGRESQLVirtualNetworkRules added in v0.7.2

func (ar *AzureReader) ListPOSTGRESQLVirtualNetworkRules(ctx context.Context, serverName string) ([]postgresql.VirtualNetworkRule, error)

ListPOSTGRESQLVirtualNetworkRules returns a list of VirtualNetworkRules within a subscription and a resource group

func (*AzureReader) ListPRIVATEDNSPrivateZones added in v0.7.5

func (ar *AzureReader) ListPRIVATEDNSPrivateZones(ctx context.Context, top *int32) ([]privatedns.PrivateZone, error)

ListPRIVATEDNSPrivateZones returns a list of PrivateZones within a subscription

func (*AzureReader) ListPRIVATEDNSRecordSets added in v0.7.5

func (ar *AzureReader) ListPRIVATEDNSRecordSets(ctx context.Context, zoneName string, top *int32, recordSetNameSuffix string) ([]privatedns.RecordSet, error)

ListPRIVATEDNSRecordSets returns a list of RecordSets within a subscription and a resource group

func (ar *AzureReader) ListPRIVATEDNSVirtualNetworkLinks(ctx context.Context, privateZoneName string, top *int32) ([]privatedns.VirtualNetworkLink, error)

ListPRIVATEDNSVirtualNetworkLinks returns a list of VirtualNetworkLinks within a subscription and a resource group

func (*AzureReader) ListProfiles added in v0.7.2

func (ar *AzureReader) ListProfiles(ctx context.Context) ([]network.Profile, error)

ListProfiles returns a list of Profiles within a subscription and a resource group

func (*AzureReader) ListPublicIPAddresses added in v0.7.2

func (ar *AzureReader) ListPublicIPAddresses(ctx context.Context) ([]network.PublicIPAddress, error)

ListPublicIPAddresses returns a list of PublicIPAddresses within a subscription and a resource group

func (*AzureReader) ListPublicIPPrefixes added in v0.7.2

func (ar *AzureReader) ListPublicIPPrefixes(ctx context.Context) ([]network.PublicIPPrefix, error)

ListPublicIPPrefixes returns a list of PublicIPPrefixes within a subscription and a resource group

func (*AzureReader) ListREDISFirewallRules added in v0.7.5

func (ar *AzureReader) ListREDISFirewallRules(ctx context.Context, cacheName string) ([]redis.FirewallRule, error)

ListREDISFirewallRules returns a list of FirewallRules within a subscription and a resource group

func (*AzureReader) ListRecoveryServicesVault added in v0.8.4

func (ar *AzureReader) ListRecoveryServicesVault(ctx context.Context) ([]recoveryservices.Vault, error)

ListRecoveryServicesVault returns a list of Vaults within a subscription and a resource group

func (*AzureReader) ListRedisCaches added in v0.7.5

func (ar *AzureReader) ListRedisCaches(ctx context.Context) ([]redis.ResourceType, error)

ListRedisCaches returns a list of RedisCaches within a subscription and a resource group

func (*AzureReader) ListRouteTables added in v0.7.2

func (ar *AzureReader) ListRouteTables(ctx context.Context) ([]network.RouteTable, error)

ListRouteTables returns a list of RouteTables within a subscription and a resource group

func (*AzureReader) ListRoutes added in v0.7.2

func (ar *AzureReader) ListRoutes(ctx context.Context, routeTableName string) ([]network.Route, error)

ListRoutes returns a list of Routes within a subscription and a resource group

func (*AzureReader) ListSQLDatabases added in v0.7.2

func (ar *AzureReader) ListSQLDatabases(ctx context.Context, serverName string, skipToken string) ([]sql.Database, error)

ListSQLDatabases returns a list of Databases within a subscription and a resource group

func (*AzureReader) ListSQLElasticPools added in v0.7.2

func (ar *AzureReader) ListSQLElasticPools(ctx context.Context, serverName string, skip *int32) ([]sql.ElasticPool, error)

ListSQLElasticPools returns a list of ElasticPools within a subscription and a resource group

func (*AzureReader) ListSQLFirewallRules added in v0.7.2

func (ar *AzureReader) ListSQLFirewallRules(ctx context.Context, serverName string) ([]sql.FirewallRule, error)

ListSQLFirewallRules returns a list of FirewallRules within a subscription and a resource group

func (*AzureReader) ListSQLServerSecurityAlertPolicies added in v0.7.5

func (ar *AzureReader) ListSQLServerSecurityAlertPolicies(ctx context.Context, serverName string) ([]sql.ServerSecurityAlertPolicy, error)

ListSQLServerSecurityAlertPolicies returns a list of ServerSecurityAlertPolicies within a subscription and a resource group

func (*AzureReader) ListSQLServerVulnerabilityAssessments added in v0.7.5

func (ar *AzureReader) ListSQLServerVulnerabilityAssessments(ctx context.Context, serverName string) ([]sql.ServerVulnerabilityAssessment, error)

ListSQLServerVulnerabilityAssessments returns a list of ServerVulnerabilityAssessments within a subscription and a resource group

func (*AzureReader) ListSQLServers added in v0.7.2

func (ar *AzureReader) ListSQLServers(ctx context.Context, expand string) ([]sql.Server, error)

ListSQLServers returns a list of Servers within a subscription

func (*AzureReader) ListSQLVirtualMachines added in v0.7.5

func (ar *AzureReader) ListSQLVirtualMachines(ctx context.Context) ([]sqlvirtualmachine.SQLVirtualMachine, error)

ListSQLVirtualMachines returns a list of SQLVirtualMachines within a subscription

func (*AzureReader) ListSQLVirtualNetworkRules added in v0.7.5

func (ar *AzureReader) ListSQLVirtualNetworkRules(ctx context.Context, serverName string) ([]sql.VirtualNetworkRule, error)

ListSQLVirtualNetworkRules returns a list of VirtualNetworkRules within a subscription and a resource group

func (*AzureReader) ListSTORAGEAccounts added in v0.7.2

func (ar *AzureReader) ListSTORAGEAccounts(ctx context.Context) ([]storage.Account, error)

ListSTORAGEAccounts returns a list of Accounts within a subscription

func (*AzureReader) ListSTORAGEBlobContainers added in v0.7.2

func (ar *AzureReader) ListSTORAGEBlobContainers(ctx context.Context, accountName string, maxpagesize string, filter string, include storage.ListContainersInclude) ([]storage.ListContainerItem, error)

ListSTORAGEBlobContainers returns a list of BlobContainers within a subscription and a resource group

func (*AzureReader) ListSTORAGEFileShares added in v0.7.2

func (ar *AzureReader) ListSTORAGEFileShares(ctx context.Context, accountName string, maxpagesize string, filter string, expand string) ([]storage.FileShareItem, error)

ListSTORAGEFileShares returns a list of FileShares within a subscription and a resource group

func (*AzureReader) ListSTORAGEQueue added in v0.7.2

func (ar *AzureReader) ListSTORAGEQueue(ctx context.Context, accountName string, maxpagesize string, filter string) ([]storage.ListQueue, error)

ListSTORAGEQueue returns a list of Queue within a subscription and a resource group

func (*AzureReader) ListSTORAGETable added in v0.7.2

func (ar *AzureReader) ListSTORAGETable(ctx context.Context, accountName string) ([]storage.Table, error)

ListSTORAGETable returns a list of Table within a subscription and a resource group

func (*AzureReader) ListSecurityGroups

func (ar *AzureReader) ListSecurityGroups(ctx context.Context) ([]network.SecurityGroup, error)

ListSecurityGroups returns a list of SecurityGroups within a subscription and a resource group

func (*AzureReader) ListSecurityPartnerProviders added in v0.7.5

func (ar *AzureReader) ListSecurityPartnerProviders(ctx context.Context) ([]network.SecurityPartnerProvider, error)

ListSecurityPartnerProviders returns a list of SecurityPartnerProviders within a subscription

func (*AzureReader) ListSecurityRules added in v0.7.2

func (ar *AzureReader) ListSecurityRules(ctx context.Context, networkSecurityGroupName string) ([]network.SecurityRule, error)

ListSecurityRules returns a list of SecurityRules within a subscription and a resource group

func (*AzureReader) ListSourceControls added in v0.8.0

func (ar *AzureReader) ListSourceControls(ctx context.Context) ([]web.SourceControl, error)

ListSourceControls returns a list of SourceControls within a subscription

func (*AzureReader) ListStaticSites added in v0.8.0

func (ar *AzureReader) ListStaticSites(ctx context.Context) ([]web.StaticSiteARMResource, error)

ListStaticSites returns a list of StaticSiteARMResources within a subscription

func (*AzureReader) ListStaticSitesCustomDomain added in v0.8.0

func (ar *AzureReader) ListStaticSitesCustomDomain(ctx context.Context, name string) ([]web.StaticSiteCustomDomainOverviewARMResource, error)

ListStaticSitesCustomDomain returns a list of StaticSiteCustomDomainOverviewARMResources within a subscription and a resource group

func (*AzureReader) ListSubnets

func (ar *AzureReader) ListSubnets(ctx context.Context, virtualNetworkName string) ([]network.Subnet, error)

ListSubnets returns a list of Subnets within a subscription and a resource group

func (*AzureReader) ListVirtualHubBgpConnections added in v0.7.5

func (ar *AzureReader) ListVirtualHubBgpConnections(ctx context.Context, virtualHubName string) ([]network.BgpConnection, error)

ListVirtualHubBgpConnections returns a list of VirtualHubBgpConnections within a subscription and a resource group

func (*AzureReader) ListVirtualHubIPConfiguration added in v0.7.5

func (ar *AzureReader) ListVirtualHubIPConfiguration(ctx context.Context, virtualHubName string) ([]network.HubIPConfiguration, error)

ListVirtualHubIPConfiguration returns a list of VirtualHubIPConfiguration within a subscription and a resource group

func (*AzureReader) ListVirtualHubs added in v0.7.5

func (ar *AzureReader) ListVirtualHubs(ctx context.Context) ([]network.VirtualHub, error)

ListVirtualHubs returns a list of VirtualHubs within a subscription

func (*AzureReader) ListVirtualMachineExtensions added in v0.6.0

func (ar *AzureReader) ListVirtualMachineExtensions(ctx context.Context, VMName string, expand string) ([]compute.VirtualMachineExtension, error)

ListVirtualMachineExtensions returns a list of VirtualMachineExtensions within a subscription and a resource group

func (*AzureReader) ListVirtualMachineScaleSetExtensions added in v0.7.5

func (ar *AzureReader) ListVirtualMachineScaleSetExtensions(ctx context.Context, VMScaleSetName string) ([]compute.VirtualMachineScaleSetExtension, error)

ListVirtualMachineScaleSetExtensions returns a list of VirtualMachineScaleSetExtensions within a subscription and a resource group

func (*AzureReader) ListVirtualMachineScaleSets

func (ar *AzureReader) ListVirtualMachineScaleSets(ctx context.Context) ([]compute.VirtualMachineScaleSet, error)

ListVirtualMachineScaleSets returns a list of VirtualMachineScaleSets within a subscription and a resource group

func (*AzureReader) ListVirtualMachines

func (ar *AzureReader) ListVirtualMachines(ctx context.Context, filter string) ([]compute.VirtualMachine, error)

ListVirtualMachines returns a list of VirtualMachines within a subscription and a resource group

func (*AzureReader) ListVirtualNetworkGatewayConnections added in v0.7.2

func (ar *AzureReader) ListVirtualNetworkGatewayConnections(ctx context.Context) ([]network.VirtualNetworkGatewayConnection, error)

ListVirtualNetworkGatewayConnections returns a list of VirtualNetworkGatewayConnections within a subscription and a resource group

func (*AzureReader) ListVirtualNetworkGateways added in v0.7.2

func (ar *AzureReader) ListVirtualNetworkGateways(ctx context.Context) ([]network.VirtualNetworkGateway, error)

ListVirtualNetworkGateways returns a list of VirtualNetworkGateways within a subscription and a resource group

func (*AzureReader) ListVirtualNetworkPeerings added in v0.7.2

func (ar *AzureReader) ListVirtualNetworkPeerings(ctx context.Context, virtualNetworkName string) ([]network.VirtualNetworkPeering, error)

ListVirtualNetworkPeerings returns a list of VirtualNetworkPeerings within a subscription and a resource group

func (*AzureReader) ListVirtualNetworks

func (ar *AzureReader) ListVirtualNetworks(ctx context.Context) ([]network.VirtualNetwork, error)

ListVirtualNetworks returns a list of VirtualNetworks within a subscription and a resource group

func (*AzureReader) ListWebApplicationFirewallPolicies added in v0.7.2

func (ar *AzureReader) ListWebApplicationFirewallPolicies(ctx context.Context) ([]network.WebApplicationFirewallPolicy, error)

ListWebApplicationFirewallPolicies returns a list of WebApplicationFirewallPolicies within a subscription and a resource group

func (*AzureReader) ListWebApps added in v0.8.0

func (ar *AzureReader) ListWebApps(ctx context.Context) ([]web.Site, error)

ListWebApps returns a list of Sites within a subscription

func (*AzureReader) ListWorkflowRunActions added in v0.6.0

func (ar *AzureReader) ListWorkflowRunActions(ctx context.Context, workflowName string, runName string, top *int32, filter string) ([]logic.WorkflowRunAction, error)

ListWorkflowRunActions returns a list of WorkflowRunActions within a subscription and a resource group

func (*AzureReader) ListWorkflowRuns added in v0.6.0

func (ar *AzureReader) ListWorkflowRuns(ctx context.Context, workflowName string, top *int32, filter string) ([]logic.WorkflowRun, error)

ListWorkflowRuns returns a list of WorkflowRuns within a subscription and a resource group

func (*AzureReader) ListWorkflowTriggers added in v0.6.0

func (ar *AzureReader) ListWorkflowTriggers(ctx context.Context, workflowName string, top *int32, filter string) ([]logic.WorkflowTrigger, error)

ListWorkflowTriggers returns a list of WorkflowTriggers within a subscription and a resource group

func (*AzureReader) ListWorkflows added in v0.6.0

func (ar *AzureReader) ListWorkflows(ctx context.Context, top *int32, filter string) ([]logic.Workflow, error)

ListWorkflows returns a list of Workflows within a subscription and a resource group

type ResourceType

type ResourceType int

ResourceType is the type used to define all the Resources from the Provider

const (
	ResourceGroup ResourceType = iota
	// Compute Resources
	AvailabilitySet
	Image
	ManagedDisk
	VirtualMachine
	VirtualMachineDataDiskAttachment
	VirtualMachineExtension
	VirtualMachineScaleSetExtension
	VirtualNetwork
	LinuxVirtualMachine
	LinuxVirtualMachineScaleSet
	WindowsVirtualMachine
	WindowsVirtualMachineScaleSet
	// Network Resources
	Subnet
	NetworkInterface
	NetworkSecurityGroup
	ApplicationGateway
	ApplicationSecurityGroup
	NetworkDdosProtectionPlan
	Firewall
	LocalNetworkGateway
	NatGateway
	NetworkProfile
	NetworkSecurityRule
	PublicIP
	PublicIPPrefix
	Route
	RouteTable
	VirtualNetworkGateway
	VirtualNetworkGatewayConnection
	VirtualNetworkPeering
	WebApplicationFirewallPolicy
	VirtualHub
	VirtualHubBgpConnection
	VirtualHubConnection
	VirtualHubIP
	VirtualHubRouteTable
	VirtualHubSecurityPartnerProvider
	// Load Balancer
	Lb
	LbBackendAddressPool
	LbRule
	LbOutboundRule
	LbNatRule
	LbNatPool
	LbProbe
	// Desktop Resources
	VirtualDesktopHostPool
	VirtualDesktopApplicationGroup
	// Logic Resources
	LogicAppWorkflow
	LogicAppTriggerCustom
	LogicAppActionCustom
	// Container Registry Resources
	ContainerRegistry
	ContainerRegistryWebhook
	// Container Service Resources - k8s services
	KubernetesCluster
	KubernetesClusterNodePool
	// Storage Resources
	StorageAccount
	StorageQueue
	StorageShare
	StorageTable
	StorageBlob
	// Database Resources- mariadb
	MariadbConfiguration
	MariadbDatabase
	MariadbFirewallRule
	MariadbServer
	MariadbVirtualNetworkRule
	// Database Resources - mysql
	MysqlConfiguration
	MysqlDatabase
	MysqlFirewallRule
	MysqlServer
	MysqlVirtualNetworkRule
	// Database Resources - postgresql
	PostgresqlConfiguration
	PostgresqlDatabase
	PostgresqlFirewallRule
	PostgresqlServer
	PostgresqlVirtualNetworkRule
	// Database Resources- mssql
	MssqlElasticpool
	MssqlDatabase
	MssqlFirewallRule
	MssqlServer
	MssqlServerSecurityAlertPolicy
	MssqlServerVulnerabilityAssessment
	MssqlVirtualMachine
	MssqlVirtualNetworkRule
	// Redis
	RedisCache
	RedisFirewallRule
	// DNS
	DNSZone
	DNSARecord //dns_a_record
	DNSAaaaRecord
	DNSCaaRecord
	DNSCnameRecord
	DNSMxRecord
	DNSNsRecord
	DNSPtrRecord
	DNSSrvRecord
	DNSTxtRecord
	// Private DNS
	PrivateDNSZone
	PrivateDNSARecord //private_dns_a_record
	PrivateDNSAaaaRecord
	PrivateDNSCnameRecord
	PrivateDNSMxRecord
	PrivateDNSPtrRecord
	PrivateDNSSrvRecord
	PrivateDNSTxtRecord
	PrivateDNSZoneVirtualNetworkLink
	// Policy
	PolicyDefinition
	PolicyRemediation
	PolicySetDefinition
	// Vault
	KeyVault
	KeyVaultAccessPolicy
	// Application Insigths
	ApplicationInsights
	ApplicationInsightsAPIKey
	ApplicationInsightsAnalyticsItem
	//ApplicationInsightsWebTest
	// Log Analytics
	LogAnalyticsWorkspace
	LogAnalyticsLinkedService
	LogAnalyticsDatasourceWindowsPerformanceCounter
	LogAnalyticsDatasourceWindowsEvent
	// Monitor
	MonitorActionGroup
	MonitorActivityLogAlert
	MonitorAutoscaleSetting
	MonitorLogProfile
	MonitorMetricAlert
	// App service
	WindowsWebApp
	LinuxWebApp
	LinuxWebAppSlot
	WindowsWebAppSlot
	WebAppActiveSlot
	ServicePlan
	SourceControlToken
	StaticSite
	StaticSiteCustomDomain
	WebAppHybridConnection
	// Data Protection
	DataProtectionBackupVault
	DataProtectionBackupInstanceDisk
	DataProtectionBackupPolicyDisk
	// API Management
	APIManagement
	// Recovery Services
	RecoveryServicesVault
	//Recovery Services - backup
	BackupPolicyVM
	BackupProtectedVM
	BackupPolicyVMWorkload
)

func ResourceTypeString

func ResourceTypeString(s string) (ResourceType, error)

ResourceTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ResourceTypeValues

func ResourceTypeValues() []ResourceType

ResourceTypeValues returns all values of the enum

func (ResourceType) IsAResourceType

func (i ResourceType) IsAResourceType() bool

IsAResourceType returns "true" if the value is listed in the enum definition. "false" otherwise

func (ResourceType) String

func (i ResourceType) String() string

Directories

Path Synopsis
Package main allows to generate methods to get resources from Azure SDK It uses the template defined in template.go and the resource function params defined in generate.go, to create a file in ./reader_generated.go These methods can then be used to list the resources of Azure.
Package main allows to generate methods to get resources from Azure SDK It uses the template defined in template.go and the resource function params defined in generate.go, to create a file in ./reader_generated.go These methods can then be used to list the resources of Azure.

Jump to

Keyboard shortcuts

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