application
application ¶
Application Route Functions
This module provides functions for managing Domo applications including retrieval, job management, and execution operations. Applications in Domo are containers for scheduled jobs that perform various automated tasks.
Functions:
| Name | Description |
|---|---|
get_applications |
Retrieve all applications in the instance |
get_application_by_id |
Retrieve a specific application by ID |
get_application_jobs |
Retrieve all jobs for a specific application |
get_application_job_by_id |
Retrieve a specific application job by ID |
create_application_job |
Create a new job in an application |
update_application_job |
Update an existing application job |
update_application_job_trigger |
Update a job trigger configuration |
execute_application_job |
Execute a specific application job |
get_available_rds_reports_step1 |
Get available RDS reports (step 1) |
get_available_rds_reports_step2 |
Get available RDS reports (step 2) |
generate_remote_domostats |
Generate remote domostats configuration |
generate_body_watchdog_generic |
Generate watchdog job configuration |
Exception Classes
Application_GET_Error: Raised when application retrieval fails SearchApplication_NotFound_Error: Raised when application search returns no results Application_CRUD_Error: Raised when application create/update/delete operations fail
Application_CRUD_Error ¶
Application_CRUD_Error(
operation: str,
entity_id: str | None = None,
res: ResponseGetData | None = None,
message: str | None = None,
**kwargs,
)
Bases: RouteError
Raised when application create, update, or delete operations fail.
This exception is used for failures during application job creation, modification, or execution operations.
Source code in src/crew_dcs/routes/application.py
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | |
Application_GET_Error ¶
Application_GET_Error(
entity_id: str | None = None,
res: ResponseGetData | None = None,
message: str | None = None,
**kwargs,
)
Bases: RouteError
Raised when application retrieval operations fail.
This exception is used for failures during GET operations on applications, including API errors and unexpected response formats.
Source code in src/crew_dcs/routes/application.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 | |
SearchApplication_NotFound_Error ¶
SearchApplication_NotFound_Error(
search_criteria: str,
res: ResponseGetData | None = None,
**kwargs,
)
Bases: RouteError
Raised when application search operations return no results.
This exception is used when searching for specific applications that don't exist or when search criteria match no applications.
Source code in src/crew_dcs/routes/application.py
101 102 103 104 105 106 107 108 109 110 111 112 | |
create_application_job
async
¶
create_application_job(
auth: DomoAuth,
body: dict,
application_id: str,
*,
context: RouteContext | None = None,
**context_kwargs,
) -> ResponseGetData
Endpoint
POST /executor/v1/applications/{}/jobs
Called by
Source code in src/crew_dcs/routes/application.py
431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 | |
execute_application_job
async
¶
execute_application_job(
auth: DomoAuth,
application_id: str,
job_id: str,
*,
context: RouteContext | None = None,
**context_kwargs,
)
Endpoint
POST /executor/v1/applications/{}/jobs/{}/executions
Called by
Source code in src/crew_dcs/routes/application.py
537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 | |
get_application_by_id
async
¶
get_application_by_id(
auth: DomoAuth,
application_id: str,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs,
) -> ResponseGetData
Retrieve a specific application by its ID.
Fetches details for a single application identified by its unique ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
auth
|
DomoAuth
|
Authentication object containing instance and credentials |
required |
application_id
|
str
|
Unique identifier for the application to retrieve |
required |
return_raw
|
bool
|
Return raw API response without processing |
False
|
context
|
RouteContext | None
|
Optional RouteContext for request configuration |
None
|
**context_kwargs
|
Additional context parameters (session, debug_api, etc.) |
{}
|
Returns:
| Type | Description |
|---|---|
ResponseGetData
|
ResponseGetData object containing the specific application data |
Raises:
| Type | Description |
|---|---|
Application_GET_Error
|
If application retrieval fails |
SearchApplication_NotFound_Error: If no application with the specified ID exists
Example
app_response = await get_application_by_id(auth, "app-123") app_data = app_response.response print(f"Application Name: {app_data['name']}")
Endpoint
GET /executor/v1/applications/{}
Called by
Source code in src/crew_dcs/routes/application.py
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 | |
get_application_job_by_id
async
¶
get_application_job_by_id(
auth: DomoAuth,
application_id: str,
job_id: str,
*,
context: RouteContext | None = None,
**context_kwargs,
) -> ResponseGetData
Endpoint
GET /executor/v1/applications/{}/jobs/{}
Called by
DomoJob.get_by_idDomoJob_Base._get_by_id
Source code in src/crew_dcs/routes/application.py
337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 | |
get_application_jobs
async
¶
get_application_jobs(
auth: DomoAuth,
application_id: str,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs,
) -> ResponseGetData
Endpoint
GET /executor/v2/applications/{}/jobs
Called by
Source code in src/crew_dcs/routes/application.py
292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 | |
get_applications
async
¶
get_applications(
auth: DomoAuth,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs,
) -> ResponseGetData
Retrieve all applications for the authenticated instance.
Fetches a list of all applications in the current Domo instance. Applications are containers for scheduled jobs that perform automated tasks.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
auth
|
DomoAuth
|
Authentication object containing instance and credentials |
required |
return_raw
|
bool
|
Return raw API response without processing |
False
|
context
|
RouteContext | None
|
Optional RouteContext for request configuration |
None
|
**context_kwargs
|
Additional context parameters (session, debug_api, etc.) |
{}
|
Returns:
| Type | Description |
|---|---|
ResponseGetData
|
ResponseGetData object containing list of applications |
Raises:
| Type | Description |
|---|---|
Application_GET_Error
|
If application retrieval fails or API returns an error |
Example
apps_response = await get_applications(auth) for app in apps_response.response: ... print(f"Application: {app['name']}")
Endpoint
GET /executor/v1/applications
Called by
Source code in src/crew_dcs/routes/application.py
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 | |
get_available_rds_reports_step1
async
¶
get_available_rds_reports_step1(
auth: DomoAuth,
application_id: str,
*,
context: RouteContext | None = None,
**context_kwargs,
)
Endpoint
POST /executor/v1/applications/{}/executions
Source code in src/crew_dcs/routes/application.py
569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 | |
get_available_rds_reports_step2
async
¶
get_available_rds_reports_step2(
auth: DomoAuth,
application_id: str,
job_id: str,
execution_id: str,
*,
context: RouteContext | None = None,
**context_kwargs,
)
Endpoint
GET /executor/v1/applications/{}/jobs/{}/executions/{}
Source code in src/crew_dcs/routes/application.py
602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 | |
update_application_job
async
¶
update_application_job(
auth: DomoAuth,
body: dict,
job_id: str,
application_id: str,
*,
context: RouteContext | None = None,
**context_kwargs,
) -> ResponseGetData
Endpoint
PUT /executor/v1/applications/{}/jobs/{}
Called by
Source code in src/crew_dcs/routes/application.py
467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 | |
update_application_job_trigger
async
¶
update_application_job_trigger(
auth: DomoAuth,
body: dict,
job_id: str,
trigger_id: str,
application_id: str,
*,
context: RouteContext | None = None,
**context_kwargs,
) -> ResponseGetData
Endpoint
PUT /executor/v1/applications/{}/jobs/{}/triggers/{}
Source code in src/crew_dcs/routes/application.py
503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 | |
See also¶
Domo Knowledge Base categories
- Appstore and apps (Available Apps, app showcase) (partial coverage)