Documentation
¶
Index ¶
- func GetSecurityClaimByTypeAndValueAndScheme(ctx context.Context, client *APIClient, claimType string, claimValue string, ...) (*v1.SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse, error)
- func GetSecurityPermissionSetByName(ctx context.Context, client *APIClient, permissionSetName string) (*v1.PermissionSetsPermissionSetResponse, error)
- func GetSecurityRoleByName(ctx context.Context, client *APIClient, roleName string) (*v2.SecuritySecurityRolesSecurityRoleQueryResponse, error)
- type APIClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSecurityClaimByTypeAndValueAndScheme ¶
func GetSecurityClaimByTypeAndValueAndScheme(ctx context.Context, client *APIClient, claimType string, claimValue string, authenticationScheme string) (*v1.SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse, error)
The v1 APIClient exposes a method to query security claims by type and value. To retrieve a unique security claim from Command it is required to also find a claim with the matching authentication scheme, which is not queryable via the QueryString parameter. That must be done as a separate operation from the API call. This function will query the security claims by type and value, then filter the results by the authentication scheme to return a unique claim if it exists.
func GetSecurityPermissionSetByName ¶
func GetSecurityPermissionSetByName(ctx context.Context, client *APIClient, permissionSetName string) (*v1.PermissionSetsPermissionSetResponse, error)
Queries security permissions by name and returns the first matching permission set.
func GetSecurityRoleByName ¶
func GetSecurityRoleByName(ctx context.Context, client *APIClient, roleName string) (*v2.SecuritySecurityRolesSecurityRoleQueryResponse, error)
The v2 APIClient exposes a method to query a role by name. This function will query the security roles and filter security roles by name.