import osfrom gcore import Gcoreclient = 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,)
Volumes
Revert volume to it's last snapshot
POST
/
cloud
/
v1
/
volumes
/
{project_id}
/
{region_id}
/
{volume_id}
/
revert
Python
Copy
Ask AI
import osfrom gcore import Gcoreclient = 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,)