Documentation
¶
Index ¶
- Variables
- func AzInventoryCommand(AzTenantID, AzSubscriptionID, AzOutputDirectory, Version string, ...) error
- func AzRBACCommand(AzTenantID, AzSubscription, AzOutputFormat, AzOutputDirectory, Version string, ...) error
- func AzStorageCommand(AzTenantID, AzSubscription, AzOutputFormat, AzOutputDirectory, Version string, ...) error
- func AzVMsCommand(AzTenantID, AzSubscription, AzOutputFormat, AzOutputDirectory, Version string, ...) error
- func AzWhoamiCommand(AzOutputDirectory, version string, AzWrapTable bool, AzVerbosity int, ...) error
- func GetDefaultDomainFromTenantID(tenantID string) (string, error)
- func GetSubscriptionID(subscription string) *string
- func GetSubscriptionIDFromName(subscriptionName string) *string
- func GetSubscriptionNameFromID(subscriptionID string) *string
- func GetSubscriptionsPerTenantID(tenantID string) []subscriptions.Subscription
- func GetTenantIDPerSubscription(subscriptionID string) *string
- type AzureADUsersTestFile
- type CloudFoxRBACclient
- type ResourcesTestFile
- type RoleAssignmentRelevantData
- type RoleAssignmentsTestFile
- type RoleDefinitionTestFile
- type SubsriptionInfo
- type TenantInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var GetSubscriptions = getSubscriptionsOriginal
Functions ¶
func AzInventoryCommand ¶ added in v1.10.0
func AzRBACCommand ¶ added in v1.9.0
func AzStorageCommand ¶ added in v1.9.0
func AzVMsCommand ¶ added in v1.12.0
func AzWhoamiCommand ¶ added in v1.9.0
func GetDefaultDomainFromTenantID ¶ added in v1.12.0
func GetSubscriptionID ¶ added in v1.12.0
function that takes the AzSubscription string and first checks to see if it is a valid subscription ID, and if not, checks to see if it is a valid subscription display name. It then returns the subscription ID
func GetSubscriptionIDFromName ¶ added in v1.12.0
func GetSubscriptionNameFromID ¶ added in v1.12.0
function that takes a subscription ID and returns the DisplayName of the subscription
func GetSubscriptionsPerTenantID ¶ added in v1.10.0
func GetSubscriptionsPerTenantID(tenantID string) []subscriptions.Subscription
func GetTenantIDPerSubscription ¶ added in v1.10.0
Types ¶
type AzureADUsersTestFile ¶ added in v1.9.0
type CloudFoxRBACclient ¶ added in v1.9.0
type CloudFoxRBACclient struct {
AADUsers []graphrbac.User
// contains filtered or unexported fields
}
func (*CloudFoxRBACclient) GetRelevantRBACData ¶ added in v1.9.0
func (c *CloudFoxRBACclient) GetRelevantRBACData(tenantID, subscriptionID string) ([]string, [][]string)
type ResourcesTestFile ¶ added in v1.9.0
type ResourcesTestFile struct {
Tenants []struct {
DisplayName *string `json:"displayName"`
TenantID *string `json:"tenantId"`
DefaultDomain *string `json:"defaultDomain,omitempty"`
Subscriptions []struct {
DisplayName *string `json:"displayName"`
SubscriptionId *string `json:"subscriptionId"`
ResourceGroups []struct {
Name *string `json:"Name"`
ID *string `json:"id"`
Location *string `json:"location"`
} `json:"ResourceGroups"`
} `json:"Subscriptions"`
} `json:"Tenants"`
}
type RoleAssignmentRelevantData ¶ added in v1.9.0
type RoleAssignmentRelevantData struct {
// contains filtered or unexported fields
}
type RoleAssignmentsTestFile ¶ added in v1.9.0
type RoleAssignmentsTestFile struct {
RoleAssignments []authorization.RoleAssignment `json:"RoleAssignments"`
}
type RoleDefinitionTestFile ¶ added in v1.9.0
type RoleDefinitionTestFile struct {
RoleDefinitions []authorization.RoleDefinition `json:"roleDefinitions"`
}
type SubsriptionInfo ¶ added in v1.12.0
type SubsriptionInfo struct {
Subscription subscriptions.Subscription
ID string
Name string
}
func PopulateSubsriptionType ¶ added in v1.12.0
func PopulateSubsriptionType(subscription string) SubsriptionInfo
function that determines if AzSubsriptionType is a subscription ID or a subscription display name and returns the AzSubsriptionType struct with both populated
type TenantInfo ¶ added in v1.12.0
type TenantInfo struct {
ID *string
DefaultDomain *string
Subscriptions []SubsriptionInfo
}
Click to show internal directories.
Click to hide internal directories.