create_snapshot
Generate a snapshot of a Compute Engine disk in Google Cloud Platform. Provide project ID, zone, disk name, and snapshot name to save disk data for backup or replication.
Instructions
Create a snapshot of a Compute Engine disk.
Args:
project_id: The ID of the GCP project
zone: The zone where the disk is located (e.g., "us-central1-a")
disk_name: The name of the disk to snapshot
snapshot_name: The name for the new snapshot
description: Optional description for the snapshot
Returns:
Status message indicating whether the snapshot was created successfully
Input Schema
Name | Required | Description | Default |
---|---|---|---|
description | No | ||
disk_name | Yes | ||
project_id | Yes | ||
snapshot_name | Yes | ||
zone | Yes |
Input Schema (JSON Schema)
{
"properties": {
"description": {
"default": "",
"title": "Description",
"type": "string"
},
"disk_name": {
"title": "Disk Name",
"type": "string"
},
"project_id": {
"title": "Project Id",
"type": "string"
},
"snapshot_name": {
"title": "Snapshot Name",
"type": "string"
},
"zone": {
"title": "Zone",
"type": "string"
}
},
"required": [
"project_id",
"zone",
"disk_name",
"snapshot_name"
],
"title": "create_snapshotArguments",
"type": "object"
}