Skip to main content
GET
/
streaming
/
directories
/
tree
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
directories_tree = client.streaming.directories.get_tree()
print(directories_tree.tree)
{
  "tree": [
    {
      "id": 123,
      "name": "<string>",
      "parent_id": 123,
      "items_count": 123,
      "created_at": "<string>",
      "updated_at": "<string>",
      "descendants": [
        {}
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Response

200 - application/json
tree
object[]