CertificatesApi

All URIs are relative to https://api.ionos.com

Method
HTTP request
Description

DELETE /certificatemanager/certificates/{certificateId}

Delete a Certificate by ID

GET /certificatemanager/certificates

Get Certificates

GET /certificatemanager/certificates/{certificateId}

Get a Certificate by ID

PATCH /certificatemanager/certificates/{certificateId}

Update a Certificate Name by ID

POST /certificatemanager/certificates

Add a New Certificate

certificates_delete

certificates_delete(certificate_id)

Delete a Certificate by ID

Deletes a certificate specified by its ID.

Examples

require 'time'
require 'ionoscloud-cert-manager'
# setup authorization
IonoscloudCertManager.configure do |config|
  # Configure HTTP basic authorization: basicAuth
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'

  # Configure API key authorization: tokenAuth
  config.api_key['Authorization'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  # config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = IonoscloudCertManager::CertificatesApi.new
certificate_id = 'certificate_id_example' # String | 

begin
  # Delete a Certificate by ID
  api_instance.certificates_delete(certificate_id)
rescue IonoscloudCertManager::ApiError => e
  puts "Error when calling CertificatesApi->certificates_delete: #{e}"
end

Using the certificates_delete_with_http_info variant

This returns an Array which contains the response data (nil in this case), status code and headers.

<Array(nil, Integer, Hash)> certificates_delete_with_http_info(certificate_id)

Parameters

Name
Type
Description
Notes

certificate_id

String

Return type

nil (empty response body)

Authorization

basicAuth, tokenAuth

HTTP request headers

  • Content-Type: Not defined

  • Accept: Not defined

certificates_get

certificates_get(opts)

Get Certificates

Retrieves all available certificates.

Examples

Using the certificates_get_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> certificates_get_with_http_info(opts)

Parameters

Name
Type
Description
Notes

offset

String

'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

String

'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.

[optional]

Return type

CertificateCollectionDto

Authorization

basicAuth, tokenAuth

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

certificates_get_by_id

certificates_get_by_id(certificate_id)

Get a Certificate by ID

Retrieves a certificate specified by its ID.

Examples

Using the certificates_get_by_id_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> certificates_get_by_id_with_http_info(certificate_id)

Parameters

Name
Type
Description
Notes

certificate_id

String

Return type

CertificateDto

Authorization

basicAuth, tokenAuth

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

certificates_patch

certificates_patch(certificate_id, certificate_patch_dto)

Update a Certificate Name by ID

Updates the name of the specified certificate.

Examples

Using the certificates_patch_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> certificates_patch_with_http_info(certificate_id, certificate_patch_dto)

Parameters

Name
Type
Description
Notes

certificate_id

String

certificate_patch_dto

Return type

CertificateDto

Authorization

basicAuth, tokenAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

certificates_post

certificates_post(certificate_post_dto)

Add a New Certificate

Adds a new PEM (Privacy Enhanced Mail) file that is used to store SSL certificates and their associated private keys.

Examples

Using the certificates_post_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> certificates_post_with_http_info(certificate_post_dto)

Parameters

Name
Type
Description
Notes

certificate_post_dto

Return type

CertificateDto

Authorization

basicAuth, tokenAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

Last updated