Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Finding a list size from Perl?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-07-2016 07:30 AM
Is it possible to determine the size (as in the number of rows) from a list in perl with NetMRI?
From the documentation, it appears that easy->get_list_value is the only method available. From the description, it sounds like wildcarding my search will not work or be helpful, as it returns the first matched value.
Re: Finding a list size from Perl?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-07-2016 07:39 AM
You have to use the lists API directly, not the convenience method on the "NetMRI_Easy" object.
Looks like you can use the "rows" API call with limit=1 and you'll see the total (and one row).
https://netmri/api/3/config_lists/rows?id=6&limit=1
See:
https://netmri/api/3/config_lists/docs#rows
The RESTful API calls map directly to the Perl modules.
John
Looks like you can use the "rows" API call with limit=1 and you'll see the total (and one row).
https://netmri/api/3/config_lists/rows?id=6&limit=1
See:
https://netmri/api/3/config_lists/docs#rows
The RESTful API calls map directly to the Perl modules.
John
Re: Finding a list size from Perl?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-07-2016 07:39 AM
You have to use the lists API directly, not the convenience method on the "NetMRI_Easy" object.
Looks like you can use the "rows" API call with limit=1 and you'll see the total (and one row).
https://netmri/api/3/config_lists/rows?id=6&limit=1
See:
https://netmri/api/3/config_lists/docs#rows
The RESTful API calls map directly to the Perl modules.
John
Looks like you can use the "rows" API call with limit=1 and you'll see the total (and one row).
https://netmri/api/3/config_lists/rows?id=6&limit=1
See:
https://netmri/api/3/config_lists/docs#rows
The RESTful API calls map directly to the Perl modules.
John