When creating a new instance over REST API there is no information if it was successful or not, or any results for this action. How can I verify it? Do I have to just query for an instance if it exists?
curl -X "POST" "https://incus.xyz.com/1.0/instances" \
-H 'Authorization: Bearer XYZ' \
-d $'{
"source": {
"alias": "hello-world",
"protocol": "oci",
"type": "image",
"server": "https://docker.io"
}
}'
Even when I send a wrong “body” I always get the same response. Eg. omitting “protocol” from it will not create an instance (understandably)
{
"type": "async",
"status": "Operation created",
"status_code": 100,
"operation": "/1.0/operations/ea6ac694-e325-442d-9cc2-ff55c64078a9",
"error_code": 0,
"error": "",
"metadata": {
"id": "ea6ac694-e325-442d-9cc2-ff55c64078a9",
"class": "task",
"description": "Creating instance",
"created_at": "2025-01-29T16:03:54.867205334Z",
"updated_at": "2025-01-29T16:03:54.867205334Z",
"status": "Running",
"status_code": 103,
"resources": {
"instances": [
"/1.0/instances/pro-jaguar"
]
},
"metadata": null,
"may_cancel": false,
"err": "",
"location": "none"
}
}
I know there is an “operation” but it gets away. Are processed operations queryable?