get_certificates
¶
get_certificates(
*,
config_overrides: Optional[LightsailClientConfig] = None,
certificate_statuses: Optional[CertificateStatusList] = None,
include_certificate_details: Optional[IncludeCertificateDetails] = None,
certificate_name: Optional[CertificateName] = None,
page_token: Optional[string] = None,
) -> GetCertificatesResult
Returns information about one or more Amazon Lightsail SSL/TLS certificates.
To get a summary of a certificate, omit includeCertificateDetails from your request. The response will include only the certificate Amazon Resource Name (ARN), certificate name, domain name, and tags.
Parameters:
-
certificate_statuses(Optional[CertificateStatusList], default:None) –The status of the certificates for which to return information.
For example, specify
ISSUEDto return only certificates with anISSUEDstatus.When omitted, the response includes all of your certificates in the Amazon Web Services Region where the request is made, regardless of their current status.
-
include_certificate_details(Optional[IncludeCertificateDetails], default:None) –Indicates whether to include detailed information about the certificates in the response.
When omitted, the response includes only the certificate names, Amazon Resource Names (ARNs), domain names, and tags.
-
certificate_name(Optional[CertificateName], default:None) –The name for the certificate for which to return information.
When omitted, the response includes all of your certificates in the Amazon Web Services Region where the request is made.
-
page_token(Optional[string], default:None) –The token to advance to the next page of results from your request.
To get a page token, perform an initial
GetCertificatesrequest. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.
Raises:
-
AccessDeniedException–Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
-
InvalidInputException–Lightsail throws this exception when user input does not conform to the validation rules of an input field.
Domain and distribution APIs are only available in the N. Virginia (
us-east-1) Amazon Web Services Region. Please set your Amazon Web Services Region configuration tous-east-1to create, view, or edit these resources. -
NotFoundException–Lightsail throws this exception when it cannot find a resource.
-
RegionSetupInProgressException–Lightsail throws this exception when an operation is performed on resources in an opt-in Region that is currently being set up.
-
ServiceException–A general service exception.
-
UnauthenticatedException–Lightsail throws this exception when the user has not been authenticated.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lightsail/_services/lightsail.py
4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 | |