Get the target with the given id

get

https://EM_HOST:8080/em/api/targets/{targetId}

This api returns the target with the given id. It allows to expand the target properties, the groups which include the target and the targets access points.

Request

Path Parameters
Query Parameters
  • used to request additional detail about the targets. The supported values are properties and accessPoints given as a comma-separated list.
    Example:
    properties,accessPoints

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Successful Response
Body ()
Root Schema : Target
Type: object
This is the representation of an EM target resource.
Show Source
Nested Schema : accessPoints
Type: array
the targets access points
Show Source
Example:
[
    {
        "name":"ap_name",
        "type":"ap_type",
        "agent":"http://name.of.my.host:12345/emd/main"
    }
]
Nested Schema : properties
Type: array
the target properties
Show Source
Example:
[
    {
        "id":"orcl_gtp_os",
        "name":"Operating System",
        "displayName":"Betriebssystem",
        "value":"Linux"
    },
    {
        "id":"orcl_gtp_platform",
        "name":"Platform",
        "displayName":"Plattform",
        "value":"x86_64"
    }
]
Nested Schema : AccessPoint
Type: object
This is the representation of a target access point.
Show Source
Nested Schema : TargetPropertySummary
Type: object
A target property describes a property of a target by id, name, display name and the value
Show Source

400 Response

Error while processing the request. See the response message for the reason.
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

401 Response

client is not authenticated
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

404 Response

resource not found or not authorized
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

500 Response

internal error serving the request
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

503 Response

indicates that a required service is not available.
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported
Back to Top