Bulk delete role assignments by identifiers
Bad Request
Unauthorized
Internal server error
Returns successfully/failed deleted roleassignment.
[- "string"
]
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Create multiple role assignments in a scope. Returns all successfully created role assignments. Ignores failures and duplicates.
List of role assignments to create
required | Array of objects (AuthzRoleAssignment) |
Bad Request
Unauthorized
Internal server error
Successfully created role assignments
{- "roleAssignments": [
- {
- "identifier": "string",
- "resourceGroupIdentifier": "string",
- "roleIdentifier": "string",
- "roleReference": {
- "identifier": "string",
- "scopeLevel": "string"
}, - "principal": {
- "scopeLevel": "string",
- "identifier": "string",
- "type": "USER",
- "uniqueId": "string"
}, - "disabled": true,
- "managed": true,
- "internal": true
}
]
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
List role assignments in the given scope
Bad Request
Unauthorized
Internal server error
Paginated list of role assignments in the given scope
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Creates role assignment within the specified scope.
These are details for the role assignment to create.
Bad Request
Unauthorized
Internal server error
These are details of the created role assignment.
{- "identifier": "string",
- "resourceGroupIdentifier": "string",
- "roleIdentifier": "string",
- "roleReference": {
- "identifier": "string",
- "scopeLevel": "string"
}, - "principal": {
- "scopeLevel": "string",
- "identifier": "string",
- "type": "USER",
- "uniqueId": "string"
}, - "disabled": true,
- "managed": true,
- "internal": true
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Get an existing role assignment by identifier
Bad Request
Unauthorized
Internal server error
Get an existing role assignment by identifier in the given scope
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Delete an existing role assignment by identifier
Bad Request
Unauthorized
Internal server error
Deleted role assignment
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
List role assignments in the scope according to the given filter
Filter role assignments based on multiple parameters.
Bad Request
Unauthorized
Internal server error
Paginated list of role assignments in the scope according to the given filter
{- "resourceGroupFilter": [
- "string"
], - "roleFilter": [
- "string"
], - "roleReferenceFilter": [
- {
- "identifier": "string",
- "scopeLevel": "string"
}
], - "principalTypeFilter": [
- "USER"
], - "principalScopeLevelFilter": [
- "string"
], - "principalFilter": [
- {
- "scopeLevel": "string",
- "identifier": "string",
- "type": "USER",
- "uniqueId": "string"
}
], - "harnessManagedFilter": [
- true
], - "disabledFilter": [
- true
]
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
List role assignments in the scope according to the given filter with added metadata
Filter role assignments based on multiple parameters.
Bad Request
Unauthorized
Internal server error
Paginated list of role assignments in the scope according to the given filter with added metadata.
{- "resourceGroupFilter": [
- "string"
], - "roleFilter": [
- "string"
], - "roleReferenceFilter": [
- {
- "identifier": "string",
- "scopeLevel": "string"
}
], - "principalTypeFilter": [
- "USER"
], - "principalScopeLevelFilter": [
- "string"
], - "principalFilter": [
- {
- "scopeLevel": "string",
- "identifier": "string",
- "type": "USER",
- "uniqueId": "string"
}
], - "harnessManagedFilter": [
- true
], - "disabledFilter": [
- true
]
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
List role assignments in the scope according to the given filter
Bad Request
Unauthorized
Internal server error
Paginated list of role assignments in the scope according to the given filter
{- "resourceGroupFilter": [
- "string"
], - "roleFilter": [
- "string"
], - "roleReferenceFilter": [
- {
- "identifier": "string",
- "scopeLevel": "string"
}
], - "scopeFilters": [
- {
- "filter": "EXCLUDING_CHILD_SCOPES",
- "accountIdentifier": "string",
- "orgIdentifier": "string",
- "projectIdentifier": "string"
}
], - "principalFilter": {
- "scopeLevel": "string",
- "identifier": "string",
- "type": "USER",
- "uniqueId": "string"
}, - "harnessManagedFilter": true,
- "disabledFilter": true,
- "principalTypeFilter": [
- "USER"
]
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}