List blackouts

get

https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/blackouts

This API returns a list of blackouts based on supplied criteria.

Request

Query Parameters
  • Used to include extra information in the result. Right now the only value allowed is "total" which will computes total number of blackouts matching the criteria.
    Example:
    total
  • 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 of the blackout
  • Name pattern of the blackout
  • Owner of the blackout
  • System generated page token used in the self, next and previous links.
  • Reason for the blackout
  • The sort field and direction. Allowed sort fields are "name", "status", "id", "timeToStart" and "timeToEnd". Allowed directions are ASC and DESC. Default is "name:ASC".
    Example:
    status:ASC,name:DESC
  • Status of the blackout (SCHEDULED, START_PROCESSING, START_PARTIAL, START_FAILED, STARTED, STOP_PENDING, STOP_FAILED, STOP_PARTIAL, EDIT_FAILED, EDIT_PARTIAL, EDIT_PENDING, STOPPED, ENDED, END_PARTIAL)
  • Used to only list blackouts which have the target of the given id as direct blackout member.
    Example:
    ADLKFIDYFSDHFISDOFSDF
  • Start of time period for when blackouts are scheduled to end. Timestamps are with minute accuracy and can provide timezone.
    Example:
    2021-03-01T21:23+01:00
  • End of time period for when blackouts are scheduled to end. Timestamps are with minute accuracy and can provide timezone.
    Example:
    2021-03-01T21:23+01:00
  • Start of time period for when blackouts are scheduled to start. Timestamps are with minute accuracy and can provide timezone.
    Example:
    2021-03-01T21:23+01:00
  • End of time period for when blackouts are scheduled to start. Timestamps are with minute accuracy and can provide timezone.
    Example:
    2021-03-01T21:23+01:00
  • Type of the blackout, valid values are PATCHING, NOTIFICATION or NOTIFICATION_MAINTENANCE

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : BlackoutCollection
Type: object
This is the representation of a list of blackout summaries.
Show Source
Nested Schema : items
Type: array
Blackout summaries
Show Source
Nested Schema : BlackoutSummary
Type: object
This is the representation of the Blackout summary.
Show Source
Match All
This is the representation of the Blackout summary.
Show Source
Nested Schema : Schedule
Type: object
This represents a schedule object to schedule blackouts.
Show Source
  • Repeat
    Describes repetition of a blackout.
  • Start time of the blackout with timezone. Timestamps are with minute accuracy. Timezones can be given as offset (+01:00) or as zone (Europe/Berlin).
    Example: 2023-08-24T14:54-02:00
Match One Schema
Show Source
  • TimeToEnd
    An object specifying an end time with timezone. Timestamps are with minute accuracy. Timezones can be given as offset (+01:00) or as zone (Europe/Berlin).
  • Duration
    A duration given in hours and minutes. At least one of durationHours and durationMinutes is required.
Nested Schema : Repeat
Type: object
Describes repetition of a blackout.
Show Source
  • End time of the repetition with timezone. Timestamps are with minute accuracy.
    Example: 2023-08-24T14:54-02:00
Match One Schema
Show Source
Nested Schema : TimeToEnd
Type: object
An object specifying an end time with timezone. Timestamps are with minute accuracy. Timezones can be given as offset (+01:00) or as zone (Europe/Berlin).
Show Source
Nested Schema : Duration
Type: object
A duration given in hours and minutes. At least one of durationHours and durationMinutes is required.
Show Source
Nested Schema : DaysOfYear
Type: object
List of days of year.
Show Source
Nested Schema : DaysOfMonth
Type: object
List of days of month in range 1-31 or -1 for last day of the month.
Show Source
Nested Schema : DaysOfWeek
Type: object
List of days of week.
Show Source
Nested Schema : EveryNWeeks
Type: object
Repeat every n weeks.
Show Source
Nested Schema : EveryNDays
Type: object
Repeat every n days.
Show Source
Nested Schema : EveryNHours
Type: object
Repeat every n hours.
Show Source
Nested Schema : EveryNMinutes
Type: object
Repeat every n minutes, minimal value is 2.
Show Source
Nested Schema : daysOfYear
Type: array
List of days of the year.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : daysOfMonth
Type: array
List of days of the month (1 based).
Show Source
Example:
[
    "1",
    "15"
]
Nested Schema : daysOfWeek
Type: array
List of days of week (localized short names).
Show Source
Example:
[
    "MO",
    "TH"
]
Examples

400 Response

in the case of illegal arguments like unsupported sort direction
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error.
Show Source

401 Response

Client is not authenticated.
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error.
Show Source

500 Response

Internal error serving the request.
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error.
Show Source

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
Back to Top