azure

package
v1.12.3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: Apache-2.0 Imports: 122 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColumnDescriptionAkas             = "Array of globally unique identifier strings (also known as) for the resource."
	ColumnDescriptionCloudEnvironment = "The Azure Cloud Environment."
	ColumnDescriptionRegion           = "The Azure region/location in which the resource is located."
	ColumnDescriptionResourceGroup    = "The resource group which holds this resource."
	ColumnDescriptionSubscription     = "The Azure Subscription ID in which the resource is located."
	ColumnDescriptionTags             = "A map of tags for the resource."
	ColumnDescriptionTitle            = "Title of the resource."
)

Constants for Standard Column Descriptions

Variables

View Source
var CostMetrics = []string{"PreTaxCost", "Cost"}

Functions

func ApplyRetryRules

func ApplyRetryRules(ctx context.Context, client interface{}, connection *plugin.Connection)

ApplyRetryRules applies retry settings to any older Azure SDK client

func ConfigInstance

func ConfigInstance() interface{}

func GetConfig

func GetConfig(connection *plugin.Connection) azureConfig

GetConfig :: retrieve and cast connection config from query data

func Plugin

func Plugin(ctx context.Context) *plugin.Plugin

Plugin creates this (azure) plugin

func WillExpireIn

func WillExpireIn(t time.Time, d time.Duration) bool

WillExpireIn returns true if the Token will expire after the passed time.Duration interval from now, false otherwise.

Types

type AppServicePlanApp

type AppServicePlanApp struct {
	SiteProperties *web.SiteProperties
	ID             *string
	Name           *string
	Kind           *string
	Location       *string
	Type           *string
	Tags           map[string]*string
}

type AzureCostUsageQuals

type AzureCostUsageQuals struct {
	Granularity    string
	DimensionType1 string
	DimensionType2 string
	DimensionTypes []string
}

type BackendWithServiceName

type BackendWithServiceName struct {
	apimanagement.BackendContract
	ServiceName string
}

type CacheNetworkSettingsInfo

type CacheNetworkSettingsInfo struct {
	Mtu              *int32
	UtilityAddresses *[]string
	DNSServers       *[]string
	DNSSearchDomain  *string
	NtpServer        *string
}

type CacheUpgradeStatusInfo

type CacheUpgradeStatusInfo struct {
	CurrentFirmwareVersion *string
	FirmwareUpdateStatus   interface{}
	FirmwareUpdateDeadline *date.Time
	LastFirmwareUpdate     *date.Time
	PendingFirmwareVersion *string
}

type CognitiveAccountPrivateEndpointConnections

type CognitiveAccountPrivateEndpointConnections struct {
	PrivateEndpointID                 interface{}
	PrivateLinkServiceConnectionState interface{}
	ProvisioningState                 interface{}
	GroupIds                          *[]string
	SystemData                        interface{}
	Location                          *string
	Etag                              *string
	ID                                *string
	Name                              *string
	Type                              *string
}

type CollectionThroughputSettings

type CollectionThroughputSettings = struct {
	ID                                   string
	Name                                 string
	Type                                 string
	Location                             string
	ResourceThroughput                   int32
	ResourceMinimumThroughput            string
	ResourceOfferReplacePending          string
	ResourceRid                          string
	ResourceTs                           float64
	ResourceEtag                         string
	AutoscaleSettingsMaxThroughput       int32
	AutoscaleSettingsTargetMaxThroughput int32
	AutoscaleSettingsThroughputPolicy    documentdb.ThroughputPolicyResource
}

type CostManagementRow

type CostManagementRow struct {
	UsageDate *time.Time

	// Period dates (optional, populated from query parameters)
	PeriodStart *time.Time
	PeriodEnd   *time.Time

	// Dimension values (populated based on GroupBy)
	Dimension1 *string // Generic dimension field (could be ResourceGroup, ServiceName, etc.)
	Dimension2 *string // Second dimension field for multi-dimensional grouping
	Dimensions *map[string]string

	// Cost metrics
	PreTaxCostAmount *float64
	CostAmount       *float64

	// Metadata
	Currency *string

	// Common properties
	SubscriptionID   *string
	SubscriptionName *string
	Scope            *string // Azure scope for cost queries
}

CostManagementRow represents a flattened cost management result row with all cost types (like AWS) https://learn.microsoft.com/en-us/azure/cost-management-billing/automate/understand-usage-details-fields

