get_certificates
async
¶
get_certificates(
*,
config_overrides: Optional[AsyncLightsailClientConfig] = 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/async_lightsail.py
4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 | |