update_radius
async
¶
update_radius(
directory_id: DirectoryId,
radius_settings: RadiusSettings,
*,
config_overrides: Optional[AsyncDirectoryServiceClientConfig] = None,
) -> UpdateRadiusResult
Updates the Remote Authentication Dial In User Service (RADIUS) server information for an AD Connector or Microsoft AD directory.
Parameters:
-
directory_id(DirectoryId) –The identifier of the directory for which to update the RADIUS server information.
-
radius_settings(RadiusSettings) –A RadiusSettings object that contains information about the RADIUS server.
Raises:
-
ClientException–A client exception has occurred.
-
EntityDoesNotExistException–The specified entity could not be found.
-
InvalidParameterException–One or more parameters are not valid.
-
ServiceException–An exception has occurred in Directory Service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To update Radius The following example updates the Remote Authentication Dial In User Service (RADIUS) server settings for an AD Connector directory.
>>> await client.update_radius(directory_id='d-92654abfed', radius_settings={'DisplayLabel': 'MyRadius', 'UseSameUsername': True, 'RadiusTimeout': 1, 'AuthenticationProtocol': 'PAP', 'RadiusPort': 1027, 'RadiusRetries': 1, 'SharedSecret': '12345678', 'RadiusServers': ['172.168.101.113']})
Source code in docs_src/capo_directory_service/_services/async_directory_service.py
6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 | |