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 ConfigSchema = map[string]*schema.Attribute{ "tenant_id": { Type: schema.TypeString, }, "subscription_id": { Type: schema.TypeString, }, "client_id": { Type: schema.TypeString, }, "client_secret": { Type: schema.TypeString, }, "certificate_path": { Type: schema.TypeString, }, "certificate_password": { Type: schema.TypeString, }, "username": { Type: schema.TypeString, }, "password": { Type: schema.TypeString, }, "environment": { Type: schema.TypeString, }, "ignore_error_codes": { Type: schema.TypeList, Elem: &schema.Attribute{Type: schema.TypeString}, }, }
Functions ¶
func ConfigInstance ¶
func ConfigInstance() interface{}
func GetConfig ¶
func GetConfig(connection *plugin.Connection) azureConfig
GetConfig :: retrieve and cast connection config from query data
Types ¶
type Session ¶
type Session struct { Authorizer autorest.Authorizer CloudEnvironment string Expires *time.Time GraphEndpoint string ResourceManagerEndpoint string StorageEndpointSuffix string SubscriptionID string TenantID string }
Session info
func GetNewSession ¶
func GetNewSession(ctx context.Context, d *plugin.QueryData, tokenAudience string) (session *Session, err error)
GetNewSession 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. MSI 5. CLI
Click to show internal directories.
Click to hide internal directories.