|
19 | 19 | * [restore\_dashboard\_version](#dashboard.Dashboard.restore_dashboard_version)
|
20 | 20 | * [restore\_dashboard\_version\_by\_uid](#dashboard.Dashboard.restore_dashboard_version_by_uid)
|
21 | 21 | * [calculate\_dashboard\_diff](#dashboard.Dashboard.calculate_dashboard_diff)
|
| 22 | + * [get\_public\_dashboards](#dashboard.Dashboard.get_public_dashboards) |
| 23 | + * [get\_public\_dashboard\_by\_uid](#dashboard.Dashboard.get_public_dashboard_by_uid) |
| 24 | + * [create\_public\_dashboard](#dashboard.Dashboard.create_public_dashboard) |
| 25 | + * [update\_public\_dashboard](#dashboard.Dashboard.update_public_dashboard) |
| 26 | + * [delete\_public\_dashboard](#dashboard.Dashboard.delete_public_dashboard) |
22 | 27 |
|
23 | 28 | <a id="dashboard"></a>
|
24 | 29 |
|
@@ -476,3 +481,162 @@ The method includes a functionality to calculate the diff of specified versions
|
476 | 481 |
|
477 | 482 | - `api_call` _str_ - Returns the difference of the two specified dashboards
|
478 | 483 |
|
| 484 | +<a id="dashboard.Dashboard.get_public_dashboards"></a> |
| 485 | + |
| 486 | +#### get\_public\_dashboards |
| 487 | + |
| 488 | +```python |
| 489 | +def get_public_dashboards(per_page: int = None, page: int = None) -> dict |
| 490 | +``` |
| 491 | + |
| 492 | +The method includes a functionality to get all public available dashboards |
| 493 | + |
| 494 | +Required Permissions: |
| 495 | +Action: dashboards:read |
| 496 | +Scope: dashboards:uid:<dashboard UID> |
| 497 | + |
| 498 | +**Arguments**: |
| 499 | + |
| 500 | +- `per_page` _int_ - Specify the value per page size |
| 501 | +- `page` _int_ - Specify the page |
| 502 | + |
| 503 | + |
| 504 | +**Raises**: |
| 505 | + |
| 506 | +- `Exception` - Unspecified error by executing the API call |
| 507 | + |
| 508 | + |
| 509 | +**Returns**: |
| 510 | + |
| 511 | +- `api_call` _dict_ - Returns all public available dashboards |
| 512 | + |
| 513 | +<a id="dashboard.Dashboard.get_public_dashboard_by_uid"></a> |
| 514 | + |
| 515 | +#### get\_public\_dashboard\_by\_uid |
| 516 | + |
| 517 | +```python |
| 518 | +def get_public_dashboard_by_uid(dashboard_uid: str) -> dict |
| 519 | +``` |
| 520 | + |
| 521 | +The method includes a functionality to get a public available dashboard specified by dashboard_uid |
| 522 | + |
| 523 | +Required Permissions: |
| 524 | +Action: dashboards:read |
| 525 | +Scope: dashboards:uid:<dashboard UID> |
| 526 | + |
| 527 | +**Arguments**: |
| 528 | + |
| 529 | +- `dashboard_uid` _str_ - Specify the dashboard_uid |
| 530 | + |
| 531 | + |
| 532 | +**Raises**: |
| 533 | + |
| 534 | +- `ValueError` - Missed specifying a necessary value |
| 535 | +- `Exception` - Unspecified error by executing the API call |
| 536 | + |
| 537 | + |
| 538 | +**Returns**: |
| 539 | + |
| 540 | +- `api_call` _dict_ - Returns the corresponding public available dashboard |
| 541 | + |
| 542 | +<a id="dashboard.Dashboard.create_public_dashboard"></a> |
| 543 | + |
| 544 | +#### create\_public\_dashboard |
| 545 | + |
| 546 | +```python |
| 547 | +def create_public_dashboard( |
| 548 | + dashboard_uid: str, public_dashboard: PublicDashboard = PublicDashboard() |
| 549 | +) -> dict |
| 550 | +``` |
| 551 | + |
| 552 | +The method includes a functionality to create a public available dashboard |
| 553 | + |
| 554 | +Required Permissions: |
| 555 | +Action: dashboards.public:write |
| 556 | +Scope: dashboards:uid:<dashboard UID> |
| 557 | + |
| 558 | +**Arguments**: |
| 559 | + |
| 560 | +- `dashboard_uid` _str_ - Specify the dashboard_uid |
| 561 | +- `public_dashboard` _PublicDashboard_ - Specify the optional public dashboard object |
| 562 | + |
| 563 | + |
| 564 | +**Raises**: |
| 565 | + |
| 566 | +- `ValueError` - Missed specifying a necessary value |
| 567 | +- `Exception` - Unspecified error by executing the API call |
| 568 | + |
| 569 | + |
| 570 | +**Returns**: |
| 571 | + |
| 572 | +- `api_call` _dict_ - Returns the corresponding public available dashboard |
| 573 | + |
| 574 | +<a id="dashboard.Dashboard.update_public_dashboard"></a> |
| 575 | + |
| 576 | +#### update\_public\_dashboard |
| 577 | + |
| 578 | +```python |
| 579 | +def update_public_dashboard(dashboard_uid: str, |
| 580 | + public_dashboard_uid: str, |
| 581 | + time_selection_enabled: bool = None, |
| 582 | + is_enabled: bool = None, |
| 583 | + annotations_enabled: bool = None, |
| 584 | + share: str = None) -> dict |
| 585 | +``` |
| 586 | + |
| 587 | +The method includes a functionality to update a public available dashboard |
| 588 | + |
| 589 | +Required Permissions: |
| 590 | +Action: dashboards.public:write |
| 591 | +Scope: dashboards:uid:<dashboard UID> |
| 592 | + |
| 593 | +**Arguments**: |
| 594 | + |
| 595 | +- `dashboard_uid` _str_ - Specify the dashboard_uid |
| 596 | +- `public_dashboard_uid` _str_ - Specify the public_dashboard_uid |
| 597 | +- `time_selection_enabled` _bool_ - Specify the optional enablement of the time picker inside the public dashboard (default None) |
| 598 | +- `is_enabled` _bool_ - Specify the optional enablement of the public dashboard (default None) |
| 599 | +- `annotations_enabled` _bool_ - Specify the optional enablement of the annotations inside the public dashboard (default None) |
| 600 | +- `share` _str_ - Specify the optional share mode of the public dashboard (default None) |
| 601 | + |
| 602 | + |
| 603 | +**Raises**: |
| 604 | + |
| 605 | +- `ValueError` - Missed specifying a necessary value |
| 606 | +- `Exception` - Unspecified error by executing the API call |
| 607 | + |
| 608 | + |
| 609 | +**Returns**: |
| 610 | + |
| 611 | +- `api_call` _dict_ - Returns the corresponding public available dashboard |
| 612 | + |
| 613 | +<a id="dashboard.Dashboard.delete_public_dashboard"></a> |
| 614 | + |
| 615 | +#### delete\_public\_dashboard |
| 616 | + |
| 617 | +```python |
| 618 | +def delete_public_dashboard(dashboard_uid: str, public_dashboard_uid: str) |
| 619 | +``` |
| 620 | + |
| 621 | +The method includes a functionality to delete a public available dashboard |
| 622 | + |
| 623 | +Required Permissions: |
| 624 | +Action: dashboards.public:write |
| 625 | +Scope: dashboards:uid:<dashboard UID> |
| 626 | + |
| 627 | +**Arguments**: |
| 628 | + |
| 629 | +- `dashboard_uid` _str_ - Specify the dashboard_uid |
| 630 | +- `public_dashboard_uid` _str_ - Specify the public_dashboard_uid |
| 631 | + |
| 632 | + |
| 633 | +**Raises**: |
| 634 | + |
| 635 | +- `ValueError` - Missed specifying a necessary value |
| 636 | +- `Exception` - Unspecified error by executing the API call |
| 637 | + |
| 638 | + |
| 639 | +**Returns**: |
| 640 | + |
| 641 | + None |
| 642 | + |
0 commit comments