mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
40 lines
925 B
Plaintext
40 lines
925 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * /serverless/eventing/triggers/list-triggers-cli.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="kn-trigger-list_{context}"]
|
|
= Listing triggers by using the Knative CLI
|
|
|
|
You can use the `kn trigger list` command to list existing triggers in your cluster.
|
|
|
|
.Prerequisites
|
|
|
|
* The {ServerlessOperatorName} and Knative Eventing are installed on your {product-title} cluster.
|
|
* You have installed the Knative (`kn`) CLI.
|
|
|
|
.Procedure
|
|
|
|
. Print a list of available triggers:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ kn trigger list
|
|
----
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
NAME BROKER SINK AGE CONDITIONS READY REASON
|
|
email default ksvc:edisplay 4s 5 OK / 5 True
|
|
ping default ksvc:edisplay 32s 5 OK / 5 True
|
|
----
|
|
|
|
. Optional: Print a list of triggers in JSON format:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ kn trigger list -o json
|
|
----
|
|
//example output?
|