Event Channels
An EventChannel is a named grouping of EventSubscriptions.
List Event Channels
Command
files-cli event-channels list
Output
Outputs a list of EventChannel objects according to the output format.
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
Additional Arguments
Show Event Channel
Command
files-cli event-channels find
Output
Outputs a EventChannel object according to the output format.
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
Flags
| Flag | Description |
|---|---|
| --id= int64 Required | Event Channel ID. |
Create Event Channel
Command
files-cli event-channels create
Output
Outputs a EventChannel object according to the output format.
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
Flags
| Flag | Default | Description |
|---|---|---|
| --name= string Required | Event Channel name. | |
| --workspace-id= int64 | 0 | Workspace ID. 0 means the default workspace. |
| --description= string | Event Channel description. | |
| --enabled boolean | true | Whether this Event Channel can dispatch events. |
| --default-channel boolean | false | Whether this Event Channel is the default destination for newly published events. |
Update Event Channel
Command
files-cli event-channels update
Output
Outputs a EventChannel object according to the output format.
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
Flags
| Flag | Description |
|---|---|
| --id= int64 Required | Event Channel ID. |
| --name= string | Event Channel name. |
| --workspace-id= int64 | Workspace ID. 0 means the default workspace. |
| --description= string | Event Channel description. |
| --enabled boolean | Whether this Event Channel can dispatch events. |
| --default-channel boolean | Whether this Event Channel is the default destination for newly published events. |
Delete Event Channel
Command
files-cli event-channels delete
Output
No output is returned.
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
Flags
| Flag | Description |
|---|---|
| --id= int64 Required | Event Channel ID. |
The EventChannel Object
Some of the commands above return a EventChannel object. The attributes of this object are listed below.
| Attribute | Description |
|---|---|
| id int64 | Event Channel ID |
| name string | Event Channel name. |
| workspace_id int64 | Workspace ID. 0 means the default workspace. |
| description string | Event Channel description. |
| enabled boolean | Whether this Event Channel can dispatch events. |
| default_channel boolean | Whether this Event Channel is the default destination for newly published events. |
| created_at date-time | Event Channel create date/time. |
| updated_at date-time | Event Channel update date/time. |