Delete an entity type and/or optional metric type
delete
/serviceapi/entityModel/uds/entityTypes
Deletes an entity type or a metric.
Note that you can only delete user-defined Entity Types if there is no more existing entities of that entity type.
Request
Supported Media Types
- application/json
Query Parameters
-
confirm: string
must be set to true for the deletion to happen
-
entityType: string
The entity type
-
metricType(optional): string
The optional metric type
Response
Supported Media Types
- application/json
204 Response
Success - Entity Type deleted
Examples
Delete a Metric:
curl -u ${OMC_USERNAME}:${PASSWORD} -X DELETE "https://serverurl/serviceapi/entityModel/uds/entityTypes?entityType=MyHostType&metricType=cpuUser&confirm=true"
Delete an Entity Type:
curl -u ${OMC_USERNAME}:${PASSWORD} -X DELETE "https://serverurl/serviceapi/entityModel/uds/entityTypes=MyHostType&confirm=true"Back to Top