Get Entities

get

/serviceapi/entityModel/uds/entities

Retrieves the entities according to the given entity parameters in the path.

Query Entity criteria by searching for the Entity name, the Entity Type, or Tag key:value pair. For more information about Tag criteria, see API Overview.

Request

Supported Media Types
Query Parameters
  • the entity name of the entities to be looked up
  • Collection Format: multi
    the entity type of the entities to be looked up
  • the number of entries in the result to be returend in one REST call
    Default Value: 2000
  • the offset into the result list when doing a query with limit
    Default Value: 0
  • Collection Format: multi
    a tag key to query for
  • Collection Format: multi
    a tag value corresponding to a key to query for
Back to Top

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : ItemListUdsManageableEntity
Type: object
Show Source
Nested Schema : items
Type: array
The items
Show Source
  • UdsManageableEntity

    This model describes an entity managed by Oracle Management Cloud. An entity is defined by its name and type. It can have a different display name than the entity name. The display name is used in the GUI to display the entity. There can be associations to other entities and an entity can be tagged by a key/value pair.

Nested Schema : UdsManageableEntity
Type: object

This model describes an entity managed by Oracle Management Cloud. An entity is defined by its name and type. It can have a different display name than the entity name. The display name is used in the GUI to display the entity. There can be associations to other entities and an entity can be tagged by a key/value pair.

Show Source
Nested Schema : associations
Type: array
The associated entities
Show Source
  • UdsAssociation

    This model describes an association between two or more entities. An entity can have associations to other entities which are called associates.

Nested Schema : properties
Type: object
Additional Properties Allowed
Show Source
The properties assigned to the entity
Nested Schema : tags
Type: object
Additional Properties Allowed
Show Source
The tags assigned to the entity
Nested Schema : UdsAssociation
Type: object

This model describes an association between two or more entities. An entity can have associations to other entities which are called associates.

Show Source
Nested Schema : tags
Type: object
Additional Properties Allowed
Show Source
The association tags
Back to Top

Examples

Get the Entity with type HostLinux and name myHostEntity:

curl -u ${OMC_USERNAME}:${PASSWORD} -X GET "https://serverurl/serviceapi/entityModel/uds/entities?entityType=HostLinux&entityName=myHostEntity"

The response might look like the following:

{
  "count": 1,
  "items": [
    {
      "entityType": "HostLinux",
      "entityName": "myHostEntity",
      "entityDisplayName": "Test Linux Server",
      "typeDisplayName": "HostLinux"
    }
  ]
}

Get the Entity with tags org:sales and loc:sfo:

curl -u ${OMC_USERNAME}:${PASSWORD} -X GET "https://serverurl/serviceapi/entityModel/uds/entities?tagKey=org&tagValue=sales&tagKey=loc&tagValue=sfo"

The response might look like the following if there is only one such entity

{
  "count": 1,
  "items": [
  {
    "entityType": "HostLinux",
    "entityName": "SfoSales",
    "entityDisplayName": "SfoSales",
    "tags": {
      "loc": "sfo",
      "org": "sales"
    },
    "typeDisplayName": "HostLinux"
  }
  ]
}

Get all Entities with names starting with Sfo:

curl -u ${OMC_USERNAME}:${PASSWORD} -X GET "https://serverurl/serviceapi/entityModel/uds/entities?entityName=Sfo*"
{
  "count": 2,
  "items": [
    {
      "entityType": "HostLinux",
      "entityName": "SfoSales",
      "entityDisplayName": "SfoSales",
      "tags": {
        "loc": "sfo",
        "org": "sales"
      },
      "typeDisplayName": "HostLinux"
    },
    {
      "entityType": "HostLinux",
      "entityName": "SfoSupport",
      "entityDisplayName": "SfoSupport",
      "tags": {
        "loc": "sfo",
        "org": "support"
      },
      "typeDisplayName": "HostLinux"
    }
  ]
}
Back to Top