type=page
status=published
title=list-jndi-resources
next=list-jobs.html
prev=list-jndi-entries.html
~~~~~~

= list-jndi-resources

[[list-jndi-resources-1]][[GSRFM00179]][[list-jndi-resources]]

== list-jndi-resources

Lists all existing JNDI resources

[[sthref1592]]

=== Synopsis

[source]
----
list-jndi-resources [--help] [target]
----

[[sthref1593]]

=== Description

The `list-jndi-resources` subcommand identifies all existing JNDI resources.

This subcommand is supported in remote mode only.

[[sthref1594]]

=== Options

asadmin-options::
  Options for the `asadmin` utility. For information about these
  options, see the link:asadmin.html#asadmin-1m[`asadmin`(1M)] help page.
`--help`::
`-?`::
  Displays the help text for the subcommand.

[[sthref1595]]

=== Operands

target::
  The target for which the JNDI resources are to be listed. Valid values
  are as follows:

  `server`;;
    Lists the JNDI resources on the default server instance. This is the
    default value.
  configuration-name;;
    Lists the JNDI resources for the specified configuration.
  cluster-name;;
    Lists the JNDI resources on all server instances in the specified
    cluster.
  instance-name;;
    Lists the JNDI resources on a specified server instance.

[[sthref1596]]

=== Examples

[[GSRFM678]][[sthref1597]]

==== Example 1   Listing JNDI Resources

This example lists the JNDI resources on the default server instance.

[source]
----
asadmin> list-jndi-resources
jndi_resource1
jndi_resource2
jndi_resource3
Command list-jndi-resources executed successfully
----

[[sthref1598]]

=== Exit Status

0::
  subcommand executed successfully
1::
  error in executing the subcommand

[[sthref1599]]

=== See Also

link:asadmin.html#asadmin-1m[`asadmin`(1M)]

link:create-jndi-resource.html#create-jndi-resource-1[`create-jndi-resource`(1)],
link:delete-jndi-resource.html#delete-jndi-resource-1[`delete-jndi-resource`(1)]


