Scaleway logo
Managed MongoDB®

Maintenance Operations

Maintenance operations for managing scheduled updates to your Database Instance.


List all the maintenances of a MongoDB® Database Instance.

GET
https://api.scaleway.com
/mongodb/v1/regions/{region}/maintenances

List all the maintenances of a MongoDB® Database Instance. › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par

List all the maintenances of a MongoDB® Database Instance. › query Parameters

instance_id
​string · required

ID of the instance. (UUID format)

Criteria to use when requesting user listing.

Enum values:
created_at_asc
created_at_desc
starts_at_asc
starts_at_desc
stops_at_asc
stops_at_desc
Default: created_at_asc
page
​integer · int32
page_size
​integer · uint32

List all the maintenances of a MongoDB® Database Instance. › Responses

200

List of maintenances of a MongoDB© instance.

total_count
​integer · uint64

Total count of maintenances of a MongoDB© instance.


Get a maintenance of a MongoDB® Database Instance.

GET
https://api.scaleway.com
/mongodb/v1/regions/{region}/maintenances/{maintenance_id}

Get a maintenance of a MongoDB® Database Instance. › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par
maintenance_id
​string · required

ID of the maintenance. (UUID format)

Get a maintenance of a MongoDB® Database Instance. › Responses

200
id
​string

ID of the maintenance. (UUID format)

instance_id
​string

ID of the instance on which the maintenance is applied. (UUID format)

created_at
​string | null · date-time

Creation date of the maintenance. (RFC 3339 format)

starts_at
​string | null · date-time

Start date of the maintenance. (RFC 3339 format)

stops_at
​string | null · date-time

Stop date of the maintenance. (RFC 3339 format)

Current status of the maintenance.

Enum values:
unknown_status
planned
done
cancelled
ongoing
Default: unknown_status
forced_at
​string | null · date-time

Forced application date of the maintenance. (RFC 3339 format)

applied_at
​string | null · date-time

Application date of the maintenance. (RFC 3339 format)

Usertype who launched the maintenance.

Enum values:
unknown_applied_by
user
admin
Default: unknown_applied_by

Workflow to be applied during maintenance.

reason
​string

Reason of the maintenance.


Apply a maintenance of a MongoDB® Database Instance.

POST
https://api.scaleway.com
/mongodb/v1/regions/{region}/maintenances/{maintenance_id}/apply

Apply a maintenance of a MongoDB® Database Instance. › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par
maintenance_id
​string · required

ID of the maintenance. (UUID format)

Apply a maintenance of a MongoDB® Database Instance. › Request Body

Apply a maintenance of a MongoDB® Database Instance. › Responses

200
id
​string

ID of the maintenance. (UUID format)

instance_id
​string

ID of the instance on which the maintenance is applied. (UUID format)

created_at
​string | null · date-time

Creation date of the maintenance. (RFC 3339 format)

starts_at
​string | null · date-time

Start date of the maintenance. (RFC 3339 format)

stops_at
​string | null · date-time

Stop date of the maintenance. (RFC 3339 format)

Current status of the maintenance.

Enum values:
unknown_status
planned
done
cancelled
ongoing
Default: unknown_status
forced_at
​string | null · date-time

Forced application date of the maintenance. (RFC 3339 format)

applied_at
​string | null · date-time

Application date of the maintenance. (RFC 3339 format)

Usertype who launched the maintenance.

Enum values:
unknown_applied_by
user
admin
Default: unknown_applied_by

Workflow to be applied during maintenance.

reason
​string

Reason of the maintenance.