Documentation
¶
Index ¶
- func ConstructRoleAssignmentId(azureResourceId, tenantId string) string
- func DestructRoleAssignmentId(id string) (string, string)
- func ValidateRoleManagementPolicyId(input interface{}, key string) (warnings []string, errors []error)
- func ValidateScopedRoleAssignmentID(input interface{}, key string) (warnings []string, errors []error)
- type PimRoleAssignmentId
- type RoleAssignmentId
- type RoleDefinitionID
- type RoleManagementPolicyId
- type ScopedRoleAssignmentId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PimRoleAssignmentId ¶
func NewPimRoleAssignmentID ¶
func NewPimRoleAssignmentID(scope string, roleDefinitionId string, principalId string) PimRoleAssignmentId
func PimRoleAssignmentID ¶
func PimRoleAssignmentID(input string) (*PimRoleAssignmentId, error)
func (PimRoleAssignmentId) ID ¶
func (id PimRoleAssignmentId) ID() string
func (PimRoleAssignmentId) String ¶
func (id PimRoleAssignmentId) String() string
type RoleAssignmentId ¶
type RoleAssignmentId struct { SubscriptionID string ResourceGroup string ManagementGroup string ResourceScope string ResourceProvider string Name string SubscriptionAlias string TenantId string IsSubscriptionLevel bool IsSubscriptionAliasLevel bool }
func NewRoleAssignmentID ¶
func NewRoleAssignmentID(subscriptionId, resourceGroup, resourceProvider, resourceScope, managementGroup, name, tenantId, subscriptionAlias string, isSubLevel bool, isSubAliasLevel bool) (*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 ¶
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
func (RoleDefinitionID) ID ¶
func (r RoleDefinitionID) ID() string
func (RoleDefinitionID) Segments ¶
func (r RoleDefinitionID) Segments() []resourceids.Segment
func (RoleDefinitionID) String ¶
func (r RoleDefinitionID) String() string
type RoleManagementPolicyId ¶
func NewRoleManagementPolicyId ¶
func NewRoleManagementPolicyId(roleDefinitionId string, scope string) RoleManagementPolicyId
func RoleManagementPolicyID ¶
func RoleManagementPolicyID(input string) (*RoleManagementPolicyId, error)
RoleManagementPolicyID parses 'input' into a RoleManagementPolicyId
func (RoleManagementPolicyId) ID ¶
func (id RoleManagementPolicyId) ID() string
func (RoleManagementPolicyId) String ¶
func (id RoleManagementPolicyId) String() string
type ScopedRoleAssignmentId ¶
type ScopedRoleAssignmentId struct { ScopedId roleassignments.ScopedRoleAssignmentId TenantId string }
func NewScopedRoleAssignmentID ¶
func NewScopedRoleAssignmentID(scope string, roleAssignmentName string, tenantId string) ScopedRoleAssignmentId
func ScopedRoleAssignmentID ¶
func ScopedRoleAssignmentID(input string) (*ScopedRoleAssignmentId, error)
func (ScopedRoleAssignmentId) ID ¶
func (id ScopedRoleAssignmentId) ID() string
func (ScopedRoleAssignmentId) String ¶
func (id ScopedRoleAssignmentId) String() string
Click to show internal directories.
Click to hide internal directories.