Skip to content

Maintenance

Examples

List maintenances

maintenances = pm.maintenance.list()

Get a single maintenance

# Get a maintenance by ID
maintenance_id = 11
maintenance = pm.maintenance.get(maintenance_id)

Create a maintenance

maintenance = pm.maintenance.create(
  name="My maintenance",
  description="Demonstration maintenance",
  service=service.id,
  scope=scope.id,
  service_status="degraded",
)

Updating a maintenance

maintenance = maintenance.update(
  status="in-progress",
)

Deleting a maintenance

maintenance.delete()

Last update: October 20, 2022
Created: October 20, 2022