1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 15:46:57 +01:00
Files
openshift-docs/modules/serverless-list-source.adoc
2022-02-17 14:38:02 -06:00

47 lines
1.3 KiB
Plaintext

// Module included in the following assemblies:
//
// * serverless/develop/serverless-listing-event-sources.adoc
:_content-type: REFERENCE
[id="serverless-list-source_{context}"]
= Listing available event sources by using the Knative CLI
You can list available event sources by using the `kn source list` command.
[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
----
[id="serverless-list-source-specific-type_{context}"]
== Listing event sources of a specific type only
You can list event sources of a specific type only, by using the `--type` flag.
[source,terminal]
----
$ kn source list --type <event_source_type>
----
.Example command
[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
----