list_sessions
async
¶
list_sessions(
portal_id: PortalId,
*,
config_overrides: Optional[AsyncWorkSpacesWebClientConfig] = None,
username: Optional[Username] = None,
session_id: Optional[SessionId] = None,
sort_by: Optional[SessionSortBy] = None,
status: Optional[SessionStatus] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListSessionsResponse
Lists information for multiple secure browser sessions from a specific portal.
Parameters:
-
portal_id(PortalId) –The ID of the web portal for the sessions.
-
username(Optional[Username], default:None) –The username of the session.
-
session_id(Optional[SessionId], default:None) –The ID of the session.
-
sort_by(Optional[SessionSortBy], default:None) –The method in which the returned sessions should be sorted.
-
status(Optional[SessionStatus], default:None) –The status of the session.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to be included in the next page.
-
next_token(Optional[PaginationToken], default:None) –The pagination token used to retrieve the next page of results for this operation.
Raises:
-
AccessDeniedException–Access is denied.
-
InternalServerException–There is an internal server error.
-
ResourceNotFoundException–The resource cannot be found.
-
ThrottlingException–There is a throttling error.
-
ValidationException–There is a validation error.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workspaces_web/_services/async_work_spaces_web.py
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 535 536 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 567 568 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 600 601 602 603 604 605 606 607 | |