POST
/
cloud
/
v1
/
volumes
/
{project_id}
/
{region_id}
/
{volume_id}
/
revert
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
client.cloud.volumes.revert_to_last_snapshot(
    volume_id="726ecfcc-7fd0-4e30-a86e-7892524aa483",
    project_id=1,
    region_id=1,
)

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

project_id
integer
required

Project ID

Examples:

1

region_id
integer
required

Region ID

Examples:

1

volume_id
string
required

Volume ID

Examples:

"726ecfcc-7fd0-4e30-a86e-7892524aa483"

Response

200

OK