- release_tracks: [ALPHA]
  help_text:
    brief: List Blockchain Node Engine nodes
    description: List Blockchain Node Engine nodes
    examples: |
      The following command lists the status of blockchain nodes in location `us-central1-b`:

        $ {command} --location=us-central1-b

  request:
    collection: blockchainnodeengine.projects.locations.blockchainNodes
    api_version: v1

  response:
    id_field: name

  arguments:
    resource:
      help_text: |
        Location from which to list blockchain nodes.

        To find a list of compute zones available for Blockchain Node Engine nodes
        in your project, run `{parent_command} locations list`.

      spec: !REF googlecloudsdk.command_lib.blockchain_node_engine.resources:location
      is_positional: false

  output:
    format: |
      table(
      name.basename(),
      name.segment(-3):label=ZONE,
      blockchainType:label=NETWORK,
      ethereumDetails.network:label=CHAIN,
      ethereumDetails.nodeType:label=TYPE,
      ethereumDetails.executionClient:label=EXECUTION,
      ethereumDetails.consensusClient:label=CONSENSUS,
      connectionInfo.endpointInfo.jsonRpcApiEndpoint:label=JSON-RPC,
      state:label=STATUS
      )
