eluv-io / elv-live-js

Eluvio Live JavaScript SDK
MIT License
4 stars 3 forks source link

Add command to retrieve content space nodes #142

Closed elv-serban closed 1 year ago

elv-serban commented 1 year ago

The primary driver for this function is the live stream configurator but I am making a separate PR since the functionality is independent and can be reviewed separately.

If run with no options, returns all nodes in the content space. If run with --node_id or --endpoint, only returns the matching node(s).

Examples:

./elv-admin nodes --node_id inod3EFQaXzGAFz7ndDoeDxwYsxU2RQs

- id: inod3EFQaXzGAFz7ndDoeDxwYsxU2RQs
  endpoints:
    - 'http://192.168.90.216/'
./elv-admin nodes --endpoint 76-74-28

- id: inod2xdvZF9Jtt4sCFrxRHQAA9VDdDTh
  endpoints:
    - 'https://host-76-74-28-243.contentfabric.io/'
- id: inod3ixE9cx9S3An4KsdR45LE57pPe6D
  endpoints:
    - 'https://host-76-74-28-227.contentfabric.io/'
- id: inodKmtYm77dUuTSzbTTWAKUTDZhDLN
  endpoints:
    - 'https://host-76-74-28-235.contentfabric.io/'
- id: inod3P5oPk4azq8eYUiSh4JYKpRmMoQg
  endpoints:
    - 'https://host-76-74-28-233.contentfabric.io/'
- id: inod26sQ6ScYjxzd1BCc2zkQNv5i9BTJ
  endpoints:
    - 'https://host-76-74-28-234.contentfabric.io/'