Skip to content

The release media on this node, and the releases fetched here.

GET
/v1/admin/upgrades/media
Code sample: Shell / cURL
curl --request GET \
--url https://stratum.example.com/v1/admin/upgrades/media \
--header 'Authorization: Bearer <token>'

media are the release bundles uploaded or attached for an offline upgrade, newest first, each with its verification state. loaded are the releases fetched onto this node (into its image store, with stratum-os kept for the switch), from a medium or the release mirror. Install-scope; gates on upgrade:ListMedia.

The media and the fetched releases.

Media typeapplication/json
object
media
required
Array<object>

A release medium for an offline upgrade. receiving and verifying while the call that added it runs; then verified, or refused with the reason in message.

object
id
required
string
source
required
string
Allowed values: upload path
path
required

The release directory on the node.

string
state
required
string
Allowed values: receiving verifying verified refused
message

Why the medium was refused, or what is being done.

string
release

The release version the signed manifest names.

string
commit
string
keyId

The release key that signed the manifest.

string
manifestDigest

The sha256 of the signed manifest.

string
sizeBytes
required
integer format: int64
createdAt
required
string format: date-time
verifiedAt
string format: date-time
loaded
required

This release is fetched on this node (its images in the store, stratum-os kept).

boolean
loaded
required
Array<object>

A release fetched onto this node, ready for an upgrade to switch to.

object
release
required
string
manifestDigest
required
string
keyId
required
string
source
required

Where it was fetched from (a directory or the mirror URL).

string
osDigest
required

The stratum-os image digest.

string
osLayout
required

Where stratum-os is kept on the node, as an OCI layout.

string
loaded
required

Images the fetch put into the node’s image store.

Array<string>
present
required

Images that were there already.

Array<string>
took
string
loadedAt
required
string format: date-time

Example

{
"media": [
{
"id": "med-4k2j9x0qpa",
"source": "upload",
"state": "receiving",
"release": "v2.1.0",
"keyId": "6B1F0C9A3D2E4F51"
}
]
}

Authenticated but not authorized.

Media typeapplication/problem+json
object
type
required
string format: uri
title
required
string
status
required
integer
>= 400 <= 599
detail
string
instance
string format: uri-reference
requestId
required
string
code
required
string
issues

The findings of a rejected IAM policy document (custom and resource policies).

Array<object>

One finding of a rejected IAM policy document. A rejection lists every finding, so the author fixes the document in one round trip.

object
code
required

The finding, e.g. INVALID_DOCUMENT, UNKNOWN_ACTION, ACTION_NOT_APPLICABLE.

string
statement
required

Index of the statement at fault; -1 for the document as a whole.

integer
>= -1
detail
required
string
action

The offending action, where one is at fault (ACTION_NOT_APPLICABLE).

string
errors

Field errors, for codes that carry them: each problem at its field (see FieldError). Documented on the responses that set it, e.g. approveNodeJoin’s INVALID_INPUT and JOIN_APPROVAL_REFUSED. Absent otherwise.

Array<object>

One field’s problem, the stage-2 installer API’s shape. field is the field’s path, message what is wrong with it.

object
field
required

The field’s path, e.g. links[0].interface, disks[1].confirm, mgmt.address or role; empty for the whole request.

string
message
required
string
details

Structured facts about the refusal, for codes that carry them. The shape is fixed per code and documented on the response that answers it, e.g. IMAGE_POOL_MISMATCH (see ImagePoolMismatchDetails) and IMAGE_IN_USE. Absent for codes that carry none.

object
key
additional properties
any

Example

{
"issues": [
{
"code": "ACTION_NOT_APPLICABLE",
"action": "compute:CreateVpc"
}
]
}

Upstream temporarily unavailable (driver / scheduler / dependency).

Media typeapplication/problem+json
object
type
required
string format: uri
title
required
string
status
required
integer
>= 400 <= 599
detail
string
instance
string format: uri-reference
requestId
required
string
code
required
string
issues

The findings of a rejected IAM policy document (custom and resource policies).

Array<object>

One finding of a rejected IAM policy document. A rejection lists every finding, so the author fixes the document in one round trip.

object
code
required

The finding, e.g. INVALID_DOCUMENT, UNKNOWN_ACTION, ACTION_NOT_APPLICABLE.

string
statement
required

Index of the statement at fault; -1 for the document as a whole.

integer
>= -1
detail
required
string
action

The offending action, where one is at fault (ACTION_NOT_APPLICABLE).

string
errors

Field errors, for codes that carry them: each problem at its field (see FieldError). Documented on the responses that set it, e.g. approveNodeJoin’s INVALID_INPUT and JOIN_APPROVAL_REFUSED. Absent otherwise.

Array<object>

One field’s problem, the stage-2 installer API’s shape. field is the field’s path, message what is wrong with it.

object
field
required

The field’s path, e.g. links[0].interface, disks[1].confirm, mgmt.address or role; empty for the whole request.

string
message
required
string
details

Structured facts about the refusal, for codes that carry them. The shape is fixed per code and documented on the response that answers it, e.g. IMAGE_POOL_MISMATCH (see ImagePoolMismatchDetails) and IMAGE_IN_USE. Absent for codes that carry none.

object
key
additional properties
any

Example

{
"issues": [
{
"code": "ACTION_NOT_APPLICABLE",
"action": "compute:CreateVpc"
}
]
}