> ## 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.

# Managing data transfers

After you [create](https://docs.nebius.com/object-storage/transfer/launch.md) a data transfer, you can modify certain parameters, stop and resume it, or delete it.

## Prerequisites

> [tab] Web console
>
> Make sure you are in a [group](https://docs.nebius.com/iam/authorization/groups/index.md) that has at least the `editor` role within your tenant or project; for example, the default `editors` group. You can check this in the [Administration → IAM](https://console.nebius.com/iam) section of the web console.

> [tab] CLI
>
> [Install and configure](https://docs.nebius.com/cli/install.md) the Nebius AI Cloud CLI.
>
> Make sure that you or the service account that you use is in a [group](https://docs.nebius.com/iam/authorization/groups/index.md) that has at least the `editor` role within your tenant or project; for example, the default `editors` group. You can check this in the [Administration → IAM](https://console.nebius.com/iam) section of the web console.

> [tab] Terraform
>
> [Install and configure](https://docs.nebius.com/terraform-provider/install.md) the Nebius AI Cloud provider for Terraform.
>
> Make sure that you or the service account that you use is in a [group](https://docs.nebius.com/iam/authorization/groups/index.md) that has at least the `editor` role within your tenant or project; for example, the default `editors` group. You can check this in the [Administration → IAM](https://console.nebius.com/iam) section of the web console.

> [tab] Go SDK
>
> [Install and initialize the Nebius SDK for Go](https://docs.nebius.com/sdk/go/install-auth.md).
>
> Make sure that you or the service account that you use is in a [group](https://docs.nebius.com/iam/authorization/groups/index.md) that has at least the `editor` role within your tenant or project; for example, the default `editors` group. You can check this in the [Administration → IAM](https://console.nebius.com/iam) section of the web console.

> [tab] Python SDK
>
> [Install and initialize the Nebius SDK for Python](https://docs.nebius.com/sdk/python/install-auth.md).
>
> Make sure that you or the service account that you use is in a [group](https://docs.nebius.com/iam/authorization/groups/index.md) that has at least the `editor` role within your tenant or project; for example, the default `editors` group. You can check this in the [Administration → IAM](https://console.nebius.com/iam) section of the web console.

> [tab] JavaScript SDK
>
> [Install and initialize the Nebius SDK for JavaScript](https://docs.nebius.com/sdk/javascript/install-auth.md).
>
> Make sure that you or the service account that you use is in a [group](https://docs.nebius.com/iam/authorization/groups/index.md) that has at least the `editor` role within your tenant or project; for example, the default `editors` group. You can check this in the [Administration → IAM](https://console.nebius.com/iam) section of the web console.

## How to modify a data transfer

You can modify certain parameters of an existing data transfer:

* Name
* [Credentials](https://docs.nebius.com/object-storage/transfer/access.md#credentials) and [object key prefixes](https://docs.nebius.com/object-storage/transfer/key-prefixes.md) for both the source and destination buckets
* [Transfer type or stop condition](https://docs.nebius.com/object-storage/transfer/stop-condition.md)
* Inter-iteration interval
* [Settings for handling destination objects](https://docs.nebius.com/object-storage/transfer/destination-objects.md)
* [Limits on request rate and bandwidth](https://docs.nebius.com/object-storage/transfer/limits.md)

Changes may require several minutes to take effect, during which the old settings could still be in use temporarily.

You cannot change the names or endpoints of the source and destination buckets of a data transfer.

To modify a data transfer:

> [tab] Web console
>
> 1. In the sidebar, go to  **Storage** → **Data Transfer**.
> 2. Open the page of the data transfer that you want to modify.
> 3. Switch to the **Settings** tab.
> 4. Modify the parameters and click **Save changes**.

> [tab] CLI
>
> 1. To get the data transfer ID, get a list of data transfers:
>    ```bash theme={null}
>    nebius storage transfer list
>    ```
>    The data transfer ID is returned in the `.metadata.id` parameter.
> 2. Update the data transfer. For example, to change credentials for the source bucket in Nebius AI Cloud, run the following command:
>
>    ```bash theme={null}
>    nebius storage transfer update <data_transfer_ID> \
>      --source-nebius-access-key-access-key-id <access_key> \
>      --source-nebius-access-key-secret-access-key <secret_key>
>    ```
>
>    For more information about the command parameters, see the [command reference](https://docs.nebius.com/cli/reference/storage/transfer/update.md).

> [tab] Terraform
>
> 1. Modify the [nebius\_storage\_v1\_transfer](https://docs.nebius.com/terraform-provider/reference/resources/storage_v1_transfer.md) resource in your Terraform configuration.
> 2. Check that the configuration is correct:
>    ```bash theme={null}
>    terraform validate
>    ```
> 3. Apply the changes:
>    ```bash theme={null}
>    terraform apply
>    ```

> [tab] Go SDK
>
> Update credentials for the source bucket in Nebius AI Cloud:
>
> ```go theme={null}
> updateSvc := sdk.Services().Storage().V1().Transfer()
> transfer, err := updateSvc.Get(
>     ctx,
>     &storage.GetTransferRequest{
>         Id: "<data_transfer_ID>",
>     },
> )
> if err != nil {
>     return err
> }
> transfer.Spec.Source.GetNebius().Credentials =
>     &storage.TransferSource_NebiusProvider_AccessKey{
>         AccessKey: &storage.TransferCredentialsAccessKey{
>             AccessKeyId: "<access_key>",
>             SecretAccessKey: "<secret_key>",
>         },
>     }
> updateOp, err := updateSvc.Update(
>     ctx,
>     &storage.UpdateTransferRequest{
>         Metadata: transfer.Metadata,
>         Spec:     transfer.Spec,
>     },
> )
> if err != nil {
>     return err
> }
> if _, err = updateOp.Wait(ctx); err != nil {
>     return err
> }
> ```
>
> In the code, set the following parameters:
>
> * `Id`: Data transfer ID.
> * `AccessKeyId`: Access key ID for the source bucket.
> * `SecretAccessKey`: Secret access key for the source bucket.

> [tab] Python SDK
>
> Update credentials for the source bucket in Nebius AI Cloud:
>
> ```python theme={null}
> transfer_service = TransferServiceClient(sdk)
> transfer = await transfer_service.get(
>     GetTransferRequest(id="<data_transfer_ID>"),
> )
> transfer.spec.source.nebius.access_key = (
>     TransferCredentialsAccessKey(
>         access_key_id="<access_key>",
>         secret_access_key="<secret_key>",
>     )
> )
> update_operation = await transfer_service.update(
>     UpdateTransferRequest(
>         metadata=transfer.metadata,
>         spec=transfer.spec,
>     ),
> )
> await update_operation.wait()
> ```
>
> In the code, set the following parameters:
>
> * `id`: Data transfer ID.
> * `access_key_id`: Access key ID for the source bucket.
> * `secret_access_key`: Secret access key for the source bucket.

> [tab] JavaScript SDK
>
> Update credentials for the source bucket in Nebius AI Cloud:
>
> ```ts theme={null}
> const updateTransferService = new TransferService(sdk);
> const transfer = await updateTransferService.get(
>   GetTransferRequest.create({ id: "<data_transfer_ID>" }),
> ).result;
> transfer.spec.source.provider.nebius.credentials = {
>   $case: "accessKey",
>   accessKey: TransferCredentialsAccessKey.create({
>     accessKeyId: "<access_key>",
>     secretAccessKey: "<secret_key>",
>   }),
> };
> const updateOperation = await updateTransferService.update(
>   UpdateTransferRequest.create({
>     metadata: transfer.metadata,
>     spec: transfer.spec,
>   }),
> ).result;
> await updateOperation.wait();
> ```
>
> In the code, set the following parameters:
>
> * `id`: Data transfer ID.
> * `accessKeyId`: Access key ID for the source bucket.
> * `secretAccessKey`: Secret access key for the source bucket.

## How to stop and resume a data transfer

When you stop a data transfer, all ongoing uploads of objects and their parts are canceled. When you resume a data transfer, it starts a new [iteration](https://docs.nebius.com/object-storage/transfer/overview.md#iterations).

> [tab] Web console
>
> 1. In the sidebar, go to  **Storage** → **Data Transfer**.
> 2. Next to the name of the data transfer, click  → **Stop** or **Resume**.
> 3. Confirm the action.

> [tab] CLI
>
> 1. To get the data transfer ID, get a list of data transfers:
>    ```bash theme={null}
>    nebius storage transfer list
>    ```
>    The data transfer ID is returned in the `.metadata.id` parameter.
>
> 2. To stop the data transfer, run the following command:
>
>    ```bash theme={null}
>    nebius storage transfer stop <data_transfer_ID>
>    ```
>
> 3. To resume the data transfer, run the following command:
>
>    ```bash theme={null}
>    nebius storage transfer resume <data_transfer_ID>
>    ```

> [tab] Go SDK
>
> 1. Stop the data transfer:
>
>    ```go theme={null}
>    stopSvc := sdk.Services().Storage().V1().Transfer()
>    stopOp, err := stopSvc.Stop(
>        ctx,
>        &storage.StopTransferRequest{
>            Id: "<data_transfer_ID>",
>        },
>    )
>    if err != nil {
>        return err
>    }
>    if _, err = stopOp.Wait(ctx); err != nil {
>        return err
>    }
>    ```
>
>    In the code, set `Id` to the data transfer ID.
>
> 2. Resume the data transfer:
>
>    ```go theme={null}
>    resumeSvc := sdk.Services().Storage().V1().Transfer()
>    resumeOp, err := resumeSvc.Resume(
>        ctx,
>        &storage.ResumeTransferRequest{
>            Id: "<data_transfer_ID>",
>        },
>    )
>    if err != nil {
>        return err
>    }
>    if _, err = resumeOp.Wait(ctx); err != nil {
>        return err
>    }
>    ```
>
>    In the code, set `Id` to the data transfer ID.

> [tab] Python SDK
>
> 1. Stop the data transfer:
>
>    ```python theme={null}
>    transfer_service = TransferServiceClient(sdk)
>    stop_operation = await transfer_service.stop(
>        StopTransferRequest(id="<data_transfer_ID>"),
>    )
>    await stop_operation.wait()
>    ```
>
>    In the code, set `id` to the data transfer ID.
>
> 2. Resume the data transfer:
>
>    ```python theme={null}
>    transfer_service = TransferServiceClient(sdk)
>    resume_operation = await transfer_service.resume(
>        ResumeTransferRequest(id="<data_transfer_ID>"),
>    )
>    await resume_operation.wait()
>    ```
>
>    In the code, set `id` to the data transfer ID.

> [tab] JavaScript SDK
>
> 1. Stop the data transfer:
>
>    ```ts theme={null}
>    const stopTransferService = new TransferService(sdk);
>    const stopOperation = await stopTransferService.stop(
>      StopTransferRequest.create({ id: "<data_transfer_ID>" }),
>    ).result;
>    await stopOperation.wait();
>    ```
>
>    In the code, set `id` to the data transfer ID.
>
> 2. Resume the data transfer:
>
>    ```ts theme={null}
>    const resumeTransferService = new TransferService(sdk);
>    const resumeOperation = await resumeTransferService.resume(
>      ResumeTransferRequest.create({ id: "<data_transfer_ID>" }),
>    ).result;
>    await resumeOperation.wait();
>    ```
>
>    In the code, set `id` to the data transfer ID.

## How to delete a data transfer

When you delete a data transfer, Object Storage stops it before deletion. Transferred objects are not affected.

> [tab] Web console
>
> 1. In the sidebar, go to  **Storage** → **Data Transfer**.
> 2. Next to the name of the data transfer, click  → **Delete**.
> 3. Confirm the action.

> [tab] CLI
>
> 1. To get the data transfer ID, get a list of data transfers:
>    ```bash theme={null}
>    nebius storage transfer list
>    ```
>    The data transfer ID is returned in the `.metadata.id` parameter.
> 2. Delete the data transfer:
>
>    ```bash theme={null}
>    nebius storage transfer delete <data_transfer_ID>
>    ```

> [tab] Terraform
>
> 1. Remove the corresponding `nebius_storage_v1_transfer` resource from the configuration file.
> 2. Check that the configuration is correct:
>    ```bash theme={null}
>    terraform validate
>    ```
> 3. Apply the changes:
>    ```bash theme={null}
>    terraform apply
>    ```

> [tab] Go SDK
>
> Delete the data transfer:
>
> ```go theme={null}
> deleteSvc := sdk.Services().Storage().V1().Transfer()
> deleteOp, err := deleteSvc.Delete(
>     ctx,
>     &storage.DeleteTransferRequest{
>         Id: "<data_transfer_ID>",
>     },
> )
> if err != nil {
>     return err
> }
> if _, err = deleteOp.Wait(ctx); err != nil {
>     return err
> }
> ```
>
> In the code, set `Id` to the data transfer ID.

> [tab] Python SDK
>
> Delete the data transfer:
>
> ```python theme={null}
> transfer_service = TransferServiceClient(sdk)
> delete_operation = await transfer_service.delete(
>     DeleteTransferRequest(id="<data_transfer_ID>"),
> )
> await delete_operation.wait()
> ```
>
> In the code, set `id` to the data transfer ID.

> [tab] JavaScript SDK
>
> Delete the data transfer:
>
> ```ts theme={null}
> const deleteTransferService = new TransferService(sdk);
> const deleteOperation = await deleteTransferService.delete(
>   DeleteTransferRequest.create({ id: "<data_transfer_ID>" }),
> ).result;
> await deleteOperation.wait();
> ```
>
> In the code, set `id` to the data transfer ID.
