Expose certificate dateCreated via API

This commit is contained in:
Marti Raudsepp 2017-08-18 15:13:27 +03:00
parent 5c0cc69d22
commit 50846eb682
2 changed files with 8 additions and 0 deletions

View File

@ -187,6 +187,7 @@ class CertificateOutputSchema(LemurOutputSchema):
issuer = fields.String() issuer = fields.String()
name = fields.String() name = fields.String()
dns_provider_id = fields.Integer(required=False, allow_none=True) dns_provider_id = fields.Integer(required=False, allow_none=True)
date_created = ArrowDateTime()
rotation = fields.Boolean() rotation = fields.Boolean()

View File

@ -83,6 +83,7 @@ class CertificatesList(AuthenticatedResource):
"serial": "82311058732025924142789179368889309156", "serial": "82311058732025924142789179368889309156",
"id": 2288, "id": 2288,
"issuer": "SymantecCorporation", "issuer": "SymantecCorporation",
"dateCreated": "2016-06-03T06:09:42.133769+00:00",
"notBefore": "2016-06-03T00:00:00+00:00", "notBefore": "2016-06-03T00:00:00+00:00",
"notAfter": "2018-01-12T23:59:59+00:00", "notAfter": "2018-01-12T23:59:59+00:00",
"destinations": [], "destinations": [],
@ -214,6 +215,7 @@ class CertificatesList(AuthenticatedResource):
"serial": "82311058732025924142789179368889309156", "serial": "82311058732025924142789179368889309156",
"id": 2288, "id": 2288,
"issuer": "SymantecCorporation", "issuer": "SymantecCorporation",
"dateCreated": "2016-06-03T06:09:42.133769+00:00",
"notBefore": "2016-06-03T00:00:00+00:00", "notBefore": "2016-06-03T00:00:00+00:00",
"notAfter": "2018-01-12T23:59:59+00:00", "notAfter": "2018-01-12T23:59:59+00:00",
"destinations": [], "destinations": [],
@ -334,6 +336,7 @@ class CertificatesUpload(AuthenticatedResource):
"serial": "82311058732025924142789179368889309156", "serial": "82311058732025924142789179368889309156",
"id": 2288, "id": 2288,
"issuer": "SymantecCorporation", "issuer": "SymantecCorporation",
"dateCreated": "2016-06-03T06:09:42.133769+00:00",
"notBefore": "2016-06-03T00:00:00+00:00", "notBefore": "2016-06-03T00:00:00+00:00",
"notAfter": "2018-01-12T23:59:59+00:00", "notAfter": "2018-01-12T23:59:59+00:00",
"destinations": [], "destinations": [],
@ -498,6 +501,7 @@ class Certificates(AuthenticatedResource):
"serial": "82311058732025924142789179368889309156", "serial": "82311058732025924142789179368889309156",
"id": 2288, "id": 2288,
"issuer": "SymantecCorporation", "issuer": "SymantecCorporation",
"dateCreated": "2016-06-03T06:09:42.133769+00:00",
"notBefore": "2016-06-03T00:00:00+00:00", "notBefore": "2016-06-03T00:00:00+00:00",
"notAfter": "2018-01-12T23:59:59+00:00", "notAfter": "2018-01-12T23:59:59+00:00",
"destinations": [], "destinations": [],
@ -587,6 +591,7 @@ class Certificates(AuthenticatedResource):
"serial": "82311058732025924142789179368889309156", "serial": "82311058732025924142789179368889309156",
"id": 2288, "id": 2288,
"issuer": "SymantecCorporation", "issuer": "SymantecCorporation",
"dateCreated": "2016-06-03T06:09:42.133769+00:00",
"notBefore": "2016-06-03T00:00:00+00:00", "notBefore": "2016-06-03T00:00:00+00:00",
"notAfter": "2018-01-12T23:59:59+00:00", "notAfter": "2018-01-12T23:59:59+00:00",
"destinations": [], "destinations": [],
@ -700,6 +705,7 @@ class NotificationCertificatesList(AuthenticatedResource):
"serial": "82311058732025924142789179368889309156", "serial": "82311058732025924142789179368889309156",
"id": 2288, "id": 2288,
"issuer": "SymantecCorporation", "issuer": "SymantecCorporation",
"dateCreated": "2016-06-03T06:09:42.133769+00:00",
"notBefore": "2016-06-03T00:00:00+00:00", "notBefore": "2016-06-03T00:00:00+00:00",
"notAfter": "2018-01-12T23:59:59+00:00", "notAfter": "2018-01-12T23:59:59+00:00",
"destinations": [], "destinations": [],
@ -807,6 +813,7 @@ class CertificatesReplacementsList(AuthenticatedResource):
"serial": "82311058732025924142789179368889309156", "serial": "82311058732025924142789179368889309156",
"id": 2288, "id": 2288,
"issuer": "SymantecCorporation", "issuer": "SymantecCorporation",
"dateCreated": "2016-06-03T06:09:42.133769+00:00",
"notBefore": "2016-06-03T00:00:00+00:00", "notBefore": "2016-06-03T00:00:00+00:00",
"notAfter": "2018-01-12T23:59:59+00:00", "notAfter": "2018-01-12T23:59:59+00:00",
"destinations": [], "destinations": [],