List lifecycle events related to a snapshot
import requests
url = "https://api.13-215-85-171.sslip.io/v1/snapshots/{id}/lifecycle"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.13-215-85-171.sslip.io/v1/snapshots/{id}/lifecycle \
--header 'Authorization: Bearer <token>'{
"events": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"occurred_at": "2023-11-07T05:31:56Z",
"audience": "customer",
"operation": "create",
"status": "requested",
"actor_kind": "user",
"metadata": {},
"machine_id": "<string>",
"snapshot_id": "<string>",
"source_machine_id": "<string>",
"target_machine_id": "<string>",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "<string>",
"error_code": "<string>",
"error_message": "<string>"
}
],
"offset": 123,
"limit": 123,
"has_more": true
}
Machines
List lifecycle events related to a snapshot
Returns customer-visible lifecycle events where the snapshot appears as the lifecycle snapshot subject.
GET
/
v1
/
snapshots
/
{id}
/
lifecycle
List lifecycle events related to a snapshot
import requests
url = "https://api.13-215-85-171.sslip.io/v1/snapshots/{id}/lifecycle"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.13-215-85-171.sslip.io/v1/snapshots/{id}/lifecycle \
--header 'Authorization: Bearer <token>'{
"events": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"occurred_at": "2023-11-07T05:31:56Z",
"audience": "customer",
"operation": "create",
"status": "requested",
"actor_kind": "user",
"metadata": {},
"machine_id": "<string>",
"snapshot_id": "<string>",
"source_machine_id": "<string>",
"target_machine_id": "<string>",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "<string>",
"error_code": "<string>",
"error_message": "<string>"
}
],
"offset": 123,
"limit": 123,
"has_more": true
}