Get Entity Types
get
/serviceapi/entityModel/uds/entityTypes
Retrieves a list of entity types.
Request
Supported Media Types
- application/json
Query Parameters
-
entityType(optional): string
the name of the entity type(s) to be looked up, support wild card character
-
limit(optional): integer(int32)
the number of entries in the result to be returend in one REST callDefault Value:
2000
-
offset(optional): integer(int32)
the offset into the result list when doing a query with limitDefault Value:
0
Response
Supported Media Types
- application/json
200 Response
successful operation
Root Schema : ItemListUdsEntityType
Type:
Show Source
object
-
count:
integer(int32)
The number of items in the list
-
hasMore:
boolean
Default Value:
false
Indicates if there are more items -
items:
array items
The items
-
nextLink(optional):
string
The link to get the next chunk of items (if paging)
-
previousLink(optional):
string
The link to the previous chunk of items (if paging)
-
totalCount(optional):
integer(int32)
The total number of items (if paging)
Nested Schema : items
Type:
array
The items
Show Source
-
Array of:
object UdsEntityType
Describes an entity type.
Nested Schema : UdsEntityType
Type:
object
Describes an entity type.
-
entityType:
string
The entity typeExample:
my_host
-
metrics(optional):
array metrics
The metrics for this entity type
-
properties(optional):
array properties
The Properties for this entity type
-
typeDisplayName(optional):
string
The entity type display nameExample:
My Host Type
Nested Schema : metrics
Type:
array
The metrics for this entity type
Show Source
-
Array of:
object UdsMetricType
Describes a metric type.
Nested Schema : properties
Type:
array
The Properties for this entity type
Show Source
-
Array of:
object UdsPropertyType
Describes a property type.
Nested Schema : UdsMetricType
Type:
object
Describes a metric type.
-
dimensions(optional):
array dimensions
The dimensions of this metric
-
group(optional):
string
The metric group nameExample:
cpuUtil
-
metric:
string
The metric nameExample:
cpuIdle
-
type:
string
The metric typeExample:
NUM
Nested Schema : UdsPropertyType
Type:
object
Describes a property type.
-
displayName:
string
The display name of a propertyExample:
listen port
-
identifyingProperty:
boolean
Default Value:
false
The identifying propertyExample:false
-
name:
string
The name of the propertyExample:
port
Examples
Get all Entity Types which start with My:
curl -u ${OMC_USERNAME}:${PASSWORD} -X GET "https://serverurl/serviceapi/entityModel/uds/entityTypes?entityType=My*"
Result:
{ "count": 1, "items": [ { "entityType": "MyHostType", "typeDisplayName": "My Host Type", "metrics": [ { "metric": "cpuIdle", "type": "NUM", "dimensions": [ "cpuId" ] }, { "metric": "cpuSystem", "type": "NUM", "dimensions": [ "cpuId" ] }, { "metric": "cpuUser", "type": "NUM", "dimensions": [ "cpuId" ] } ] } ] }Back to Top