1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/serverless-list-source.adoc
2021-06-24 11:21:54 -05:00

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
----