Ceph RBD Snapshots List

Ceph RBD Snapshots List

Certified

List RBD snapshots

The Ceph Dashboard API has no dedicated snapshot-listing endpoint: this task calls GET /api/block/image/{image_spec} and returns the snapshots array embedded in the image detail.

yaml
type: io.kestra.plugin.ceph.rbd.snapshots.List

List snapshots of an RBD image

yaml
id: list_rbd_snapshots
namespace: company.team

tasks:
  - id: snapshots
    type: io.kestra.plugin.ceph.rbd.snapshots.List
    host: "ceph-mgr.internal"
    username: "admin"
    password: "{{ secret('CEPH_DASHBOARD_PASSWORD') }}"
    poolName: "rbd"
    imageName: "data-volume"
Installation

Our standard Docker images already include this plugin. If you use a -slim image or another setup, install it with the following command:

kestractl plugins get io.kestra.plugin:plugin-ceph --compatible-for $KESTRA_VERSION

For kestractl, use your Kestra version with --compatible-for, or specify an exact plugin version.

For Kestra CLI, replace LATEST with a specific version or version range to pin the plugin version.

Properties

Ceph Dashboard host

Hostname or IP address of the Ceph Manager Dashboard. Must be reachable from the Kestra worker.

Image name

Name of the RBD image whose snapshots are listed.

Pool name

Pool the image belongs to.

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
DefaultFETCH
Possible Values
STOREFETCHFETCH_ONENONE

How results are returned

FETCH (default) returns the snapshots inline under snapshots, STORE writes them to Kestra internal storage as Ion and returns a uri, FETCH_ONE returns only the first snapshot, NONE returns just the count. Use STORE on images with a large number of snapshots.

Password

Password for the Ceph Dashboard account. Never logged. Required unless token is set; ignored otherwise.

Default8443

Ceph Dashboard port

TCP port of the Ceph Manager Dashboard REST API. Defaults to 8443.

Defaultfalse

Skip TLS certificate verification

When true, disables TLS certificate verification. Useful when the Ceph Manager Dashboard uses a self-signed certificate, which is the default on most Ceph deployments. Defaults to false (secure): enable it explicitly and only for trusted networks.

Pre-obtained JWT

A JWT obtained from POST /api/auth, used directly instead of username/password. Reused as-is for every request in the execution. It expires (Ceph default 8h TTL) and is NOT auto-renewed, so do not use it in triggers or scheduled flows; use username/password there instead. Mutually exclusive with password: when set, username/password are ignored.

Username

Ceph Dashboard account used to obtain a session token from POST /api/auth. Required unless token is set.

Snapshots

Summary of each snapshot on the image. Empty when fetchType is STORE or NONE.

Definitions
idinteger

Snapshot ID

Numeric identifier Ceph assigned to the snapshot.

is_protectedboolean

Protected

Whether the snapshot is protected from deletion.

namestring

Snapshot name

Name of the snapshot.

sizeinteger

Size

Size of the image at the time the snapshot was taken, in bytes.

timestampstring

Timestamp

When the snapshot was created, kept as the raw string the Ceph Dashboard API returns (e.g. Wed Jan 10 12: 00: 00 2026). The exact format is Ceph-version dependent, so it is not parsed into a typed instant here.

Total

Number of snapshots returned.

Formaturi

URI

Storage URI of the Ion-serialized snapshots. Set only when fetchType is STORE.