register_certificate
¶
register_certificate(
directory_id: DirectoryId,
certificate_data: CertificateData,
*,
config_overrides: Optional[DirectoryServiceClientConfig] = None,
type: Optional[CertificateType] = None,
client_cert_auth_settings: Optional[ClientCertAuthSettings] = None,
) -> RegisterCertificateResult
Registers a certificate for a secure LDAP or client certificate authentication.
Parameters:
-
directory_id(DirectoryId) –The identifier of the directory.
-
certificate_data(CertificateData) –The certificate PEM string that needs to be registered.
-
type(Optional[CertificateType], default:None) –The function that the registered certificate performs. Valid values include
ClientLDAPSorClientCertAuth. The default value isClientLDAPS. -
client_cert_auth_settings(Optional[ClientCertAuthSettings], default:None) –A
ClientCertAuthSettingsobject that contains client certificate authentication settings.
Raises:
-
CertificateAlreadyExistsException–The certificate has already been registered into the system.
-
CertificateLimitExceededException–The certificate could not be added because the certificate limit has been reached.
-
ClientException–A client exception has occurred.
-
DirectoryDoesNotExistException–The specified directory does not exist in the system.
-
DirectoryUnavailableException–The specified directory is unavailable.
-
InvalidCertificateException–The certificate PEM that was provided has incorrect encoding.
-
InvalidParameterException–One or more parameters are not valid.
-
ServiceException–An exception has occurred in Directory Service.
-
UnsupportedOperationException–The operation is not supported.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_directory_service/_services/directory_service.py
4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 | |