type DataProtectionJobInfo

type DataProtectionJobInfo struct {
	VaultName  *string
	Location   *string
	Properties *armdataprotection.AzureBackupJob
	ID         *string
	Name       *string
	Type       *string
}

type DatasetInfo

type DatasetInfo = struct {
	datafactory.DatasetResource
	FactoryName string
}

type FileShareInfo

type FileShareInfo struct {
	storage.FileShareProperties
	Name               string
	ID                 string
	Type               string
	StorageAccountName string
	ResourceGroup      string
}

type JobInfo

type JobInfo struct {
	VaultName  *string
	ETag       *string
	Location   *string
	Properties armrecoveryservicesbackup.JobClassification
	Tags       map[string]*string
	ID         *string
	Name       *string
	Type       *string
}

type LoadBalancerNatRulesInfo

type LoadBalancerNatRulesInfo = struct {
	network.InboundNatRule
	LoadBalancerName string
}

type LoadBalancerOutboundRulesInfo

type LoadBalancerOutboundRulesInfo = struct {
	network.OutboundRule
	LoadBalancerName string
}

type PrivateConnection

type PrivateConnection struct {
	ProvisioningState                                *string
	PrivateEndpointConnectionId                      *string
	PrivateEndpointId                                *string
	PrivateLinkServiceConnectionStateStatus          *string
	PrivateLinkServiceConnectionStateDescription     *string
	PrivateLinkServiceConnectionStateActionsRequired *string
	PrivateEndpointConnectionName                    *string
	PrivateEndpointConnectionType                    *string
	Etag                                             *string
}

type PrivateConnectionInfo

type PrivateConnectionInfo struct {
	PrivateEndpointConnectionId                      string
	PrivateEndpointId                                string
	PrivateEndpointConnectionName                    string
	PrivateEndpointConnectionType                    string
	PrivateLinkServiceConnectionStateStatus          string
	PrivateLinkServiceConnectionStateDescription     string
	PrivateLinkServiceConnectionStateActionsRequired string
	ProvisioningState                                string
}

type PrivateEndpointConnection

type PrivateEndpointConnection struct {
	// ID - READ-ONLY; private endpoint connection Id
	ID string
	// Name - READ-ONLY; private endpoint connection name
	Name string
	// Type - READ-ONLY; private endpoint connection type
	Type string
	// PrivateEndpointID - The Id of private end point.
	PrivateEndpointID string
	// ProvisioningState - The provisioning state of the private endpoint connection resource. Possible values include: 'PrivateEndpointConnectionProvisioningStateSucceeded', 'PrivateEndpointConnectionProvisioningStateCreating', 'PrivateEndpointConnectionProvisioningStateDeleting', 'PrivateEndpointConnectionProvisioningStateFailed'
	ProvisioningState                                string
	PrivateLinkServiceConnectionStateStatus          string
	PrivateLinkServiceConnectionStateDescription     string
	PrivateLinkServiceConnectionStateActionsRequired string
}

type PrivateEndpointConnectionInfo

type PrivateEndpointConnectionInfo struct {
	PrivateEndpointId                               string
	PrivateLinkServiceConnectionStateStatus         string
	PrivateLinkServiceConnectionStateDescription    string
	PrivateLinkServiceConnectionStateActionRequired string
	ProvisioningState                               string
}

type ProtectionPolicyResource

type ProtectionPolicyResource struct {
	backup.ProtectionPolicyResource
	VaultName                       string
	Location                        string
	AzureVMWorkloadProtectionPolicy *backup.AzureVMWorkloadProtectionPolicy
	AzureFileShareProtectionPolicy  *backup.AzureFileShareProtectionPolicy
	AzureIaaSVMProtectionPolicy     *backup.AzureIaaSVMProtectionPolicy
	AzureSqlProtectionPolicy        *backup.AzureSQLProtectionPolicy
	GenericProtectionPolicy         *backup.GenericProtectionPolicy
	MabProtectionPolicy             *backup.MabProtectionPolicy
	ProtectionPolicy                *backup.ProtectionPolicy
}

// LIST FUNCTION

type RestorableLocationResource

type RestorableLocationResource struct {
	LocationName                      string
	RegionalDatabaseAccountInstanceID string
	CreationTime                      date.Time
	DeletionTime                      date.Time
}

