Skip to main content

Update Entity Security Associations

Update Entity Security Associations

Request Body
  • entityAssociated object
  • entity object[]
  • entityType int32

    Valid values are: 3 - client, 28 - client group, 4 - agent, 5 - instance, 7 - subclient, 64 - alert, 158 - plans

  • _type_ int32 required

    Type of entity to add security association. Valid values are: 3 - client, 28 - client group, 4 - agent, 5 - instance, 7 - subclient, 64 - alert, 150 - plans

  • entityId int32
  • clientId int32
  • clientGroupId int32
  • credentialId int32
  • securityAssociations object
  • associationsOperationType string
  • associations object[]
  • userOrGroup object[]
  • groupId int32
  • externalGroupName string
  • userGroupName string
  • userGroupId int32
  • properties object
  • role object
  • roleId int32
Responses

OK


Schema
  • response object[]
  • warningCode integer
  • errorCode integer
  • warningMessage string
POST /security    

Authorization

type: apiKeyname: Authtokenin: header

Request

Click Edit to configure Base URL
https://CommandCenterHostName/commandcenter/api
Security Scheme
token
Body

{
"entityAssociated": {
"entity": [
{
"entityType": 0,
"_type_": 0,
"entityId": 0,
"clientId": 0,
"clientGroupId": 0,
"credentialId": 0
}
]
},
"securityAssociations": {
"associationsOperationType": "string",
"associations": [
{
"userOrGroup": [
{
"groupId": 0,
"externalGroupName": "string",
"userGroupName": "string",
"userGroupId": 0
}
],
"properties": {
"role": {
"roleId": 0
}
}
}
]
}
}
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Security' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"entityAssociated": {
"entity": [
{
"entityType": 0,
"_type_": 0,
"entityId": 0,
"clientId": 0,
"clientGroupId": 0,
"credentialId": 0
}
]
},
"securityAssociations": {
"associationsOperationType": "string",
"associations": [
{
"userOrGroup": [
{
"groupId": 0,
"externalGroupName": "string",
"userGroupName": "string",
"userGroupId": 0
}
],
"properties": {
"role": {
"roleId": 0
}
}
}
]
}
}'