Skip to content

Channel:QueryChannel

Requests the details of a specific Notification Channel.

Controller: Channel
Topic: QueryChannel
Action: Publish
Permissions: None

NameTypeExpectDescription
ChannelIDStringAlwaysThe Notification Channel identifier to request the details for.
NameTypeExpectDescription
ChannelIDStringAlwaysThe unique identifier of the existing Channel.
DetailsObjectAlwaysA Channel Details object for identification.
ParametersObjectAlwaysA Channel Parameters object for describing the Channel configuration.
NameTypeExpectDescription
NameStringAlwaysThe user-defined name for the Channel.
DescriptionStringSometimesAn optional description providing further details of the Channel.
MetadataObjectAlwaysAn user-defined object with string values.
StatusStringAlwaysThe status of the Channel. One of:
Active: Channel is active and can distribute notifications.
Inactive: Channel is inactive. Will not distribute notifications - all notifications sent will be lost.
Faulted: Channel has failed due to an error. Will not provide notifications - all notifications sent will be lost.
NameTypeExpectDescription
TypeStringAlwaysThe Distribution Method to use.
SettingsAnyAlwaysThe settings of the Channel. Format depends on the type.

See Appendix K - Distribution Channels for more information on the appropriate Notification Channel settings for a type.

Send:

{"Controller":"Channel","Topic":"QueryChannel","TransactionID":1,"Data":{"ChannelID":"j5Tm6X"}}

Receive:

{"Controller":"Channel","Topic":"QueryChannel","TransactionID":1,"Data":{
"ChannelID":"j5Tm6X",
"Details":{
"Name":"ArcLight (Phone)",
"Description":"ArcLight in Firefox Mobile",
"Metadata":{"Category":"Phone"},
"Status":"Active"
},
"Parameters":{
"Type":"Push.Web",
"Settings":{
"endpoint":"https://updates.push.services.mozilla.com/wpush/v2/gAAAAABi3j...",
"expirationTime":null,
"keys":{
"auth":"uBw-GNUc...",
"p256dh":"BD0ti6D2A..."
}
}
}
}}