Cloud Platform
Operations
Last updated 2026-11-05
Operations
Creating, changing and deleting an instance, a disk or an interface takes time. These calls return an operation straight away; you follow it instead of waiting on the request.
Following an operation
| Call | Use |
|---|---|
| Get operation | Read its state once. |
| Watch operation | Stream its changes until it is done. |
An operation is done only when every change it caused has been observed on the machine, not when the request was accepted.
Safe retries
Creation calls take a request_id. If the network fails and you send the same request again with the same id, you get the same operation back instead of a second resource.
When something fails
A failed operation carries the reason. Resources also keep conditions, for example why an instance could not be placed or why a disk attachment failed, so you can read the cause on the resource itself.
Watching resources
Instances, disks and networks can also be watched: the stream sends each change as it happens, which is what the console uses to update without reloading.