For the complete documentation index, see llms.txt. This page is also available as Markdown.

Downtime Reasons

⚠️ Experimental — this resource is under active development and may change without notice.

Experimental

Get Downtime Reasons

get

Returns a list of downtime reasons in your organization.

Autorisierungen
AuthorizationstringErforderlich
Abfrageparameter
cursorstringOptional
limitinteger · min: 1 · max: 1000Optional

Caps the page size. Defaults to 1000, which is also the maximum; a value below 1 or above 1000 is rejected.

Default: 1000
uuidstring · uuid[] · max: 50 · nullableOptional

If not set, all downtime reasons will be considered.

catalogstring · uuid[] · max: 50 · nullableOptional

Only return reasons belonging to any of the given catalogs.

machinestring · uuid[] · max: 50 · nullableOptional

Only return reasons whose catalog is assigned to any of the given machines. If not set, reasons for all machines will be considered.

statestring · enum · nullableOptional

If not set, both active and archived reasons will be returned.

Mögliche Werte:
Antworten
200

Successful Response

application/json
get/v2/downtime-reasons
GET /api/v2/downtime-reasons HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "uuid": "123e4567-e89b-12d3-a456-426614174000",
      "name": "text",
      "description": "text",
      "category": "PLANNED",
      "group": "text",
      "state": "active",
      "catalog": "123e4567-e89b-12d3-a456-426614174000"
    }
  ],
  "metadata": {
    "next_cursor": "text"
  }
}
Experimental

Create Downtime Reason

post

Create a downtime reason within a catalog.

Autorisierungen
AuthorizationstringErforderlich
Body
catalogstring · uuidErforderlich

UUID of the active catalog to create the reason in.

namestring · min: 1Erforderlich
descriptionstring · nullableOptional

Free-text description of the downtime reason.

categorystring · enumErforderlich

One of: PLANNED, UNPLANNED, NOT_SCHEDULED, INVALID

Mögliche Werte:
groupstring · nullableOptional

Single-level, free-text group the reason belongs to.

Antworten
201

Successful Response

application/json
uuidstring · uuidErforderlich

The UUID of the downtime reason.

namestringErforderlich
descriptionstring · nullableOptional

Free-text description of the downtime reason.

categorystring · enumErforderlich

Category of the downtime reason.

Mögliche Werte:
groupstring · nullableErforderlich
statestring · enumErforderlich

Lifecycle state of the downtime reason.

Mögliche Werte:
catalogstring · uuid · nullableOptional

UUID of the catalog this reason belongs to. Resolve it via GET /api/v2/downtime-catalogs/{uuid}. null for legacy reasons not yet migrated to a catalog (only reachable as an embedded reason on GET /api/v2/downtimes).

post/v2/downtime-reasons
POST /api/v2/downtime-reasons HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 121

{
  "catalog": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "description": "text",
  "category": "PLANNED",
  "group": "text"
}
{
  "uuid": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "description": "text",
  "category": "PLANNED",
  "group": "text",
  "state": "active",
  "catalog": "123e4567-e89b-12d3-a456-426614174000"
}
Experimental

Get Downtime Reason

get

Returns details for a specific downtime reason.

Autorisierungen
AuthorizationstringErforderlich
Pfadparameter
uuidstring · uuidErforderlich
Antworten
200

Successful Response

application/json
uuidstring · uuidErforderlich

The UUID of the downtime reason.

namestringErforderlich
descriptionstring · nullableOptional

Free-text description of the downtime reason.

categorystring · enumErforderlich

Category of the downtime reason.

Mögliche Werte:
groupstring · nullableErforderlich
statestring · enumErforderlich

Lifecycle state of the downtime reason.

Mögliche Werte:
catalogstring · uuid · nullableOptional

UUID of the catalog this reason belongs to. Resolve it via GET /api/v2/downtime-catalogs/{uuid}. null for legacy reasons not yet migrated to a catalog (only reachable as an embedded reason on GET /api/v2/downtimes).

