Query Schema
Discover public SQL views and columns before using query_sql; optionally select one view.
GET
/
query
/
schema
cURL
curl --request GET \
--url http://127.0.0.1:{port}/query/schema \
--header 'Authorization: Bearer <token>'from harbor import Harbor
client = Harbor()
result = client.query_schema(view="rollout")
print(result)
client.close()
{
"views": [
{
"name": "<string>",
"columns": [
{
"name": "<string>",
"type": "<string>"
}
]
}
]
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
Required only when the server has HARBOR_API_KEY configured.
Headers
Query Parameters
Maximum string length:
100Response
Successful Response
Show child attributes
Show child attributes
Was this page helpful?
⌘I
cURL
curl --request GET \
--url http://127.0.0.1:{port}/query/schema \
--header 'Authorization: Bearer <token>'from harbor import Harbor
client = Harbor()
result = client.query_schema(view="rollout")
print(result)
client.close()
{
"views": [
{
"name": "<string>",
"columns": [
{
"name": "<string>",
"type": "<string>"
}
]
}
]
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}
