CertificatesApi
All URIs are relative to https://api.ionos.com
PATCH /certificatemanager/certificates/{certificateId}
Update a Certificate Name by ID
certificatesDelete
certificatesDelete(certificateId)
Delete a Certificate by ID
Deletes a certificate specified by its ID.
Examples
const ionoscloud = require('@ionos-cloud/sdk-nodejs-cert-manager');
// setup authorization
const config = new ionoscloud.Configuration({
username: 'YOUR_USERNAME',
password: 'YOUR_PASSWORD',
apiKey: 'YOUR_API_KEY'
});
const api_instance = new ionoscloud.CertificatesApi(config);
// Delete a Certificate by ID
api_instance
.certificatesDelete({
certificateId: certificateId_example
})
.then((response) => console.log(response.data))
.catch((error) => console.log(error.response.data));
Parameters
certificateId
string
[default to undefined]
Return type
nil (empty response body)
Authorization
basicAuth, tokenAuth
HTTP request headers
Content-Type: Not defined
Accept: Not defined
certificatesGet
certificatesGet(opts)
Get Certificates
Retrieves all available certificates.
Examples
const ionoscloud = require('@ionos-cloud/sdk-nodejs-cert-manager');
// setup authorization
const config = new ionoscloud.Configuration({
username: 'YOUR_USERNAME',
password: 'YOUR_PASSWORD',
apiKey: 'YOUR_API_KEY'
});
const api_instance = new ionoscloud.CertificatesApi(config);
// Get Certificates
api_instance
.certificatesGet({
offset: offset_example,
limit: limit_example
options: {}
})
.then((response) => console.log(response.data))
.catch((error) => console.log(error.response.data));
Parameters
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][default to undefined]
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][default to undefined]
Return type
Authorization
basicAuth, tokenAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
certificatesGetById
certificatesGetById(certificateId)
Get a Certificate by ID
Retrieves a certificate specified by its ID.
Examples
const ionoscloud = require('@ionos-cloud/sdk-nodejs-cert-manager');
// setup authorization
const config = new ionoscloud.Configuration({
username: 'YOUR_USERNAME',
password: 'YOUR_PASSWORD',
apiKey: 'YOUR_API_KEY'
});
const api_instance = new ionoscloud.CertificatesApi(config);
// Get a Certificate by ID
api_instance
.certificatesGetById({
certificateId: certificateId_example
})
.then((response) => console.log(response.data))
.catch((error) => console.log(error.response.data));
Parameters
certificateId
string
[default to undefined]
Return type
Authorization
basicAuth, tokenAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
certificatesPatch
certificatesPatch(certificateId, certificatePatchDto)
Update a Certificate Name by ID
Updates the name of the specified certificate.
Examples
const ionoscloud = require('@ionos-cloud/sdk-nodejs-cert-manager');
// setup authorization
const config = new ionoscloud.Configuration({
username: 'YOUR_USERNAME',
password: 'YOUR_PASSWORD',
apiKey: 'YOUR_API_KEY'
});
const api_instance = new ionoscloud.CertificatesApi(config);
// Update a Certificate Name by ID
api_instance
.certificatesPatch({
certificateId: certificateId_example,
certificatePatchDto: certificatePatchDto_example
})
.then((response) => console.log(response.data))
.catch((error) => console.log(error.response.data));
Parameters
certificateId
string
[default to undefined]
Return type
Authorization
basicAuth, tokenAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
certificatesPost
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.
Examples
const ionoscloud = require('@ionos-cloud/sdk-nodejs-cert-manager');
// setup authorization
const config = new ionoscloud.Configuration({
username: 'YOUR_USERNAME',
password: 'YOUR_PASSWORD',
apiKey: 'YOUR_API_KEY'
});
const api_instance = new ionoscloud.CertificatesApi(config);
// Add a New Certificate
api_instance
.certificatesPost({
certificatePostDto: certificatePostDto_example
})
.then((response) => console.log(response.data))
.catch((error) => console.log(error.response.data));
Parameters
Return type
Authorization
basicAuth, tokenAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
Last updated