Vostok.ZooKeeper
  • Overview
  • Quickstart
  • Basics
    • Creating a Client
    • Connecting to a ZooKeeper Cluster
    • Using Client
    • Limitations
  • Operations
    • Common Concepts
    • Creating a Node
    • Deleting a Node
    • Probing Node Existence
    • Getting Children of a Node
    • Getting of a Node Data
    • Setting of a Node Data
  • Observing Node Events
  • Recipes
    • Distributed Lock
Powered by GitBook
On this page
  1. Operations

Getting Children of a Node

To get a list of immediate children of a node, use GetChildrenAsync.

Given the nodes

var result = await client.GetChildrenAync(new GetChildrenRequest("/prefix"));

Given the nodes

/prefix/a
/prefix/a/1
/prefix/a/2
/prefix/b/1
/prefix/c

The result.ChildrenNames would contain

a
b
c

Result model also contains NodeStat Stat.

PreviousProbing Node ExistenceNextGetting of a Node Data

Last updated 3 years ago