Get the targets in a blackout
get
https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/blackouts/{blackoutId}/targets
This API returns the targets contained in the blackout.
Request
Path Parameters
-
blackoutId(required): string
blackout id
Query Parameters
-
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 match of the target.
-
page: string
system generated page token used in the self, next and previous links.
-
sort: string
The sort field and direction. Allowed sort fields are name and id. Allowed directions are ASC and DESC.Example:
id:ASC
-
typeName: array[string]
Type name of the target.
-
typeNameMatches: array[string]
Type name match of the target.
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 references.
Show Source
-
count(required): integer
the number of items in this pageExample:
20
-
items(required): array
items
the target references
-
links(required): object
links
the result set navigation links
-
total: integer
the total number of resultsExample:
42
Nested Schema : items
Type:
array
the target references
Show Source
-
Array of:
object TargetSummary
This is a target reference.
Nested Schema : TargetSummary
Type:
object
This is a target reference.
Show Source
-
displayName(required): string
the display of the targetExample:
My Database Instance
-
id(required): string
the target ifExample:
D91786E288D35455C3ADA1B329B49BB5
-
links: object
links
the target related links
-
name(required): string
the target nameExample:
my_database
-
owner(required): string
the owner of the targetExample:
scott
-
status: string
Allowed Values:
[ "DOWN", "UP", "METRIC_ERROR", "AGENT_DOWN", "UNREACHABLE", "BLACKOUT", "PENDING", "REMOTE_HOST_UNREACHABLE" ]
This is the representation of a target status. -
typeDisplayName(required): string
the type display name of the targetExample:
Datenbankinstanz
-
typeName: string
the target type nameExample:
oracle_database
Nested Schema : Link
Type:
object
Represents a link(could be self, previous or next)
Show Source
-
href: string
URL for LinkExample:
/em/api/<resources>?page=b2Zmc2V0OjA&limit=0
401 Response
client is not authenticated
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
404 Response
target not found or not authorized
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
500 Response
internal error serving the request
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
503 Response
indicates that a required service is not available.
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string