Khoros Atlas Logo

%3CLINGO-SUB%20id%3D%22lingo-sub-567644%22%20slang%3D%22en-US%22%3EHow%20many%20nodes%20do%20I%20have%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-567644%22%20slang%3D%22en-US%22%3E%3CP%3EI%20can't%20find%20it%20if%20it%20exists.%26nbsp%3B%20Besides%20manually%20counting%20them%2C%20is%20there%20an%20easier%20way%20to%20count%20the%20number%20of%20nodes%20we%20have%3F%26nbsp%3B%20Our%20structure%20is%20complex%20and%20we%20have%20archives%20and%20manually%20counting%20them%20would%20be%20quite%20a%20job.%26nbsp%3B%20%26nbsp%3BI%20know%20we%20have%20over%201000%20nodes%2C%20but%20I%20need%20to%20find%20out%20just%20how%20many%20we%20have.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Honored Contributor
Honored Contributor

How many nodes do I have?

Jump to solution

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.
0 Kudos
5 Replies 5
Highlighted
Honored Contributor
Honored Contributor

Re: How many nodes do I have?

Jump to solution

@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.
Reply
Loading...
Highlighted
Honored Contributor
Honored Contributor

Re: How many nodes do I have?

Jump to solution

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.
0 Kudos
Reply
Loading...
Highlighted
Honored Contributor
Honored Contributor

Re: How many nodes do I have?

Jump to solution

@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.
0 Kudos
Reply
Loading...
Highlighted
Honored Contributor
Honored Contributor

Re: How many nodes do I have?

Jump to solution

@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.
0 Kudos
Reply
Loading...
Highlighted
Honored Contributor
Honored Contributor

Re: How many nodes do I have?

Jump to solution

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.
0 Kudos
Reply
Loading...