Certificate Manager API, REST: Certificate.get
Returns the specified certificate.
To get the list of available certificates, make a list request.
HTTP request
GET https://certificate-manager.api.cloud.yandex.net/certificate-manager/v1/certificates/{certificateId}
Path parameters
Parameter | Description |
---|---|
certificateId | Required. ID of the certificate to return. To get the ID of a certificate use a list request. The maximum string length in characters is 50. |
Query parameters
Parameter | Description |
---|---|
view | The output type of the certificate.
|
Response
HTTP Code: 200 - OK
{
"id": "string",
"folderId": "string",
"createdAt": "string",
"name": "string",
"description": "string",
"labels": "object",
"type": "string",
"domains": [
"string"
],
"status": "string",
"issuer": "string",
"subject": "string",
"serial": "string",
"updatedAt": "string",
"issuedAt": "string",
"notAfter": "string",
"notBefore": "string",
"challenges": [
{
"domain": "string",
"type": "string",
"createdAt": "string",
"updatedAt": "string",
"status": "string",
"message": "string",
"error": "string",
// `challenges[]` includes only one of the fields `dnsChallenge`, `httpChallenge`
"dnsChallenge": {
"name": "string",
"type": "string",
"value": "string"
},
"httpChallenge": {
"url": "string",
"content": "string"
},
// end of the list of possible fields`challenges[]`
}
],
"deletionProtection": true,
"incompleteChain": true
}
A certificate. For details about the concept, see documentation.
Field | Description |
---|---|
id | string ID of the certificate. Generated at creation time. |
folderId | string ID of the folder that the certificate belongs to. |
createdAt | string (date-time) Creation timestamp. String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
name | string Name of the certificate. The name is unique within the folder. |
description | string Description of the certificate. |
labels | object Certificate labels as |
type | string Type of the certificate. Supported certificate types.
|
domains[] | string Fully qualified domain names of the certificate. |
status | string Status of the certificate.
|
issuer | string Distinguished Name of the certificate authority that issued the certificate. |
subject | string Distinguished Name of the entity that is associated with the public key contained in the certificate. |
serial | string Serial number of the certificate. |
updatedAt | string (date-time) Time when the certificate is updated. String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
issuedAt | string (date-time) Time when the certificate is issued. String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
notAfter | string (date-time) Time after which the certificate is not valid. String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
notBefore | string (date-time) Time before which the certificate is not valid. String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
challenges[] | object Domains validation challenges of the certificate. Used only for managed certificates. |
challenges[]. domain |
string Domain of the challenge. |
challenges[]. type |
string Type of the challenge.
|
challenges[]. createdAt |
string (date-time) Time when the challenge is created. String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
challenges[]. updatedAt |
string (date-time) Time when the challenge is updated. String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
challenges[]. status |
string Status of the challenge.
|
challenges[]. message |
string Description of the challenge. |
challenges[]. error |
string Error of the challenge. |
challenges[]. dnsChallenge |
object DNS-record. challenges[] includes only one of the fields dnsChallenge , httpChallenge |
challenges[]. dnsChallenge. name |
string Name of the DNS record. |
challenges[]. dnsChallenge. type |
string Type of the DNS-record. |
challenges[]. dnsChallenge. value |
string Value of the DNS-record. |
challenges[]. httpChallenge |
object HTTP-file. challenges[] includes only one of the fields dnsChallenge , httpChallenge |
challenges[]. httpChallenge. url |
string Location of the HTTP file. |
challenges[]. httpChallenge. content |
string Content of the HTTP file. |
deletionProtection | boolean (boolean) Flag that protects deletion of the certificate |
incompleteChain | boolean (boolean) Mark imported certificates without uploaded chain or with chain which not lead to root certificate |