List targets
get
https://EM_HOST:8080/em/api/targets
This api returns a list of targets filtered with the given criteria.
Request
Query Parameters
-
displayName: array[string]
display name of the target
-
displayNameMatches: array[string]
display name pattern of the target
-
exclude: string
an excludeId with comma-separated list of bind variables. This uses a registered sql query to exclude targets from the result set. This is supporting EM console UI.Example:
notThisTypeExcludeId,host
-
include: string
a comma-separated list which indicates if status or total number of results shall be returned. Valid values are targetStatus and total.Example:
targetStatus,total
-
limit: integer(int32)
Minimum Value:
1
Maximum Value:2000
To limit the number of rows returned. If the result set is greater, follow the previous and next links in the results.Example:20
-
name: array[string]
name of the target
-
nameMatches: array[string]
name pattern of the targetExample:
my_target_%
-
owner: array[string]
owner of the target
-
page: string
System generated page token used in the self, next and previous links.
-
sort: string
A comma-separated list of sort field and direction. Allowed sort fields are name, type, displayName, typeDisplayName, owner and status. Allowed directions are DESC and ASCExample:
type:ASC,name:DESC
-
status: array[]
the status of the target
-
typeDisplayName: array[string]
type display name in the client locale
-
typeDisplayNameMatches: array[string]
type display name pattern in the client locale
-
typeName: array[string]
type of the target
-
typeNameMatches: array[string]
type pattern
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
OK
Root Schema : TargetCollection
Type:
object
This is the representation of list of target summaries.
Show Source
-
count(required): integer
Number of targets in this page.Example:
1
-
items(required): array
items
Target summaries.
-
links(required): object
links
Result set navigation links.
Nested Schema : items
Type:
array
Target summaries.
Show Source
-
Array of:
object TargetSummary
Summary information about a target.
Nested Schema : TargetSummary
Type:
object
Summary information about a target.
Show Source
-
displayName(required): string
Display of the targetExample:
My Database Instance
-
id(required): string
Target IDExample:
D91786E288D35455C3ADA1B329B49BB5
-
links: object
links
Target related links
-
name(required): string
Target NameExample:
my_database
-
owner(required): string
Owner of the targetExample:
SYSMAN
-
status: string
Allowed Values:
[ "DOWN", "UP", "METRIC_ERROR", "AGENT_DOWN", "UNREACHABLE", "BLACKOUT", "PENDING", "REMOTE_HOST_UNREACHABLE" ]
This is the representation of a target status.Example:UP
-
statusDisplayName: string
Localized statusExample:
Hochgefahren
-
statusIconPath: string
Path to the status icon which is used in UIExample:
/sdk/core/uifwk/images/status/stat_arrowup_16.png
-
typeDisplayName(required): string
Localized type display name of the targetExample:
Datenbankinstanz
-
typeName(required): string
Target Type NameExample:
oracle_database
400 Response
in the case of illegal arguments like unsupported sort direction
Root Schema : ErrorResponse
Type:
object
Response sent back in the case of an error.
Show Source
-
code: string
Status code of the error.Example:
IllegalArgument
-
message: string
A descriptive error message.Example:
argument given is not supported
401 Response
Client is not authenticated.
Root Schema : ErrorResponse
Type:
object
Response sent back in the case of an error.
Show Source
-
code: string
Status code of the error.Example:
IllegalArgument
-
message: string
A descriptive error message.Example:
argument given is not supported
500 Response
Internal error serving the request.
Root Schema : ErrorResponse
Type:
object
Response sent back in the case of an error.
Show Source
-
code: string
Status code of the error.Example:
IllegalArgument
-
message: string
A descriptive error message.Example:
argument given is not supported
503 Response
Indicates that a required service is not available.
Root Schema : ErrorResponse
Type:
object
Response sent back in the case of an error.
Show Source
-
code: string
Status code of the error.Example:
IllegalArgument
-
message: string
A descriptive error message.Example:
argument given is not supported