mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 15:46:57 +01:00
37 lines
1006 B
Plaintext
37 lines
1006 B
Plaintext
[id="serverless-list-source_{context}"]
|
|
= Listing available event sources by using the Knative CLI
|
|
|
|
* List the available event sources:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ kn source list
|
|
----
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
NAME TYPE RESOURCE SINK READY
|
|
a1 ApiServerSource apiserversources.sources.knative.dev ksvc:eshow2 True
|
|
b1 SinkBinding sinkbindings.sources.knative.dev ksvc:eshow3 False
|
|
p1 PingSource pingsources.sources.knative.dev ksvc:eshow1 True
|
|
----
|
|
|
|
== Listing event sources of a specific type only
|
|
|
|
You can list event sources of a specific type only, by using the `--type` flag.
|
|
|
|
* List the available ping sources:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ kn source list --type PingSource
|
|
----
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
NAME TYPE RESOURCE SINK READY
|
|
p1 PingSource pingsources.sources.knative.dev ksvc:eshow1 True
|
|
----
|