type RetryRule

type RetryRule struct {
	MaxErrorRetryAttempts *int
	MinErrorRetryDelay    *time.Duration
}

type ScaleSetVMInfo

type ScaleSetVMInfo struct {
	ScaleSetName string
	compute.VirtualMachineScaleSetVM
}

type SecurityCenterSettings

type SecurityCenterSettings struct {
	ID      *string
	Name    *string
	Enabled *bool
	Type    *string
	Kind    security.KindEnum2
}

type ServerKeyInfo

type ServerKeyInfo struct {
	ServerKeyId           *string
	ServerKeyName         *string
	ServerKeyType         *string
	ServerKeyKind         *string
	Type                  *string
	ServerKeyUri          *string
	ServerKeyCreationDate *date.Time
}

type Session

type Session struct {
	Authorizer              autorest.Authorizer
	CloudEnvironment        string
	Expires                 *time.Time
	GraphEndpoint           string
	ResourceManagerEndpoint string
	StorageEndpointSuffix   string
	SubscriptionID          string
	TenantID                string
}

func GetNewSession

func GetNewSession(ctx context.Context, d *plugin.QueryData, tokenAudience string) (session *Session, err error)

type SessionNew

type SessionNew struct {
	Cred           azcore.TokenCredential
	SubscriptionID string
	TenantID       string
	ClientOptions  *policy.ClientOptions
}

Session info

func GetNewSessionUpdated

func GetNewSessionUpdated(ctx context.Context, d *plugin.QueryData) (session *SessionNew, err error)
GetNewSessionUpdated creates an session configured from (~/.steampipe/config, environment variables and CLI) in the order:

1. Client secret 2. Client certificate 3. Username and password 4. Managed identity 5. CLI

type SignalRServicePrivateEndpointConnections

type SignalRServicePrivateEndpointConnections struct {
	PrivateEndpointPropertyID         interface{}
	PrivateLinkServiceConnectionState interface{}
	ProvisioningState                 interface{}
	ID                                *string
	Name                              *string
	Type                              *string
}

type SlotInfo

type SlotInfo struct {
	SiteProperties *web.SiteProperties
	Identity       *web.ManagedServiceIdentity
	ID             *string
	Name           *string
	AppName        *string
	Kind           *string
	Location       *string
	Type           *string
	Tags           map[string]*string
}

type SpringCloudServiceNetworkProfile

type SpringCloudServiceNetworkProfile struct {
	ServiceRuntimeSubnetID             *string
	AppSubnetID                        *string
	ServiceCidr                        *string
	ServiceRuntimeNetworkResourceGroup *string
	AppNetworkResourceGroup            *string
	OutboundPublicIPs                  *[]string
}

type StorageSyncPrivateEndpointConnections

type StorageSyncPrivateEndpointConnections struct {
	PrivateEndpointPropertyID         interface{}
	PrivateLinkServiceConnectionState interface{}
	ProvisioningState                 interface{}
	ID                                *string
	Name                              *string
	Type                              *string
}

type SynapseWorkspaceEncryption

type SynapseWorkspaceEncryption struct {
	DoubleEncryptionEnabled *bool
	CmkStatus               *string
	CmkKey                  interface{}
}

type ThroughputSettings

type ThroughputSettings = struct {
	ID                                   string
	Name                                 string
	Type                                 string
	Location                             string
	ResourceThroughput                   int32
	ResourceMinimumThroughput            string
	ResourceOfferReplacePending          string
	ResourceRid                          string
	ResourceTs                           float64
	ResourceEtag                         string
	AutoscaleSettingsMaxThroughput       int32
	AutoscaleSettingsTargetMaxThroughput int32
	AutoscaleSettingsThroughputPolicy    documentdb.ThroughputPolicyResource
}

type UsageDetails

type UsageDetails struct {
	Scope             *string
	Kind              consumption.Kind
	ID                *string
	Name              *string
	Type              *string
	Etag              *string
	Tags              map[string]*string
	ModernUsageDetail map[string]interface{}
	LegacyUsageDetail map[string]interface{}
}

type VMSizeInfo

type VMSizeInfo struct {
	*armcompute.VirtualMachineSize
	Location string
}

type VariableDetails

type VariableDetails struct {
	AccountName string
	automation.Variable
}

Source Files

Jump to

Keyboard shortcuts

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