Documentation
¶
Index ¶
- Constants
- Variables
- func ApplyRetryRules(ctx context.Context, client interface{}, connection *plugin.Connection)
- func ConfigInstance() interface{}
- func GetConfig(connection *plugin.Connection) azureConfig
- func Plugin(ctx context.Context) *plugin.Plugin
- func WillExpireIn(t time.Time, d time.Duration) bool
- type AppServicePlanApp
- type AzureCostUsageQuals
- type BackendWithServiceName
- type CacheNetworkSettingsInfo
- type CacheUpgradeStatusInfo
- type CognitiveAccountPrivateEndpointConnections
- type CollectionThroughputSettings
- type CostManagementRow
- type DataProtectionJobInfo
- type DatasetInfo
- type FileShareInfo
- type JobInfo
- type LoadBalancerNatRulesInfo
- type LoadBalancerOutboundRulesInfo
- type PrivateConnection
- type PrivateConnectionInfo
- type PrivateEndpointConnection
- type PrivateEndpointConnectionInfo
- type ProtectionPolicyResource
- type RestorableLocationResource
- type RetryRule
- type ScaleSetVMInfo
- type SecurityCenterSettings
- type ServerKeyInfo
- type Session
- type SessionNew
- type SignalRServicePrivateEndpointConnections
- type SlotInfo
- type SpringCloudServiceNetworkProfile
- type StorageSyncPrivateEndpointConnections
- type SynapseWorkspaceEncryption
- type ThroughputSettings
- type UsageDetails
- type VMSizeInfo
- type VariableDetails
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
Types ¶
type AppServicePlanApp ¶
type AzureCostUsageQuals ¶
type BackendWithServiceName ¶
type BackendWithServiceName struct {
apimanagement.BackendContract
ServiceName string
}
type CacheUpgradeStatusInfo ¶
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 {
}
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 ProtectionPolicyResource ¶
type ProtectionPolicyResource struct {
backup.ProtectionPolicyResource
VaultName string
Location string
AzureVMWorkloadProtectionPolicy *backup.AzureVMWorkloadProtectionPolicy
AzureIaaSVMProtectionPolicy *backup.AzureIaaSVMProtectionPolicy
AzureSqlProtectionPolicy *backup.AzureSQLProtectionPolicy
GenericProtectionPolicy *backup.GenericProtectionPolicy
MabProtectionPolicy *backup.MabProtectionPolicy
ProtectionPolicy *backup.ProtectionPolicy
}
// LIST FUNCTION
type ScaleSetVMInfo ¶
type ScaleSetVMInfo struct {
ScaleSetName string
compute.VirtualMachineScaleSetVM
}
type SecurityCenterSettings ¶
type ServerKeyInfo ¶
type Session ¶
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 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 VMSizeInfo ¶
type VMSizeInfo struct {
*armcompute.VirtualMachineSize
Location string
}
type VariableDetails ¶
type VariableDetails struct {
AccountName string
automation.Variable
}
Source Files
¶
- common_columns.go
- connection_config.go
- cost_management.go
- errors.go
- monitoring_metric.go
- plugin.go
- service.go
- table_azure_alert_management.go
- table_azure_api_management.go
- table_azure_api_management_backend.go
- table_azure_app_configuration.go
- table_azure_app_service_environment.go
- table_azure_app_service_function_app.go
- table_azure_app_service_plan.go
- table_azure_app_service_web_app.go
- table_azure_app_service_web_app_slot.go
- table_azure_application_gateway.go
- table_azure_application_insight.go
- table_azure_application_security_group.go
- table_azure_automation_account.go
- table_azure_automation_variable.go
- table_azure_backup_policy.go
- table_azure_bastion_host.go
- table_azure_batch_account.go
- table_azure_cdn_frontdoor_profile.go
- table_azure_cognitive_account.go
- table_azure_compute_availability_set.go
- table_azure_compute_disk.go
- table_azure_compute_disk_access.go
- table_azure_compute_disk_encryption_set.go
- table_azure_compute_disk_metric_read_ops.go
- table_azure_compute_disk_metric_read_ops_daily.go
- table_azure_compute_disk_metric_read_ops_hourly.go
- table_azure_compute_disk_metric_write_ops.go
- table_azure_compute_disk_metric_write_ops_daily.go
- table_azure_compute_disk_metric_write_ops_hourly.go
- table_azure_compute_image.go
- table_azure_compute_resource_sku.go
- table_azure_compute_snapshot.go
- table_azure_compute_ssh_key.go
- table_azure_compute_virtual_machine.go
- table_azure_compute_virtual_machine_metric_available_memory.go
- table_azure_compute_virtual_machine_metric_available_memory_daily.go
- table_azure_compute_virtual_machine_metric_available_memory_hourly.go
- table_azure_compute_virtual_machine_metric_cpu_utilization.go
- table_azure_compute_virtual_machine_metric_cpu_utilization_daily.go
- table_azure_compute_virtual_machine_metric_cpu_utilization_hourly.go
- table_azure_compute_virtual_machine_scale_set.go
- table_azure_compute_virtual_machine_scale_set_network_interface.go
- table_azure_compute_virtual_machine_scale_set_vm.go
- table_azure_compute_virtual_machine_size.go
- table_azure_consumption_usage.go
- table_azure_container_group.go
- table_azure_container_registry.go
- table_azure_cosmosdb_account.go
- table_azure_cosmosdb_mongo_collection.go
- table_azure_cosmosdb_mongo_database.go
- table_azure_cosmosdb_restorable_database_account.go
- table_azure_cosmosdb_sql_database.go
- table_azure_cost_by_resource_group_daily.go
- table_azure_cost_by_resource_group_monthly.go
- table_azure_cost_by_service_daily.go
- table_azure_cost_by_service_monthly.go
- table_azure_cost_forecast_daily.go
- table_azure_cost_forecast_monthly.go
- table_azure_cost_usage.go
- table_azure_data_factory.go
- table_azure_data_factory_dataset.go
- table_azure_data_factory_pipeline.go
- table_azure_data_lake_analytics_account.go
- table_azure_data_lake_store.go
- table_azure_data_protection_backup_job.go
- table_azure_data_protection_backup_vault.go
- table_azure_databox_edge_device.go
- table_azure_databricks_workspace.go
- table_azure_diagnostic_setting.go
- table_azure_dns_zone.go
- table_azure_eventgrid_domain.go
- table_azure_eventgrid_topic.go
- table_azure_eventhub_namespace.go
- table_azure_express_route_circuit.go
- table_azure_firewall.go
- table_azure_firewall_policy.go
- table_azure_frontdoor.go
- table_azure_hdinsight_cluster.go
- table_azure_healthcare_service.go
- table_azure_hpc_cache.go
- table_azure_hybrid_compute_machine.go
- table_azure_hybrid_kubernetes_connected_cluster.go
- table_azure_iothub.go
- table_azure_iothub_dps.go
- table_azure_key_vault.go
- table_azure_key_vault_certificate.go
- table_azure_key_vault_deleted_vault.go
- table_azure_key_vault_key.go
- table_azure_key_vault_key_version.go
- table_azure_key_vault_managed_hardware_security_module.go
- table_azure_key_vault_secret.go
- table_azure_kubernetes_cluster.go
- table_azure_kubernetes_service_version.go
- table_azure_kusto_cluster.go
- table_azure_lb.go
- table_azure_lb_backend_address_pool.go
- table_azure_lb_nat_rule.go
- table_azure_lb_outbound_rule.go
- table_azure_lb_probe.go
- table_azure_lb_rule.go
- table_azure_lighthouse_assignment.go
- table_azure_lighthouse_definition.go
- table_azure_location.go
- table_azure_log_alert.go
- table_azure_log_analytics_workspace.go
- table_azure_log_profile.go
- table_azure_logic_app_workflow.go
- table_azure_machine_learning_workspace.go
- table_azure_maintenance_configuration.go
- table_azure_management_group.go
- table_azure_management_lock.go
- table_azure_mariadb_server.go
- table_azure_monitor_activity_log_event.go
- table_azure_monitor_log_profile.go
- table_azure_mssql_elasticpool.go
- table_azure_mssql_managed_instance.go
- table_azure_mssql_virtual_machine.go
- table_azure_mysql_flexible_server.go
- table_azure_mysql_server.go
- table_azure_nat_gateway.go
- table_azure_network_interface.go
- table_azure_network_profile.go
- table_azure_network_security_group.go
- table_azure_network_watcher.go
- table_azure_network_watcher_flow_log.go
- table_azure_policy_assignment.go
- table_azure_policy_definition.go
- table_azure_postgresql_flexible_server.go
- table_azure_postgresql_server.go
- table_azure_private_dns_zone.go
- table_azure_private_endpoint.go
- table_azure_provider.go
- table_azure_public_ip.go
- table_azure_recovery_services_backup_job.go
- table_azure_recovery_services_vault.go
- table_azure_redis_cache.go
- table_azure_resource.go
- table_azure_resource_group.go
- table_azure_resource_link.go
- table_azure_role_assignment.go
- table_azure_role_definition.go
- table_azure_route_table.go
- table_azure_search_service.go
- table_azure_security_center_auto_provisioning.go
- table_azure_security_center_automation.go
- table_azure_security_center_contact.go
- table_azure_security_center_jit_network_access_policy.go
- table_azure_security_center_setting.go
- table_azure_security_center_sub_assessment.go
- table_azure_security_center_subscription_pricing.go
- table_azure_service_fabric_cluster.go
- table_azure_servicebus_namespace.go
- table_azure_signalr_service.go
- table_azure_spring_cloud_service.go
- table_azure_sql_database.go
- table_azure_sql_server.go
- table_azure_storage_account.go
- table_azure_storage_blob.go
- table_azure_storage_blob_service.go
- table_azure_storage_container.go
- table_azure_storage_queue.go
- table_azure_storage_share_file.go
- table_azure_storage_sync.go
- table_azure_storage_table.go
- table_azure_storage_table_service.go
- table_azure_stream_analytics_job.go
- table_azure_subnet.go
- table_azure_subscription.go
- table_azure_synapse_workspace.go
- table_azure_tenant.go
- table_azure_virtual_network.go
- table_azure_virtual_network_gateway.go
- table_azure_web_application_firewall_policy.go
- utils.go
Click to show internal directories.
Click to hide internal directories.