CertificatesApi

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

certificatesDelete

certificatesDelete(certificateId)

Delete a Certificate by ID

Deletes a certificate specified by its ID.

Example

// Import classes:
import com.ionoscloud.certmanager.ApiClient;
import com.ionoscloud.certmanager.ApiException;
import com.ionoscloud.certmanager.Configuration;
import com.ionoscloud.certmanager.auth.*;
import com.ionoscloud.certmanager.model.*;
import com.ionoscloud.certmanager.api.CertificatesApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    
    // Configure HTTP basic authorization: basicAuth
    HttpBasicAuth basicAuthentication = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
    basicAuthentication.setUsername("YOUR USERNAME");
    basicAuthentication.setPassword("YOUR PASSWORD");


    CertificatesApi apiInstance = new CertificatesApi(defaultClient);
    String certificateId = "certificateId_example"; // String | 
    try {
      apiInstance.certificatesDelete(certificateId);
    } catch (ApiException e) {
      System.err.println("Exception when calling CertificatesApi#certificatesDelete");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

Name
Type
Description
Notes

certificateId

String

Return type

null (empty response body)

HTTP request headers

  • Content-Type: Not defined

  • Accept: Not defined

certificatesGet

CertificateCollectionDto certificatesGet(offset, limit)

Get Certificates

Retrieves all available certificates.

Example

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

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

certificatesGetById

CertificateDto certificatesGetById(certificateId)

Get a Certificate by ID

Retrieves a certificate specified by its ID.

Example

Parameters

Name
Type
Description
Notes

certificateId

String

Return type

CertificateDto

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

certificatesPatch

CertificateDto certificatesPatch(certificateId, certificatePatchDto)

Update a Certificate Name by ID

Updates the name of the specified certificate.

Example

Parameters

Name
Type
Description
Notes

certificateId

String

certificatePatchDto

Return type

CertificateDto

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

certificatesPost

CertificateDto certificatesPost(certificatePostDto)

Add a New Certificate

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

Example

Parameters

Name
Type
Description
Notes

certificatePostDto

Return type

CertificateDto

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

Last updated