get_live_channel
Retrieve one live channel by id (full config, status, schedule, outputs).
get_live_channel
Retrieve one live channel by id (full config, status, schedule, outputs).
Retrieve a single live channel by id. The current lifecycle state is
channel["status"]["description"] (a status name like "Running").
Safety class: A · API type: admin · Min version: -
ConfinementRead-only; safe anywhere. Channels are account-global, not folder-confined.
Signatures
def get_live_channel(sdk, live_channel_id):
"""Return the live channel dict for live_channel_id, or None if it does not
resolve. Status name lives at channel['status']['description']."""
return sdk.get_live_channel(live_channel_id)export async function getLiveChannel(sdk, liveChannelId) {
return await sdk.getLiveChannel(liveChannelId);
}Parameters
| Parameter (Python) | Parameter (JS) | Type | Required | Notes |
|---|---|---|---|---|
sdk | sdk | Nomad_SDK | yes | admin-apiType client |
live_channel_id | liveChannelId | str | yes | e.g. f6d0b1f5-6a1b-4369-b9b5-4fef074b503 |
Returns
dict | None - channel object: id, name, status{id,description}, statusMessage, type, outputs, associatedInputs, scheduleEvents, securityGroups; None if not found. See return-shapes.md.
Errors
- 401 unauthenticated
- 404 not found -> returns None
- InvalidAPITypeException if session is not admin
Notes
Real-world usage
GET /api/liveChannel/{id}returns the full channel detail. Read
status({id, description}),statusMessage,type(a lookup),outputs,
associatedInputs, andscheduleEvents.- Deriving status without a status verb. The Python SDK keeps
get_live_channel_statusinternal; readchannel["status"]["description"]off this
object instead. The JS SDK exposesgetLiveChannelStatuspublicly.
Requires an admin session (raises
InvalidAPITypeExceptionotherwise).
Real-world usage
- Maps to
GET /api/liveChannel/{id}for full channel detail. Readsstatus
({id, description}),statusMessage,type,outputs,associatedInputs,
scheduleEvents. - For just the status string, JS can call
getLiveChannelStatus(liveChannelId)directly -
it returnschannel.status.description. (Python exposes this only internally; the public
Python path readschannel["status"]["description"].)
Requires an admin session (raises
InvalidAPITypeExceptionotherwise).
See also: Python ↔ JS naming map · Return shapes.
Updated about 2 months ago
