Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex BareMetal
    • All guides
      • Renting a stock configuration server
      • Renting a custom-configured server
      • Getting information about a server
      • Reconfiguring a server
      • Connecting to the KVM console
      • Stopping and starting a server
      • Canceling a server rent
      • Restoring a server from quarantine
      • Uploading a custom OS image
      • Connecting an existing BareMetal server to Cloud Backup
      • Using the Rescue CD
      • Setting up a secondary private subnet
      • Switching the type of a network connected to a network interface
      • Configuring the MC-LAG aggregation group
      • Resetting a password on the server
      • Replacing a disk in a RAID array
      • Adding a new SSH key for a user
      • Restoring the OS bootloader
      • Analyzing server status using HWCheck
    • Overview
    • Integrations with other Yandex Cloud services
      • Overview
      • Stock server configurations
      • Custom server configuration
      • On-request server configuration
      • Overview
      • Extend: Virtualization
      • Extend: Yandex Cloud Stackland
      • Extend: Managed Service for Kubernetes®
      • Overview
      • Public network
      • Private network
      • DHCP
      • DNS in a private network
      • MC-LAG
      • Restrictions in BareMetal networks
      • Overview
      • Images
      • Access management
      • Additional server settings
      • Management console
      • Monitoring metrics
    • Quotas and limits
  • Pricing policy
  • Release notes
  • FAQ
  1. Step-by-step guides
  2. Servers
  3. Canceling a server rent

Canceling a server rent

Written by
Yandex Cloud
Updated at August 6, 2026
View in Markdown

Warning

Canceling the rent cancels only further automatic renewal. It is not possible to terminate the rent during the current paid period: the server will operate until the end of this period and then will be deleted.

Management console
API
  1. In the management console, select the folder containing your server.
  2. Navigate to BareMetal.
  3. Find the server you need in the list, click in its row, then select Disable autorenewal.
  4. In the window that opens, click Disable.

To cancel a server lease, use the StopProlongation REST API method for the Server resource or the ServerService/StopProlongation gRPC API call.

Run this command:

curl -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <IAM_token>" \
  -d '{}' \
  "https://baremetal.api.cloud.yandex.net/baremetal/v1alpha/servers/<server_ID>:stopProlongation"

Where:

  • <IAM_token>: IAM token used for authentication.
  • <server_ID>: ID of the server you want to update. To find out the ID, follow this guide.

Result:

{
  "done": true,
  "metadata": {
    "@type": "type.googleapis.com/yandex.cloud.baremetal.v1alpha.ServerSetProlongationMetadata",
    "serverId": "ly56xpblirh4********"
  },
  "response": {
    "@type": "type.googleapis.com/yandex.cloud.baremetal.v1alpha.Server",
    "osSettings": {
      "storages": [
        {
          "partitions": [
            {
              "type": "EXT3",
              "sizeGib": "8",
              "mountPoint": "/boot"
            },
            {
              "type": "SWAP",
              "sizeGib": "3"
            },
            {
              "type": "EXT4",
              "mountPoint": "/"
            }
          ],
          "raid": {
            "disks": [
              {
                "id": "ly536lgz5cdo********",
                "type": "HDD",
                "sizeGib": "1862"
              },
              {
                "id": "ly55nr77qcgq********",
                "type": "HDD",
                "sizeGib": "1862"
              },
              {
                "id": "ly57e5ouat4r********",
                "type": "HDD",
                "sizeGib": "1862"
              },
              {
                "id": "ly5g77vbnavh********",
                "type": "HDD",
                "sizeGib": "1862"
              }
            ],
            "type": "RAID10"
          }
        }
      ],
      "imageId": "ly5vyzcggvci********",
      "sshPublicKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMYMj0PbB7ObhwL0z3y+vN0BfNKw********"
    },
    "id": "ly56xpblirh4********",
    "cloudId": "b1gia87mbaom********",
    "folderId": "b1g07hj5r6i4********",
    "name": "baremetal-server",
    "description": "New BareMetal server",
    "zoneId": "ru-central1-m",
    "hardwarePoolId": "ru-central1-m4",
    "status": "RUNNING",
    "configurationId": "ly5fcdnlzp7j********",
    "createdAt": "2025-12-07T19:09:42.520760Z"
  },
  "id": "ly5qkpfcxlpn********",
  "description": "Server set prolongation non renewal",
  "createdAt": "2025-12-08T08:04:20.893300Z",
  "createdBy": "ajeb9l33h6mu********",
  "modifiedAt": "2025-12-08T08:04:20.893300Z"
}

Follow the status of the operation by the done field.

Was the article helpful?

Previous
Stopping and starting a server
Next
Restoring a server from quarantine
© 2026 Direct Cursus Technology L.L.C.