azure

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: Apache-2.0, Apache-2.0 Imports: 29 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."
	ColumnDescriptionMetadata         = "Platform Metadata of the Azure resource."
	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

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 CacheNetworkSettingsInfo

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

type CacheUpgradeStatusInfo

type CacheUpgradeStatusInfo struct {
	CurrentFirmwareVersion *string
	FirmwareUpdateStatus   interface{}
	FirmwareUpdateDeadline *time.Time
	LastFirmwareUpdate     *time.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 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 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
}

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

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 VariableDetails

type VariableDetails struct {
	AccountName string
	automation.Variable
}

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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