Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureCredentials ¶
type AzureCredentials struct {
ClientId string `json:"clientId"`
ClientSecret string `json:"clientSecret"`
SubscriptionId string `json:"subscriptionId"`
TenantId string `json:"tenantId"`
}
Required model structure for Azure Credentials tools
type EnsureRoleAssignmentsOptions ¶
type EnsureRoleAssignmentsOptions struct {
// Scope overrides the implicit Subscription level scope used by EnsureRoleAssignments.
Scope *string
}
type EntraIdService ¶
type EntraIdService interface {
GetServicePrincipal(
ctx context.Context,
subscriptionId string,
appIdOrName string,
) (*graphsdk.ServicePrincipal, error)
CreateOrUpdateServicePrincipal(
ctx context.Context,
subscriptionId string,
appIdOrName string,
options CreateOrUpdateServicePrincipalOptions,
) (*graphsdk.ServicePrincipal, error)
ResetPasswordCredentials(
ctx context.Context,
subscriptionId string,
appId string,
) (*AzureCredentials, error)
ApplyFederatedCredentials(
ctx context.Context,
subscriptionId string,
clientId string,
federatedCredentials []*graphsdk.FederatedIdentityCredential,
) ([]*graphsdk.FederatedIdentityCredential, error)
CreateRbac(ctx context.Context, subscriptionId string, scope, roleId, principalId string) error
EnsureRoleAssignments(
ctx context.Context,
subscriptionId string,
roleNames []string,
servicePrincipal *graphsdk.ServicePrincipal,
options *EnsureRoleAssignmentsOptions,
) error
}
EntraIdService provides actions on top of Azure Active Directory (AD)
func NewEntraIdService ¶
func NewEntraIdService( credentialProvider account.SubscriptionCredentialProvider, armClientOptions *arm.ClientOptions, coreClientOptions *azcore.ClientOptions, ) EntraIdService
Creates a new instance of the EntraIdService
type ServiceTreeInvalidError ¶
ServiceTreeInvalidError represents an error that occurs when invalid value is provider for service tree id
func (*ServiceTreeInvalidError) Error ¶
func (e *ServiceTreeInvalidError) Error() string
func (*ServiceTreeInvalidError) Unwrap ¶
func (e *ServiceTreeInvalidError) Unwrap() error
type ServiceTreeNullValueError ¶
ServiceTreeNullValueError represents an error that occurs when a null value is provided for ServiceManagementReference
func (*ServiceTreeNullValueError) Error ¶
func (e *ServiceTreeNullValueError) Error() string
func (*ServiceTreeNullValueError) Unwrap ¶
func (e *ServiceTreeNullValueError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.