Overview
IAM
- Account
- Users
- API Tokens
CDN
- IP addresses list
- CDN service
- Origins
- CDN resources
- CDN activity logs
- Log forwarding
- Log viewer
- Logs uploader
- Tools
- Rules
- Rule templates
- Purge history
- SSL certificates
- CA certificates
- CDN Statistics
- Advanced analytics
- Origin shielding
- Let's Encrypt certificates
Managed DNS
- Analyze
- Locations
- Lookup
- Metrics
- Pickers
- DNS Clients
- Zones
- DNSSEC
- RRsets
Cloud
- Bare Metal
- Container as a Service
- Cost Reports
- DDOS Protection
- File Shares
- Firewalls
- Floating IPs
- Function as a Service
- GPU Cloud
- IP Ranges
- Images
- Inference Instances
- Instances
- Load Balancers
- Logging
- Managed Kubernetes
- Managed PostgreSQL
- Networks
- Placement Groups
- Projects
- Quotas
- Regions
- Registry
- Reservations
- Reserved IPs
- Routers
- SSH Keys
- Secrets
- Service Endpoints
- Snapshot Schedules
- Snapshots
- Tasks
- User Actions
- User Role Assignments
- Volumes
- POSTPreview volume price
- GETList volumes
- POSTCreate volume
- GETGet volume
- DELDelete volume
- PATCHRename volume
- POSTDeprecated. Attach volumedeprecated
- POSTDeprecated. Detach volumedeprecated
- POSTExtend volume
- GETList volume tags
- PUTReplace volume tags
- POSTCreate or update volume tags
- GETGet volume tag by key
- DELDelete volume tag by key
- POSTChange volume type
- POSTRevert volume to it's last snapshot
- POSTAttach volume V2
- POSTDetach volume V2
- POST
Security
- Event Logs
- BGP announces
- Security Templates
- Profiles
FastEdge
- Apps
- Binaries
- FastEdge Clients
- FastEdge Secrets
- Stats
- FastEdge Templates
WAAP
- WAAP Service
- Domains
- Policies
- Analytics
- Custom Page Sets
- Custom Rules
- Firewall Rules
- Advanced Rules
- Tags
- Network Organizations
- API Discovery
- IP Spotlight
- Security Insights
Web Security
- Billing Statistics
- Resources
Video Streaming
- Streams
- Overlays
- Broadcasts
- Restreams
- Videos
- Subtitles
- Directories
- Playlists
- QualitySets
- Players
- AI
- Streaming Statistics
Object Storage
- Notifications
- Key
- Location
- Storage
- Storage Statistics
Volumes
Deprecated. Detach volume
deprecated
Detach the volume from instance
POST
/
cloud
/
v1
/
volumes
/
{project_id}
/
{region_id}
/
{volume_id}
/
detach
Copy
Ask AI
curl --request POST \
--url https://api.gcore.com/cloud/v1/volumes/{project_id}/{region_id}/{volume_id}/detach \
--header 'APIKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"instance_id": "169942e0-9b53-42df-95ef-1a8b6525c2bd"
}'
Copy
Ask AI
{
"attachments": [
{
"attached_at": "2019-07-26T14:22:03+0000",
"attachment_id": "f2ed59d9-8068-400c-be4b-c4501ef6f33c",
"device": "/dev/vda",
"flavor_id": "g1-standard-1-2",
"instance_name": "instance-1",
"server_id": "8dc30d49-bb34-4920-9bbd-03a2587ec0ad",
"volume_id": "67baa7d1-08ea-4fc5-bef2-6b2465b7d227"
}
],
"bootable": false,
"created_at": "2019-05-29T05:32:41+0000",
"creator_task_id": "d74c2bb9-cea7-4b23-a009-2f13518ae66d",
"id": "726ecfcc-7fd0-4e30-a86e-7892524aa483",
"is_root_volume": false,
"limiter_stats": {
"MBps_base_limit": 50,
"MBps_burst_limit": 200,
"iops_base_limit": 1000,
"iops_burst_limit": 5000
},
"name": "volume-1",
"project_id": 1,
"region": "Luxembourg",
"region_id": 1,
"size": 50,
"snapshot_ids": [
"<string>"
],
"status": "available",
"tags": [
{
"key": "my-tag",
"read_only": false,
"value": "my-tag-value"
}
],
"task_id": "<string>",
"updated_at": "2019-05-29T05:39:20+0000",
"volume_image_metadata": {
"checksum": "ba3cd24377dde5dfdd58728894004abb",
"container_format": "bare",
"disk_format": "raw",
"image_id": "723037e2-ec6d-47eb-92de-6276c8907839",
"image_name": "cirros-gcloud",
"min_disk": "1",
"min_ram": "0",
"size": "46137344"
},
"volume_type": "standard"
}
Authorizations
API key for authentication.
Path Parameters
Project ID
Examples:
1
Region ID
Examples:
1
Volume ID
Examples:
"726ecfcc-7fd0-4e30-a86e-7892524aa483"
Body
application/json
Response
200 - application/json
OK
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request POST \
--url https://api.gcore.com/cloud/v1/volumes/{project_id}/{region_id}/{volume_id}/detach \
--header 'APIKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"instance_id": "169942e0-9b53-42df-95ef-1a8b6525c2bd"
}'
Copy
Ask AI
{
"attachments": [
{
"attached_at": "2019-07-26T14:22:03+0000",
"attachment_id": "f2ed59d9-8068-400c-be4b-c4501ef6f33c",
"device": "/dev/vda",
"flavor_id": "g1-standard-1-2",
"instance_name": "instance-1",
"server_id": "8dc30d49-bb34-4920-9bbd-03a2587ec0ad",
"volume_id": "67baa7d1-08ea-4fc5-bef2-6b2465b7d227"
}
],
"bootable": false,
"created_at": "2019-05-29T05:32:41+0000",
"creator_task_id": "d74c2bb9-cea7-4b23-a009-2f13518ae66d",
"id": "726ecfcc-7fd0-4e30-a86e-7892524aa483",
"is_root_volume": false,
"limiter_stats": {
"MBps_base_limit": 50,
"MBps_burst_limit": 200,
"iops_base_limit": 1000,
"iops_burst_limit": 5000
},
"name": "volume-1",
"project_id": 1,
"region": "Luxembourg",
"region_id": 1,
"size": 50,
"snapshot_ids": [
"<string>"
],
"status": "available",
"tags": [
{
"key": "my-tag",
"read_only": false,
"value": "my-tag-value"
}
],
"task_id": "<string>",
"updated_at": "2019-05-29T05:39:20+0000",
"volume_image_metadata": {
"checksum": "ba3cd24377dde5dfdd58728894004abb",
"container_format": "bare",
"disk_format": "raw",
"image_id": "723037e2-ec6d-47eb-92de-6276c8907839",
"image_name": "cirros-gcloud",
"min_disk": "1",
"min_ram": "0",
"size": "46137344"
},
"volume_type": "standard"
}
Assistant
Responses are generated using AI and may contain mistakes.