get/v2/downtime-reasons/{uuid}
GET /api/v2/downtime-reasons/{uuid} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
  "uuid": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "description": "text",
  "category": "PLANNED",
  "group": "text",
  "state": "active",
  "catalog": "123e4567-e89b-12d3-a456-426614174000"
}
Experimental

Delete Downtime Reason

delete

Delete a downtime reason. Downtimes labeled with it are kept, but lose their reason. Works on active and archived reasons. Pass dry_run=true to see how many downtimes would be affected, without deleting anything.

Autorisierungen
AuthorizationstringErforderlich
Pfadparameter
uuidstring · uuidErforderlich
Abfrageparameter
dry_runbooleanOptional

If true, nothing is deleted; the response reports what a real delete would affect.

Default: false
Antworten
200

Successful Response

application/json
unlabeled_downtimesintegerErforderlich

Number of downtimes that lose their reason; the downtimes themselves are kept (a dry run reports how many would be unlabeled).

delete/v2/downtime-reasons/{uuid}
DELETE /api/v2/downtime-reasons/{uuid} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
  "unlabeled_downtimes": 1
}
Experimental

Update Downtime Reason

patch

Update a downtime reason's name, description, or group.

Autorisierungen
AuthorizationstringErforderlich
Pfadparameter
uuidstring · uuidErforderlich
Body
namestring · min: 1Optional
descriptionstring · nullableOptional
groupstring · nullableOptional
Antworten
200

Successful Response

application/json
uuidstring · uuidErforderlich

The UUID of the downtime reason.

namestringErforderlich
descriptionstring · nullableOptional

Free-text description of the downtime reason.

categorystring · enumErforderlich

Category of the downtime reason.

Mögliche Werte:
groupstring · nullableErforderlich
statestring · enumErforderlich

Lifecycle state of the downtime reason.

Mögliche Werte:
catalogstring · uuid · nullableOptional

UUID of the catalog this reason belongs to. Resolve it via GET /api/v2/downtime-catalogs/{uuid}. null for legacy reasons not yet migrated to a catalog (only reachable as an embedded reason on GET /api/v2/downtimes).

patch/v2/downtime-reasons/{uuid}
PATCH /api/v2/downtime-reasons/{uuid} HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 51

{
  "name": "text",
  "description": "text",
  "group": "text"
}
{
  "uuid": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "description": "text",
  "category": "PLANNED",
  "group": "text",
  "state": "active",
  "catalog": "123e4567-e89b-12d3-a456-426614174000"
}
Experimental

Set Downtime Reason State

put

Archive or restore a downtime reason. A reason in an archived catalog can only be restored by restoring its catalog. Setting the state the reason is already in is a no-op.

Autorisierungen
AuthorizationstringErforderlich
Pfadparameter
uuidstring · uuidErforderlich
Body
statestring · enumErforderlich

Lifecycle state to transition the reason to.

Mögliche Werte:
Antworten
200

Successful Response

application/json
uuidstring · uuidErforderlich

The UUID of the downtime reason.

namestringErforderlich
descriptionstring · nullableOptional

Free-text description of the downtime reason.

categorystring · enumErforderlich

Category of the downtime reason.

Mögliche Werte:
groupstring · nullableErforderlich
statestring · enumErforderlich

Lifecycle state of the downtime reason.

Mögliche Werte:
catalogstring · uuid · nullableOptional

UUID of the catalog this reason belongs to. Resolve it via GET /api/v2/downtime-catalogs/{uuid}. null for legacy reasons not yet migrated to a catalog (only reachable as an embedded reason on GET /api/v2/downtimes).

put/v2/downtime-reasons/{uuid}/state
PUT /api/v2/downtime-reasons/{uuid}/state HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 18

{
  "state": "active"
}
{
  "uuid": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "description": "text",
  "category": "PLANNED",
  "group": "text",
  "state": "active",
  "catalog": "123e4567-e89b-12d3-a456-426614174000"
}

Zuletzt aktualisiert