parse

package
v2.96.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructRoleAssignmentId

func ConstructRoleAssignmentId(azureResourceId, tenantId string) string

Types

type RoleAssignmentId

type RoleAssignmentId struct {
	SubscriptionID   string
	ResourceGroup    string
	ManagementGroup  string
	ResourceScope    string
	ResourceProvider string
	Name             string
	TenantId         string
}

func NewRoleAssignmentID

func NewRoleAssignmentID(subscriptionId, resourceGroup, resourceProvider, resourceScope, managementGroup, name, tenantId string) (*RoleAssignmentId, error)

func RoleAssignmentID

func RoleAssignmentID(input string) (*RoleAssignmentId, error)

func (RoleAssignmentId) AzureResourceID

func (id RoleAssignmentId) AzureResourceID() string

in general case, the id format does not change for cross tenant scenario, add the tenantId info

func (RoleAssignmentId) ID

func (id RoleAssignmentId) ID() string

type RoleDefinitionID

type RoleDefinitionID struct {
	ResourceID string
	Scope      string
	RoleID     string
}

func RoleDefinitionId

func RoleDefinitionId(input string) (*RoleDefinitionID, error)

RoleDefinitionId is a pseudo ID for storing Scope parameter as this it not retrievable from API It is formed of the Azure Resource ID for the Role and the Scope it is created against

Jump to

Keyboard shortcuts

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