Tenants - Applications
- 22 Dec 2023
- 1 Minute to read
- Print
- DarkLight
Tenants - Applications
- Updated on 22 Dec 2023
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
The Tenant's Applications endpoint returns a list of all applications owned by the requesting tenant, sorted alphabetically, based on the name of the application.
The following parameters are used to list a tenant's applications:
Argument | Description |
---|---|
tenant_id | (required) The unique identifier of the Tenant object to be retrieved . Can use "current" to retrieve current tenant's applications |
reverse | (optional) Results order can be reversed by adding the ?reverse=true parameter |
GET /1/tenants/{tenant_id}/applications
Host: https://api.cogniac.io
Example: List All Tenant Applications
curl -X GET https://api.cogniac.io/1/tenants/current/applications?reverse=true \
-H "Authorization: Bearer abcdefg.hijklmnop.qrstuvwxyz" \
-H "Content-Type: application/json"
from cogniac import CogniacConnection
# connect to the tenant
cc = cogniac.CogniacConnection(username="test@cogniac.co",
password="myPassword",
tenant_id="63QhzFLc9tg4")
# get a list of tenant's apps
apps=cc.get_all_applications(reverse=True)
print(apps)
For more information on the Cogniac Python SDK, see Cogniac Python-SDK.
{
"data": [
{
"active": true,
"app_managers": [
"test@cogniac.co"
],
"application_id": "rtoXLkuW",
"best_model_ccp_filename": null,
"candidate_model_count": null,
"created_at": 1508185031.058911,
"created_by": "test@cogniac.co",
"current_performance": null,
"custom_fields": {
"clip_size": 4,
"tile_grid": 8
},
"description": "For relighting security camera images.",
"detection_post_urls": [],
"detection_thresholds": {
"output_1qp": 0
},
"gateway_post_urls": [],
"hpo_credit": 0,
"input_subjects": [
"input_0tb"
],
"last_candidate_at": null,
"last_released_at": null,
"modified_at": 1508185031.058911,
"name": "Security Relighter",
"output_subjects": [
"output_1qp"
],
"output_subjects_external_ids": {},
"refresh_feedback": false,
"release_model_count": null,
"replay": false,
"tenant_id": "63QhzFLc9tg4",
"training_data_count": null,
"type": "relighting",
"validation_data_count": null
},
{
\\ Next application object ...
},
...
]
}
Was this article helpful?