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

Downtime Catalogs

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

Experimental

Get Downtime Catalogs

get

Returns a list of downtime catalogs 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 catalogs will be considered.

machinestring · uuid[] · max: 50 · nullableOptional

Only return catalogs assigned to any of the given machines. If not set, catalogs for all machines (including unassigned catalogs) will be considered.

unassignedboolean · nullableOptional

If true, only return catalogs that are not assigned to any machine. If not set, return catalogs irrespective if they're assigned to a machine or not.

statestring · enum · nullableOptional

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

Mögliche Werte:
Antworten
200

Successful Response

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

Create Downtime Catalog

post

Create a downtime catalog.

Autorisierungen
AuthorizationstringErforderlich
Body
namestring · min: 1Erforderlich
descriptionstring · nullableOptional

Free-text description of the downtime catalog.

Antworten
201

Successful Response

application/json
uuidstring · uuidErforderlich

The UUID of the downtime catalog.

namestringErforderlich

Name of the downtime catalog.

descriptionstring · nullableOptional

Free-text description of the downtime catalog.

statestring · enumErforderlich

Lifecycle state of the downtime catalog.

Mögliche Werte:
post/v2/downtime-catalogs
POST /api/v2/downtime-catalogs HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 36

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

Get Downtime Catalog

get

Returns details for a specific downtime catalog.

Autorisierungen
AuthorizationstringErforderlich
Pfadparameter
uuidstring · uuidErforderlich
Antworten
200

Successful Response

application/json
uuidstring · uuidErforderlich

The UUID of the downtime catalog.

namestringErforderlich

Name of the downtime catalog.

descriptionstring · nullableOptional

Free-text description of the downtime catalog.

statestring · enumErforderlich

Lifecycle state of the downtime catalog.

Mögliche Werte:
get/v2/downtime-catalogs/{uuid}
GET /api/v2/downtime-catalogs/{uuid} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
  "uuid": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "description": "text",
  "state": "active"
}
Experimental

Delete Downtime Catalog

delete

Delete a downtime catalog and all of its reasons (both active and archived). Downtimes labeled with those reasons are kept, but lose their reason. Any machine assignments of the catalog are removed. Works on active and archived catalogs. Pass dry_run=true to see how many reasons and 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
deleted_reasonsintegerErforderlich

Number of downtime reasons deleted along with the catalog (a dry run reports how many would be deleted).

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-catalogs/{uuid}
DELETE /api/v2/downtime-catalogs/{uuid} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
  "deleted_reasons": 1,
  "unlabeled_downtimes": 1
}
Experimental

Update Downtime Catalog

patch

Update a downtime catalog's name or description.

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

Successful Response

application/json
uuidstring · uuidErforderlich

The UUID of the downtime catalog.

namestringErforderlich

Name of the downtime catalog.

descriptionstring · nullableOptional

Free-text description of the downtime catalog.

statestring · enumErforderlich

Lifecycle state of the downtime catalog.

Mögliche Werte:
patch/v2/downtime-catalogs/{uuid}
PATCH /api/v2/downtime-catalogs/{uuid} HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 36

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

Set Downtime Catalog State

put

Archive or restore a downtime catalog. Archiving cascades the state to all of the catalog's reasons; both directions are reversible. Setting the state the catalog is already in is a no-op.

Autorisierungen
AuthorizationstringErforderlich
Pfadparameter
uuidstring · uuidErforderlich
Body
statestring · enumErforderlich

Lifecycle state to transition the catalog to.

Mögliche Werte:
Antworten
200

Successful Response

application/json
uuidstring · uuidErforderlich

The UUID of the downtime catalog.

namestringErforderlich

Name of the downtime catalog.

descriptionstring · nullableOptional

Free-text description of the downtime catalog.

statestring · enumErforderlich

Lifecycle state of the downtime catalog.

Mögliche Werte:
put/v2/downtime-catalogs/{uuid}/state
PUT /api/v2/downtime-catalogs/{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",
  "state": "active"
}
Experimental

Assign Downtime Catalog To Machine

post

Assign this downtime catalog to the specified machine.

Autorisierungen
AuthorizationstringErforderlich
Pfadparameter
uuidstring · uuidErforderlich
machine_uuidstring · uuidErforderlich
Body
object · AssignMachineRequestOptional
Antworten
204

Successful Response

Kein Inhalt

post/v2/downtime-catalogs/{uuid}/machines/{machine_uuid}
POST /api/v2/downtime-catalogs/{uuid}/machines/{machine_uuid} HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 2

{}

Kein Inhalt

Experimental

Unassign Downtime Catalog From Machine

delete

Unassign this downtime catalog from the specified machine.

Autorisierungen
AuthorizationstringErforderlich
Pfadparameter
uuidstring · uuidErforderlich
machine_uuidstring · uuidErforderlich
Antworten
204

Successful Response

Kein Inhalt

delete/v2/downtime-catalogs/{uuid}/machines/{machine_uuid}
DELETE /api/v2/downtime-catalogs/{uuid}/machines/{machine_uuid} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*

Kein Inhalt

Experimental

List Machines For Catalog

get

List the machines this downtime catalog is assigned to.

Autorisierungen
AuthorizationstringErforderlich
Pfadparameter
uuidstring · uuidErforderlich
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
Antworten
200

Successful Response

application/json
get/v2/downtime-catalogs/{uuid}/machines
GET /api/v2/downtime-catalogs/{uuid}/machines HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "machine": "123e4567-e89b-12d3-a456-426614174000"
    }
  ],
  "metadata": {
    "next_cursor": "text"
  }
}

Zuletzt aktualisiert