Create an Entity
Select
Customer Managed
This operation creates a new entity
Request Body
Name | Description |
entityName | Desired name of the entity |
regularExpression | Desired regular expresssion of entity |
parentEntityId | Id value of desired parent entity |
flags | Sensitivity value of entity values: 1 - moderate 3 - high 5 - critical |
enabled | boolean value to represent enable value of entity values: true - enable entity false - disable entity |
keywords | String of desired keywords, separated by commas |
Header Parameters
- Accept string required
- application/json
Request Body
- entityName string
- regularExpression string
- parentEntityId integer
- flags integer
- enabled boolean
entityXML object
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
entityDetails object[]
{
"entityDetails": [
{
"regularExpression": "string",
"displayName": "string",
"flags": 0,
"parentEntityId": 0,
"categoryName": "string",
"enabled": true,
"entityName": "string",
"entityType": 0,
"entityKey": "string",
"entityId": 0,
"entityXML": {
"keywords": "string"
}
}
]
}
{
"entityDetails": [
{
"regularExpression": "{\"entity_regex\":\"Sample Regular Expression\"}",
"displayName": "RestApiEntity",
"flags": 1,
"parentEntityId": 0,
"categoryName": "Custom Entity",
"enabled": true,
"entityName": "RestApiEntity",
"entityType": 2,
"entityKey": "restapientity",
"entityId": 110,
"entityXML": {
"keywords": "Sample Keyword, Sample Keyword 2"
}
}
]
}
POST /dcube/entity
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/dcube/entity' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"entityName": "string",
"regularExpression": "string",
"parentEntityId": 0,
"flags": 0,
"enabled": true,
"entityXML": {
"keywords": "string"
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/dcube/entity' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"entityName": "string",
"regularExpression": "string",
"parentEntityId": 0,
"flags": 0,
"enabled": true,
"entityXML": {
"keywords": "string"
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/dcube/entity' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"entityName": "string",
"regularExpression": "string",
"parentEntityId": 0,
"flags": 0,
"enabled": true,
"entityXML": {
"keywords": "string"
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/dcube/entity' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"entityName": "string",
"regularExpression": "string",
"parentEntityId": 0,
"flags": 0,
"enabled": true,
"entityXML": {
"keywords": "string"
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/dcube/entity' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"entityName": "string",
"regularExpression": "string",
"parentEntityId": 0,
"flags": 0,
"enabled": true,
"entityXML": {
"keywords": "string"
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/dcube/entity' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"entityName": "string",
"regularExpression": "string",
"parentEntityId": 0,
"flags": 0,
"enabled": true,
"entityXML": {
"keywords": "string"
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/dcube/entity' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"entityName": "string",
"regularExpression": "string",
"parentEntityId": 0,
"flags": 0,
"enabled": true,
"entityXML": {
"keywords": "string"
}
}'