IssuedCertificate
An SSL certificate: list, order, get, update or revoke one, retrieve it as PEM (crt), or get DCV parameters (dcv_params).
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/certificate/issued-certs/{id}/dcv_params |
create |
OK |
POST |
/certificate/dcv_params |
create |
OK |
POST |
/certificate/issued-certs |
create |
OK |
GET |
/certificate/issued-certs |
list |
OK |
GET |
/certificate/issued-certs/{id} |
load |
OK |
GET |
/certificate/issued-certs/{id}/crt |
load |
OK |
DELETE |
/certificate/issued-certs/{id} |
remove |
No Content |
PATCH |
/certificate/issued-certs/{id} |
update |
OK |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
issued_certificates, err := client.IssuedCertificate(nil).List(nil, nil)
if err != nil {
panic(err)
}
fmt.Println(issued_certificates)
issued_certificate, err := client.IssuedCertificate(nil).Load(map[string]any{"id": "example_id"}, nil)
if err != nil {
panic(err)
}
fmt.Println(issued_certificate)
created, err := client.IssuedCertificate(nil).Create(map[string]any{"package": map[string]any{}}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
updated, err := client.IssuedCertificate(nil).Update(map[string]any{"id": "example_id", "sharing_id": "example", "altnames": []any{}}, nil)
if err != nil {
panic(err)
}
fmt.Println(updated)
removed, err := client.IssuedCertificate(nil).Remove(map[string]any{"id": "example_id"}, nil)
if err != nil {
panic(err)
}
fmt.Println(removed)
Lua
Construct client as shown in the Lua setup, then call the operations:
local issued_certificates, err = client:IssuedCertificate():list()
local issued_certificate, err = client:IssuedCertificate():load({ id = "example_id" })
local created, err = client:IssuedCertificate():create({ package = {} })
local updated, err = client:IssuedCertificate():update({ id = "example_id", sharing_id = "example", altnames = {} })
local removed, err = client:IssuedCertificate():remove({ id = "example_id" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$issued_certificates = $client->IssuedCertificate()->list();
$issued_certificate = $client->IssuedCertificate()->load(["id" => "example_id"]);
$created = $client->IssuedCertificate()->create(["package" => []]);
$updated = $client->IssuedCertificate()->update(["id" => "example_id", "sharing_id" => "example", "altnames" => []]);
$client->IssuedCertificate()->remove(["id" => "example_id"]);
Python
Construct client as shown in the Python setup, then call the operations:
issued_certificates = client.IssuedCertificate().list()
issued_certificate = client.IssuedCertificate().load({"id": "example_id"})
created = client.IssuedCertificate().create({ "package": {} })
updated = client.IssuedCertificate().update({"id": "example_id", "sharing_id": "example", "altnames": []})
client.IssuedCertificate().remove({"id": "example_id"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
issued_certificates = client.IssuedCertificate.list()
issued_certificate = client.IssuedCertificate.load({ "id" => "example_id" })
created = client.IssuedCertificate.create({ "package" => {} })
updated = client.IssuedCertificate.update({ "id" => "example_id", "sharing_id" => "example", "altnames" => [] })
client.IssuedCertificate.remove({ "id" => "example_id" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const issued_certificates = await client.IssuedCertificate().list()
const issued_certificate = await client.IssuedCertificate().load({ id: "example_id" })
const created = await client.IssuedCertificate().create({ package: {} })
const updated = await client.IssuedCertificate().update({ id: "example_id", sharing_id: "example", altnames: [] })
await client.IssuedCertificate().remove({ id: "example_id" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
altnames |
array |
Yes | Altnames |
altnames_unicode |
array |
Yes | Altnames Unicode |
apex_only |
boolean |
No | Apex Only |
assumed_name |
string |
No | Assumed Name |
business_category |
string |
No | Business Category |
card_pay_trustlogo |
boolean |
No | Card Pay Trustlogo |
cert |
string |
No | Cert |
cn |
string |
Yes | Cn |
cn_unicode |
string |
Yes | Cn Unicode |
contact |
object |
Yes | Contact |
csr |
string |
No | Csr |
dates |
object |
Yes | Dates |
dcv_method |
string |
No | Dcv Method |
duration |
integer |
No | Duration |
error_msg |
string |
No | Error Msg |
errors |
array |
No | Errors |
href |
string |
No | Href |
id |
string |
Yes | Id |
ida |
object |
No | Ida |
intermediate |
string |
No | Intermediate |
joi |
object |
No | Joi |
middleman |
object |
No | Middleman |
owner |
string |
No | Owner |
package |
object |
Yes | Package |
provider |
string |
Yes | Provider |
reissuable |
boolean |
No | Reissuable |
renewable |
boolean |
No | Renewable |
resellee_id |
string |
No | Resellee Id |
sha_version |
integer |
No | Sha Version |
sharing_id |
string |
No | Sharing Id |
software |
integer |
Yes | Software |
state |
string |
No | State |
state_detail |
string |
No | State Detail |
status |
string |
Yes | Status |
step_nb |
integer |
No | Step Nb |
stored |
boolean |
No | Stored |
tags |
array |
No | Tags |
trustlogo |
boolean |
No | Trustlogo |
trustlogo_token |
object |
No | Trustlogo Token |
create
POST /certificate/issued-certs/{id}/dcv_params
Operation ID: postCertificateIssuedCertsIdDcvParams.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
csr |
string |
No | |
dcv_method |
enum: email, dns, file, http, https |
No | |
package |
string |
No |
Responses
200: OK
application/json
| Property | Type | Required | Description |
|---|---|---|---|
altnames |
array of string |
Yes | |
dcv_method |
enum: email, dns, file, http, https |
Yes | |
dns_records |
array of string |
No | |
fqdns |
array of string |
Yes | |
md5 |
string |
Yes | |
messages |
array of string |
No | |
raw_messages |
array of array of string |
No | |
sha256 |
string |
Yes | |
unique_value |
string |
No |
401: Unauthorized
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
403: Forbidden
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
POST /certificate/dcv_params
Operation ID: postCertificateDcvParams.
Authentication: bearer token (bearerAuth).
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
altnames |
array of string |
No | |
csr |
string |
No | |
dcv_method |
enum: email, dns, file, http, https |
No | |
package |
string |
No |
Responses
200: OK
application/json
| Property | Type | Required | Description |
|---|---|---|---|
altnames |
array of string |
Yes | |
dcv_method |
enum: email, dns, file, http, https |
Yes | |
dns_records |
array of string |
No | |
fqdns |
array of string |
Yes | |
md5 |
string |
Yes | |
messages |
array of string |
No | |
raw_messages |
array of array of string |
No | |
sha256 |
string |
Yes |
401: Unauthorized
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
403: Forbidden
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
POST /certificate/issued-certs
Operation ID: postCertificateIssuedCerts.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
sharing_id |
query |
string |
No | |
Dry-Run |
header |
integer |
No |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
altnames |
array of string |
No | |
apex_only |
boolean |
No | |
cn |
string |
No | |
csr |
string |
No | |
dcv_method |
enum: email, dns, file, http, https |
No | |
duration |
integer |
No | |
package |
string |
Yes | |
resellee_id |
string |
No |
Responses
200: OK
application/json
| Property | Type | Required | Description |
|---|---|---|---|
errors |
array of object |
No | |
errors[].description |
string |
Yes | |
errors[].location |
enum: header, path, querystring, body |
Yes | |
errors[].name |
string |
Yes | |
status |
enum: success, error |
Yes |
202: Accepted
application/json
| Property | Type | Required | Description |
|---|---|---|---|
href |
string |
Yes | |
id |
string |
Yes | |
message |
string |
Yes |
401: Unauthorized
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
403: Forbidden
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
list
GET /certificate/issued-certs
Operation ID: getCertificateIssuedCerts.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
cn |
query |
string |
No | |
cn__eq |
query |
string |
No | |
covered_cn |
query |
string |
No | |
package |
query |
string |
No | |
page |
query |
integer |
No | |
per_page |
query |
integer |
No | |
sharing_id |
query |
string |
No | |
sort_by |
query |
enum: created_at, -created_at, updated_at, -updated_at, started_at, -started_at, ... |
No | |
status |
query |
enum: pending, valid, revoked, replaced, replaced_rev, expired |
No |
Responses
200: OK
application/json
| Property | Type | Required | Description |
|---|---|---|---|
[].altnames |
array of string |
Yes | |
[].altnames_unicode |
array of string |
Yes | |
[].assumed_name |
string |
No | |
[].business_category |
string |
No | |
[].card_pay_trustlogo |
boolean |
No | |
[].cert |
string |
No | |
[].cn |
string |
Yes | |
[].cn_unicode |
string |
Yes | |
[].contact |
object |
Yes | |
[].contact.city |
string |
No | |
[].contact.country |
string |
No | |
[].contact.email |
string |
No | |
[].contact.family |
string |
No | |
[].contact.given |
string |
No | |
[].contact.orgname |
string |
No | |
[].contact.state |
string |
No | |
[].contact.streetaddr |
string |
No | |
[].contact.zip |
string |
No | |
[].csr |
string |
No | |
[].dates |
object |
Yes | |
[].dates.created_at |
string (date-time) |
No | |
[].dates.ends_at |
string (date-time) |
No | |
[].dates.started_at |
string (date-time) |
No | |
[].dates.subscription_ends_at |
string (date-time) |
No | |
[].dates.updated_at |
string (date-time) |
No | |
[].dcv_method |
enum: email, dns, file, http, https |
No | |
[].error_msg |
string |
No | |
[].href |
string |
No | |
[].id |
string |
Yes | |
[].ida |
object |
No | |
[].ida.email |
string |
No | |
[].ida.fax |
string |
No | |
[].ida.tel |
string |
No | |
[].intermediate |
string |
No | |
[].joi |
object |
No | |
[].joi.country |
string |
No | |
[].joi.locality |
string |
No | |
[].joi.state |
string |
No | |
[].middleman |
object |
No | |
[].middleman.city |
string |
No | |
[].middleman.country |
string |
No | |
[].middleman.email |
string |
No | |
[].middleman.family |
string |
No | |
[].middleman.given |
string |
No | |
[].middleman.orgname |
string |
No | |
[].middleman.state |
string |
No | |
[].middleman.streetaddr |
string |
No | |
[].middleman.zip |
string |
No | |
[].owner |
string |
No | |
[].package |
object |
Yes | |
[].package.href |
string |
Yes | |
[].package.max_domains |
integer |
Yes | |
[].package.name |
string |
Yes | |
[].package.name_label |
string |
Yes | |
[].package.type |
string |
Yes | |
[].package.type_label |
string |
Yes | |
[].package.wildcard |
boolean |
Yes | |
[].provider |
string |
Yes | |
[].reissuable |
boolean |
No | |
[].renewable |
boolean |
No | |
[].sha_version |
integer |
No | |
[].sharing_id |
string |
No | |
[].software |
integer |
Yes | |
[].state |
string |
No | |
[].state_detail |
string |
No | |
[].status |
enum: pending, valid, revoked, replaced, replaced_rev, expired |
Yes | |
[].step_nb |
enum: 0, 1, 2, 3, 4, 5 |
No | |
[].stored |
boolean |
No | |
[].tags |
array of string |
No | |
[].trustlogo |
boolean |
No | |
[].trustlogo_token |
object |
No |
401: Unauthorized
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
403: Forbidden
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
load
GET /certificate/issued-certs/{id}
Operation ID: getCertificateIssuedCertsId.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path |
string |
Yes |
Responses
200: OK
application/json
| Property | Type | Required | Description |
|---|---|---|---|
altnames |
array of string |
Yes | |
altnames_unicode |
array of string |
Yes | |
assumed_name |
string |
No | |
business_category |
string |
No | |
card_pay_trustlogo |
boolean |
No | |
cert |
string |
No | |
cn |
string |
Yes | |
cn_unicode |
string |
Yes | |
contact |
object |
Yes | |
contact.city |
string |
No | |
contact.country |
string |
No | |
contact.email |
string |
No | |
contact.family |
string |
No | |
contact.given |
string |
No | |
contact.orgname |
string |
No | |
contact.state |
string |
No | |
contact.streetaddr |
string |
No | |
contact.zip |
string |
No | |
csr |
string |
No | |
dates |
object |
Yes | |
dates.created_at |
string (date-time) |
No | |
dates.ends_at |
string (date-time) |
No | |
dates.started_at |
string (date-time) |
No | |
dates.subscription_ends_at |
string (date-time) |
No | |
dates.updated_at |
string (date-time) |
No | |
dcv_method |
enum: email, dns, file, http, https |
No | |
error_msg |
string |
No | |
href |
string |
No | |
id |
string |
Yes | |
ida |
object |
No | |
ida.email |
string |
No | |
ida.fax |
string |
No | |
ida.tel |
string |
No | |
intermediate |
string |
No | |
joi |
object |
No | |
joi.country |
string |
No | |
joi.locality |
string |
No | |
joi.state |
string |
No | |
middleman |
object |
No | |
middleman.city |
string |
No | |
middleman.country |
string |
No | |
middleman.email |
string |
No | |
middleman.family |
string |
No | |
middleman.given |
string |
No | |
middleman.orgname |
string |
No | |
middleman.state |
string |
No | |
middleman.streetaddr |
string |
No | |
middleman.zip |
string |
No | |
owner |
string |
No | |
package |
object |
Yes | |
package.href |
string |
Yes | |
package.max_domains |
integer |
Yes | |
package.name |
string |
Yes | |
package.name_label |
string |
Yes | |
package.type |
string |
Yes | |
package.type_label |
string |
Yes | |
package.wildcard |
boolean |
Yes | |
provider |
string |
Yes | |
reissuable |
boolean |
No | |
renewable |
boolean |
No | |
sha_version |
integer |
No | |
sharing_id |
string |
No | |
software |
integer |
Yes | |
state |
string |
No | |
state_detail |
string |
No | |
status |
enum: pending, valid, revoked, replaced, replaced_rev, expired |
Yes | |
step_nb |
enum: 0, 1, 2, 3, 4, 5 |
No | |
stored |
boolean |
No | |
tags |
array of string |
No | |
trustlogo |
boolean |
No | |
trustlogo_token |
object |
No |
401: Unauthorized
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
403: Forbidden
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
GET /certificate/issued-certs/{id}/crt
Operation ID: getCertificateIssuedCertsIdCrt.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path |
string |
Yes |
Responses
200: OK
text/plain
The response is string.
401: Unauthorized
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
403: Forbidden
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
remove
DELETE /certificate/issued-certs/{id}
Operation ID: deleteCertificateIssuedCertsId.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path |
string |
Yes | |
sharing_id |
query |
string |
No |
Responses
204: No Content
401: Unauthorized
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
403: Forbidden
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
update
PATCH /certificate/issued-certs/{id}
Operation ID: patchCertificateIssuedCertsId.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path |
string |
Yes | |
sharing_id |
query |
string |
No | |
Dry-Run |
header |
integer |
No |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
altnames |
array of string |
No | |
csr |
string |
No | |
dcv_method |
string |
No |
Responses
200: OK
application/json
| Property | Type | Required | Description |
|---|---|---|---|
errors |
array of object |
No | |
errors[].description |
string |
Yes | |
errors[].location |
enum: header, path, querystring, body |
Yes | |
errors[].name |
string |
Yes | |
status |
enum: success, error |
Yes |
202: Accepted
application/json
| Property | Type | Required | Description |
|---|---|---|---|
message |
string |
Yes |
401: Unauthorized
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
403: Forbidden
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |