cps_assign_computer_role
Assigns a computer role.
Path:
/lib/jobs/cps_assign_computer_role.js
Parameters:
Name | Type | Description |
---|---|---|
ScopeType | String | The scope for the role. |
ResourceId | String | The ID of the resource for which the role is being assigned. |
RoleName | String | The name of the role to assign. |
RoleDescription | String | A description of the role to assign. |
RoleZoneDn | String | |
RoleZoneCanonicalName | String | |
RequestedOptions | Object | |
RequestedOptions.AssignmentType | String | |
RequestedOptions.StartGrantValue | Integer | |
RequestedOptions.StartTimeInterval | Integer | |
RequestedOptions.EndGrantValue | Integer | |
RequestedOptions.EndTimeInterval | Integer | |
Reason | String | The reason for the assignment. |
Example Request:
POST /jobflow/startjob
{
"script":"/lib/jobs/cps_assign_computer_role.js",
"args":{
"ScopeType":"Computer",
"ResourceId":"be1234...",
"RoleName":"AAAA - Unix Admin/AIX",
"RoleDescription":"Role ofr root equivalent. Custom Role by Bob. Unix Admin",
"RoleZoneDn":"CN=AIX,CN=Global,CN=Zones,OU=Centrify,DC=resource,DC=centrify,DC=lab",
"RoleZoneCanonicalName":"test.com/test/Zones/Global/ABC",
"RequestedOptions":{
"AssignmentType":"temp",
"StartGrantValue":60,
"StartTimeInterval":1,
"EndGrantValue":60,
"EndTimeInterval":1
},
"Reason":null
}
}
Example Response:
{
"success": true,
"Result": "5ba87....",
"Message": null,
"MessageID": null,
"Exception": null,
"ErrorID": null,
"ErrorCode": null,
"InnerExceptions": null
}
Updated about 5 years ago