> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nebius.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Maintenance in Managed Service for MLflow

Nebius AI Cloud performs maintenance on Managed MLflow clusters. This page explains how to review maintenance schedules, identify affected resources, and reschedule eligible operations to make sure that you aren't relying on a resource that's unavailable due to maintenance.

## Prerequisites

> [tab] CLI
>
> 1. [Install and configure](https://docs.nebius.com/cli/install.md) the Nebius AI Cloud CLI.
>
> 2. Check that your project ID is saved in the Nebius AI Cloud CLI profile configuration:
>    ```bash theme={null}
>    cat ~/.nebius/config.yaml
>    ```
>
> 3. Install [jq](https://jqlang.github.io/jq/) to filter the JSON data returned by the Nebius AI Cloud CLI:
>
>    ```bash Ubuntu theme={null}
>    sudo apt-get install jq
>    ```
>
>    ```bash macOS theme={null}
>    brew install jq
>    ```

> [tab] Go SDK
>
> [Install and initialize the Nebius SDK for Go](https://docs.nebius.com/sdk/go/install-auth.md).

> [tab] Python SDK
>
> [Install and initialize the Nebius SDK for Python](https://docs.nebius.com/sdk/python/install-auth.md).

> [tab] JavaScript SDK
>
> [Install and initialize the Nebius SDK for JavaScript](https://docs.nebius.com/sdk/javascript/install-auth.md).

## How to get a list of all maintenance operations

> [tab] CLI
>
> ```bash theme={null}
> nebius maintenance v1alpha1 maintenance list
> ```
>
> This command returns a list of all past, in-progress, and scheduled maintenance operations affecting resources in the project. Each item contains:
>
> * `metadata.id`: Maintenance operation ID. You can use this ID to [get the details of an operation](#how-to-get-the-details-of-a-maintenance-operation) or [reschedule it](#how-to-reschedule-a-maintenance-operation).
>
> * `metadata.parent_id`: Project ID.
>
> * `metadata.created_at`: Creation time of the maintenance operation.
>
> * `spec.scheduled_at`: Scheduled time of the maintenance, in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
>
> * `status.affected_resources`: Affected resource IDs and their project IDs (`parent_id`).
>
>   If the maintenance event affects your resources in another service, they're also listed here. You can [filter the output](#filtering-the-output) to see only the affected resources for Managed MLflow clusters.
>
> * `status.state`: Maintenance operation state. Possible values are `STATE_UNSPECIFIED`, `STATE_SCHEDULED`, `STATE_IN_PROGRESS`, `STATE_FINISHED`, `STATE_ERROR`, and `STATE_CANCELLED`.
>
> * `status.reschedulable`: Whether you can reschedule the maintenance. You can reschedule it only when `status.reschedulable` is `true` and `status.state` is `STATE_SCHEDULED`.
>
> ### Filtering the output
>
> To filter the list output by MLflow clusters, run the following command:
>
> ```bash theme={null}
> nebius maintenance v1alpha1 maintenance list \
>   --format json \
> | jq '
>   .items[]
>   | select(any(.status.affected_resources[]?; .id | startswith("mlflow-")))
>   | .status.affected_resources |= map(select(.id | startswith("mlflow-")))
> '
> ```
>
> This command returns only maintenance operations that affect MLflow clusters and removes resources belonging to other Nebius AI Cloud services from the `affected_resources` array of each list item.

> [tab] Go SDK
>
> ```go theme={null}
> listService := sdk.Services().Maintenance().
>     V1Alpha1().Maintenance()
> maintenances, err := listService.List(
>     ctx,
>     &maintenance.ListMaintenancesRequest{
>         ParentId: "<project_ID>",
>     },
> )
> if err != nil {
>     return fmt.Errorf("list maintenance operations: %w", err)
> }
> fmt.Println(maintenances)
> ```
>
> In `ListMaintenancesRequest`, set `ParentId` to the [project ID](https://docs.nebius.com/iam/manage-projects.md#how-to-get-a-project-id-go-sdk).
>
> In `Items`, the response contains all past, in-progress, and scheduled maintenance operations affecting resources in the project. Each item contains:
>
> * `Metadata.Id`: Maintenance operation ID. You can use this ID to [get the details of an operation](#how-to-get-the-details-of-a-maintenance-operation) or [reschedule it](#how-to-reschedule-a-maintenance-operation).
>
> * `Metadata.ParentId`: [Project ID](https://docs.nebius.com/iam/manage-projects.md#how-to-get-a-project-id-go-sdk).
>
> * `Metadata.CreatedAt`: Creation time of the maintenance operation.
>
> * `Spec.ScheduledAt`: Scheduled time of the maintenance.
>
> * `Status.AffectedResources`: Affected resource IDs and their project IDs (`ParentId`).
>
>   If the maintenance event affects your resources in another service, they're also listed here. You can [filter the output](#filtering-the-output) to see only the affected resources for Managed MLflow clusters.
>
> * `Status.State`: Maintenance operation state. Possible values are `STATE_UNSPECIFIED`, `STATE_SCHEDULED`, `STATE_IN_PROGRESS`, `STATE_FINISHED`, `STATE_ERROR`, and `STATE_CANCELLED`.
>
> * `Status.Reschedulable`: Whether you can reschedule the maintenance. You can reschedule it only when this value is `true` and `Status.State` is `STATE_SCHEDULED`.
>
> ### Filtering the output
>
> To filter the list output by MLflow clusters:
>
> ```go theme={null}
> mlflowListService := sdk.Services().Maintenance().
>     V1Alpha1().Maintenance()
> mlflowMaintenances, err := mlflowListService.List(
>     ctx,
>     &maintenance.ListMaintenancesRequest{
>         ParentId: "<project_ID>",
>     },
> )
> if err != nil {
>     return fmt.Errorf("list maintenance operations: %w", err)
> }
> for _, mlflowMaintenance := range mlflowMaintenances.Items {
>     status := mlflowMaintenance.Status
>     if status == nil {
>         continue
>     }
>     filteredResources := make([]*maintenance.Resource, 0)
>     for _, resource := range status.AffectedResources {
>         if resource != nil &&
>             strings.HasPrefix(resource.Id, "mlflow-") {
>             filteredResources = append(
>                 filteredResources, resource,
>             )
>         }
>     }
>     if len(filteredResources) == 0 {
>         continue
>     }
>     status.AffectedResources = filteredResources
>     fmt.Println(mlflowMaintenance)
> }
> ```
>
> In `ListMaintenancesRequest`, set `ParentId` to the project ID.
>
> This code returns only maintenance operations that affect MLflow clusters and removes resources belonging to other Nebius AI Cloud services from `Status.AffectedResources`.

> [tab] Python SDK
>
> ```python theme={null}
> list_service = MaintenanceServiceClient(sdk)
> maintenances = await list_service.list(
>     ListMaintenancesRequest(parent_id="<project_ID>"),
> )
> print(maintenances)
> ```
>
> In `ListMaintenancesRequest`, set `parent_id` to the [project ID](https://docs.nebius.com/iam/manage-projects.md#how-to-get-a-project-id-python-sdk).
>
> In `items`, the response contains all past, in-progress, and scheduled maintenance operations affecting resources in the project. Each item contains:
>
> * `metadata.id`: Maintenance operation ID. You can use this ID to [get the details of an operation](#how-to-get-the-details-of-a-maintenance-operation) or [reschedule it](#how-to-reschedule-a-maintenance-operation).
>
> * `metadata.parent_id`: [Project ID](https://docs.nebius.com/iam/manage-projects.md#how-to-get-a-project-id-python-sdk).
>
> * `metadata.created_at`: Creation time of the maintenance operation.
>
> * `spec.scheduled_at`: Scheduled time of the maintenance.
>
> * `status.affected_resources`: Affected resource IDs and their project IDs (`parent_id`).
>
>   If the maintenance event affects your resources in another service, they're also listed here. You can [filter the output](#filtering-the-output) to see only the affected resources for Managed MLflow clusters.
>
> * `status.state`: Maintenance operation state. Possible values are `STATE_UNSPECIFIED`, `STATE_SCHEDULED`, `STATE_IN_PROGRESS`, `STATE_FINISHED`, `STATE_ERROR`, and `STATE_CANCELLED`.
>
> * `status.reschedulable`: Whether you can reschedule the maintenance. You can reschedule it only when this value is `True` and `status.state` is `STATE_SCHEDULED`.
>
> ### Filtering the output
>
> To filter the list output by MLflow clusters:
>
> ```python theme={null}
> list_service = MaintenanceServiceClient(sdk)
> maintenances = await list_service.list(
>     ListMaintenancesRequest(parent_id="<project_ID>"),
> )
> for maintenance_operation in maintenances.items:
>     status = maintenance_operation.status
>     if status is None:
>         continue
>     affected_resources = [
>         resource
>         for resource in status.affected_resources
>         if resource.id.startswith("mlflow-")
>     ]
>     if not affected_resources:
>         continue
>     status.affected_resources = affected_resources
>     print(maintenance_operation)
> ```
>
> In `ListMaintenancesRequest`, set `parent_id` to the project ID.
>
> This code returns only maintenance operations that affect MLflow clusters and removes resources belonging to other Nebius AI Cloud services from `status.affected_resources`.

> [tab] JavaScript SDK
>
> ```ts theme={null}
> const listService = new MaintenanceService(sdk);
> const maintenances = await listService.list(
>   ListMaintenancesRequest.create({
>     parentId: "<project_ID>",
>   }),
> ).result;
> console.log(maintenances);
> ```
>
> In `ListMaintenancesRequest`, set `parentId` to the [project ID](https://docs.nebius.com/iam/manage-projects.md#how-to-get-a-project-id-javascript-sdk).
>
> In `items`, the response contains all past, in-progress, and scheduled maintenance operations affecting resources in the project. Each item contains:
>
> * `metadata.id`: Maintenance operation ID. You can use this ID to [get the details of an operation](#how-to-get-the-details-of-a-maintenance-operation) or [reschedule it](#how-to-reschedule-a-maintenance-operation).
>
> * `metadata.parentId`: [Project ID](https://docs.nebius.com/iam/manage-projects.md#how-to-get-a-project-id-javascript-sdk).
>
> * `metadata.createdAt`: Creation time of the maintenance operation.
>
> * `spec.scheduledAt`: Scheduled time of the maintenance.
>
> * `status.affectedResources`: Affected resource IDs and their project IDs (`parentId`).
>
>   If the maintenance event affects your resources in another service, they're also listed here. You can [filter the output](#filtering-the-output) to see only the affected resources for Managed MLflow clusters.
>
> * `status.state`: Maintenance operation state. Possible values are `STATE_UNSPECIFIED`, `STATE_SCHEDULED`, `STATE_IN_PROGRESS`, `STATE_FINISHED`, `STATE_ERROR`, and `STATE_CANCELLED`.
>
> * `status.reschedulable`: Whether you can reschedule the maintenance. You can reschedule it only when this value is `true` and `status.state` is `STATE_SCHEDULED`.
>
> ### Filtering the output
>
> To filter the list output by MLflow clusters:
>
> ```ts theme={null}
> const mlflowListService = new MaintenanceService(sdk);
> const mlflowMaintenances = await mlflowListService.list(
>   ListMaintenancesRequest.create({
>     parentId: "<project_ID>",
>   }),
> ).result;
> for (const mlflowMaintenance of mlflowMaintenances.items) {
>   const status = mlflowMaintenance.status;
>   if (!status) {
>     continue;
>   }
>   const affectedResources = status.affectedResources.filter(
>     (resource) => resource.id.startsWith('mlflow-'),
>   );
>   if (affectedResources.length === 0) {
>     continue;
>   }
>   status.affectedResources = affectedResources;
>   console.log(mlflowMaintenance);
> }
> ```
>
> In `ListMaintenancesRequest`, set `parentId` to the project ID.
>
> This code returns only maintenance operations that affect MLflow clusters and removes resources belonging to other Nebius AI Cloud services from `status.affectedResources`.

## How to get the details of a maintenance operation

> [tab] CLI
>
> ```bash theme={null}
> nebius maintenance v1alpha1 maintenance get --id <maintenance_operation_ID>
> ```
>
> In `--id`, specify the maintenance operation ID. You can get it by [listing all maintenance operations](https://docs.nebius.com/mlflow/maintenance.md#how-to-get-a-list-of-all-maintenance-operations-cli).
>
> This command returns the details of a maintenance operation. The details are the same as for the [list maintenance operations](#how-to-get-a-list-of-all-maintenance-operations-cli) command.
>
> > [accordion] Output example
> >
> > ```yaml theme={null}
> > metadata:
> >     id: maintenance_***
> >     parent_id: project-***
> >     created_at: "2025-09-22T14:40:59.845329Z"
> > spec:
> >     scheduled_at: "2025-10-01T14:28:20Z"
> > status:
> >     affected_resources:
> >       - id: mlflow-***
> >         parent_id: project-***
> >     started_at: "2025-10-01T14:28:21.162373Z"
> >     finished_at: "2025-10-01T14:34:38.363547Z"
> >     state: STATE_FINISHED
> >     reschedulable: true
> > ```

> [tab] Go SDK
>
> ```go theme={null}
> getService := sdk.Services().Maintenance().
>     V1Alpha1().Maintenance()
> maintenanceOperation, err := getService.Get(
>     ctx,
>     &maintenance.GetMaintenanceRequest{
>         Id: "<maintenance_operation_ID>",
>     },
> )
> if err != nil {
>     return fmt.Errorf("get maintenance operation: %w", err)
> }
> fmt.Println(maintenanceOperation)
> ```
>
> In `GetMaintenanceRequest`, set `Id` to the maintenance operation ID. You can get it by [listing all maintenance operations](https://docs.nebius.com/mlflow/maintenance.md#how-to-get-a-list-of-all-maintenance-operations-go-sdk).
>
> The response contains the same details for one maintenance operation as each item in the [list response](#how-to-get-a-list-of-all-maintenance-operations-go-sdk).

> [tab] Python SDK
>
> ```python theme={null}
> get_service = MaintenanceServiceClient(sdk)
> maintenance_operation = await get_service.get(
>     GetMaintenanceRequest(id="<maintenance_operation_ID>"),
> )
> print(maintenance_operation)
> ```
>
> In `GetMaintenanceRequest`, set `id` to the maintenance operation ID. You can get it by [listing all maintenance operations](https://docs.nebius.com/mlflow/maintenance.md#how-to-get-a-list-of-all-maintenance-operations-python-sdk).
>
> The response contains the same details for one maintenance operation as each item in the [list response](#how-to-get-a-list-of-all-maintenance-operations-python-sdk).

> [tab] JavaScript SDK
>
> ```ts theme={null}
> const getService = new MaintenanceService(sdk);
> const maintenanceOperation = await getService.get(
>   GetMaintenanceRequest.create({
>     id: "<maintenance_operation_ID>",
>   }),
> ).result;
> console.log(maintenanceOperation);
> ```
>
> In `GetMaintenanceRequest`, set `id` to the maintenance operation ID. You can get it by [listing all maintenance operations](https://docs.nebius.com/mlflow/maintenance.md#how-to-get-a-list-of-all-maintenance-operations-javascript-sdk).
>
> The response contains the same details for one maintenance operation as each item in the [list response](#how-to-get-a-list-of-all-maintenance-operations-javascript-sdk).

## How to reschedule a maintenance operation

You can reschedule a maintenance operation only when its state is `STATE_SCHEDULED` and its reschedulable value is `true`. To check these values, [get the details of the operation](#how-to-get-the-details-of-a-maintenance-operation).

> [tab] CLI
>
> 1. Run the following command:
>
>    ```bash theme={null}
>    nebius maintenance v1alpha1 maintenance edit --id <maintenance_operation_ID>
>    ```
>
>    In `--id`, specify the maintenance operation ID.
>
> 2. In the editor that opens, change the value of `spec.scheduled_at` to your desired time in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Specify only a future date and time.
>
> 3. When prompted, confirm the update.

> [tab] Go SDK
>
> ```go theme={null}
> editService := sdk.Services().Maintenance().
>     V1Alpha1().Maintenance()
> maintenanceToUpdate, err := editService.Get(
>     ctx,
>     &maintenance.GetMaintenanceRequest{
>         Id: "<maintenance_operation_ID>",
>     },
> )
> if err != nil {
>     return fmt.Errorf("get maintenance operation: %w", err)
> }
> scheduledAt, err := time.Parse(
>     time.RFC3339, "<YYYY-MM-DDThh:mm:ssZ>",
> )
> if err != nil {
>     return fmt.Errorf("parse scheduled time: %w", err)
> }
> maintenanceToUpdate.Spec.ScheduledAt =
>     timestamppb.New(scheduledAt)
> updatedMaintenance, err := editService.Update(
>     ctx,
>     &maintenance.UpdateMaintenanceRequest{
>         Metadata: maintenanceToUpdate.Metadata,
>         Spec: maintenanceToUpdate.Spec,
>     },
> )
> if err != nil {
>     return fmt.Errorf("update maintenance operation: %w", err)
> }
> fmt.Println(updatedMaintenance)
> ```
>
> In the code, set the following values:
>
> * `Id` in `GetMaintenanceRequest`: Maintenance operation ID.
> * `maintenanceToUpdate.Spec.ScheduledAt`: Desired future date and time. The code parses a value like `2025-10-01T14:28:20Z` in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format before assigning it.

> [tab] Python SDK
>
> ```python theme={null}
> edit_service = MaintenanceServiceClient(sdk)
> maintenance_to_update = await edit_service.get(
>     GetMaintenanceRequest(id="<maintenance_operation_ID>"),
> )
> maintenance_to_update.spec.scheduled_at = (
>     datetime.fromisoformat("<date_and_time>+00:00")
> )
> updated_maintenance = await edit_service.update(
>     UpdateMaintenanceRequest(
>         metadata=maintenance_to_update.metadata,
>         spec=maintenance_to_update.spec,
>     ),
> )
> print(updated_maintenance)
> ```
>
> In the code, set the following values:
>
> * `id` in `GetMaintenanceRequest`: Maintenance operation ID.
> * `maintenance_to_update.spec.scheduled_at`: Desired future date and time. The code parses a value like `2025-10-01T14:28:20+00:00` in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format before assigning it.

> [tab] JavaScript SDK
>
> ```ts theme={null}
> const editService = new MaintenanceService(sdk);
> const maintenanceToUpdate = await editService.get(
>   GetMaintenanceRequest.create({
>     id: "<maintenance_operation_ID>",
>   }),
> ).result;
> maintenanceToUpdate.spec.scheduledAt =
>   dayjs("<YYYY-MM-DDThh:mm:ssZ>");
> const updatedMaintenance = await editService.update(
>   UpdateMaintenanceRequest.create({
>     metadata: maintenanceToUpdate.metadata,
>     spec: maintenanceToUpdate.spec,
>   }),
> ).result;
> console.log(updatedMaintenance);
> ```
>
> In the code, set the following values:
>
> * `id` in `GetMaintenanceRequest`: Maintenance operation ID.
> * `maintenanceToUpdate.spec.scheduledAt`: Desired future date and time. The code parses a value like `2025-10-01T14:28:20Z` in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format before assigning it.

After you reschedule a maintenance operation, [check the updated details](#how-to-get-the-details-of-a-maintenance-operation).
