Public
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Honored Contributor

How many nodes do I have?

I can't find it if it exists.  Besides manually counting them, is there an easier way to count the number of nodes we have?  Our structure is complex and we have archives and manually counting them would be quite a job.   I know we have over 1000 nodes, but I need to find out just how many we have.  

--
Community manager in the Micro Focus Community. My computer always used to beat me at chess, but it is no match for me now I changed the competition to kick boxing.
5 Replies 5
Highlighted
Honored Contributor

@kgroneman 

You can use this API to get count of total number of nodes in your community.

https://[community.yourcommunity.com]/restapi/vc/nodes/count

https://devdocportal.lithium.com/t5/Community-API-v1-Reference/bd-p/restv1docs?section=commv1&leaf-i...

.......
Do you know we work with Kudos and Accepted Solution.
Highlighted
Honored Contributor

Well that looks like it should work, but it says I only have 13 nodes.   Probably the nodes immediately under the community root page.   Can it count all nodes?

 

<response status="success">
<link type="text/css" id="dark-mode" rel="stylesheet" href=""/>
<value type="int">13</value>
</response>

 

--
Community manager in the Micro Focus Community. My computer always used to beat me at chess, but it is no match for me now I changed the competition to kick boxing.
Highlighted

@Parshant your suggestion got me looking and I found this which seems to work, but only for sub nodes as you have to put in a node ID:

http://community.lithium.com/community-name/restapi/vc/categories/id/support/nodes/nested/count

Is there a way to do it from the community level to get all nodes? 

--
Community manager in the Micro Focus Community. My computer always used to beat me at chess, but it is no match for me now I changed the competition to kick boxing.
Highlighted
Honored Contributor

@kgroneman, For all nested level, You can simply use it like

http://community.lithium.com/community-name/restapi/vc/nodes/nested/count

 

This will give you count of all the child level nodes from root.

.......
Do you know we work with Kudos and Accepted Solution.
Highlighted
Honored Contributor

Thank you!

--
Community manager in the Micro Focus Community. My computer always used to beat me at chess, but it is no match for me now I changed the competition to kick boxing.