SubjectRoleMedia
SubjectRoleMedia
Represents a role assigned to a subject, including role type, name, and associated resources.
JSON Example
{
"name": "admin",
"resources": [
"string"
],
"_links": {
"self": {
"href": "https://example.com/path-to-self"
}
},
"display_name": "Administrator",
"membership_type": [
"DIRECT",
"GROUP"
],
"group_ids": [
"groupId1",
"groupId2"
],
"sub_roles": [
{
"type": "nsx",
"names": [
{
"name": "moderator",
"display_name": "Moderator"
}
],
"_links": {
"self": {
"href": "https://example.com/path-to-self"
}
}
}
],
"expires_at": 1700000000000
}
string
name
Optional
The name of the role
array of
string
resources
Optional
List of resources associated with the role
object
_links
Optional
The resource HATEOAS links. Usually includes a "self" link for this resource
string
display_name
Optional
The display name of the role
array of
string
membership_type
Optional
The membership type of the subject. Can be 'group' and/or 'direct' to specify if the role is assigned via group or directly.
Possible values are :
DIRECT,
GROUP,
array of
string
group_ids
Optional
List of group IDs to which the role is associated
integer As int64
As int64
expires_at
Optional
The expiration time of the role assignment in milliseconds (optional)