from__future__import print_functionimport timeimport ionoscloud_cert_managerfrom ionoscloud_cert_manager.rest import ApiException# Defining the host is optional and defaults to https://api.ionos.comconfiguration = ionoscloud_cert_manager.Configuration( host ='https://api.ionos.com',)# Example of configuring HTTP Basic Authorizationconfiguration.username ='YOUR_USERNAME'configuration.password ='YOUR_PASSWORD'with ionoscloud_cert_manager.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = ionoscloud_cert_manager.CertificatesApi(api_client) certificate_id ='certificate_id_example'# str | try:# Delete a Certificate by ID api_instance.certificates_delete(certificate_id)except ApiException as e:print('Exception when calling CertificatesApi.certificates_delete: %s\n'% e)
from__future__import print_functionimport timeimport ionoscloud_cert_managerfrom ionoscloud_cert_manager.rest import ApiException# Defining the host is optional and defaults to https://api.ionos.comconfiguration = ionoscloud_cert_manager.Configuration( host ='https://api.ionos.com',)# Example of configuring HTTP Basic Authorizationconfiguration.username ='YOUR_USERNAME'configuration.password ='YOUR_PASSWORD'with ionoscloud_cert_manager.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = ionoscloud_cert_manager.CertificatesApi(api_client)try:# Get Certificates api_response = api_instance.certificates_get()print(api_response)except ApiException as e:print('Exception when calling CertificatesApi.certificates_get: %s\n'% e)
from__future__import print_functionimport timeimport ionoscloud_cert_managerfrom ionoscloud_cert_manager.rest import ApiException# Defining the host is optional and defaults to https://api.ionos.comconfiguration = ionoscloud_cert_manager.Configuration( host ='https://api.ionos.com',)# Example of configuring HTTP Basic Authorizationconfiguration.username ='YOUR_USERNAME'configuration.password ='YOUR_PASSWORD'with ionoscloud_cert_manager.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = ionoscloud_cert_manager.CertificatesApi(api_client) certificate_id ='certificate_id_example'# str | try:# Get a Certificate by ID api_response = api_instance.certificates_get_by_id(certificate_id)print(api_response)except ApiException as e:print('Exception when calling CertificatesApi.certificates_get_by_id: %s\n'% e)
from__future__import print_functionimport timeimport ionoscloud_cert_managerfrom ionoscloud_cert_manager.rest import ApiException# Defining the host is optional and defaults to https://api.ionos.comconfiguration = ionoscloud_cert_manager.Configuration( host ='https://api.ionos.com',)# Example of configuring HTTP Basic Authorizationconfiguration.username ='YOUR_USERNAME'configuration.password ='YOUR_PASSWORD'with ionoscloud_cert_manager.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = ionoscloud_cert_manager.CertificatesApi(api_client) certificate_id ='certificate_id_example'# str | certificate_patch_dto = ionoscloud_cert_manager.CertificatePatchDto()# CertificatePatchDto | try:# Update a Certificate Name by ID api_response = api_instance.certificates_patch(certificate_id, certificate_patch_dto)print(api_response)except ApiException as e:print('Exception when calling CertificatesApi.certificates_patch: %s\n'% e)
Adds a new PEM (Privacy Enhanced Mail) file that is used to store SSL certificates and their associated private keys.
Example
from__future__import print_functionimport timeimport ionoscloud_cert_managerfrom ionoscloud_cert_manager.rest import ApiException# Defining the host is optional and defaults to https://api.ionos.comconfiguration = ionoscloud_cert_manager.Configuration( host ='https://api.ionos.com',)# Example of configuring HTTP Basic Authorizationconfiguration.username ='YOUR_USERNAME'configuration.password ='YOUR_PASSWORD'with ionoscloud_cert_manager.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = ionoscloud_cert_manager.CertificatesApi(api_client) certificate_post_dto = ionoscloud_cert_manager.CertificatePostDto()# CertificatePostDto | try:# Add a New Certificate api_response = api_instance.certificates_post(certificate_post_dto)print(api_response)except ApiException as e:print('Exception when calling CertificatesApi.certificates_post: %s\n'% e)
'Limit' and 'Offset' are optional; you can use these filter parameters to retrieve only part of the results obtained by a request. Offset is the first element (from the complete list of elements) to be included in the response.
[optional]
limit
str
'Limit' and 'Offset' are optional; you can use these filter parameters to retrieve only part of the results of a query. If both 'Offset' and 'Limit'are specified, the offset lines are skipped before counting the returned limit lines.