2022-05-11 18:47:31 -04:00
|
|
|
{
|
|
|
|
"type": "object",
|
|
|
|
"description": "CertificateObject",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"id",
|
2023-05-28 18:50:27 -04:00
|
|
|
"created_at",
|
|
|
|
"updated_at",
|
2022-05-11 18:47:31 -04:00
|
|
|
"expires_on",
|
|
|
|
"type",
|
|
|
|
"user_id",
|
|
|
|
"certificate_authority_id",
|
|
|
|
"dns_provider_id",
|
|
|
|
"name",
|
|
|
|
"is_ecc",
|
|
|
|
"status",
|
|
|
|
"domain_names"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 1
|
|
|
|
},
|
2023-05-28 18:50:27 -04:00
|
|
|
"created_at": {
|
2022-05-11 18:47:31 -04:00
|
|
|
"type": "integer",
|
2023-05-28 18:50:27 -04:00
|
|
|
"minimum": 1,
|
|
|
|
"description": "Created Unix time with milliseconds"
|
2022-05-11 18:47:31 -04:00
|
|
|
},
|
2023-05-28 18:50:27 -04:00
|
|
|
"updated_at": {
|
2022-05-11 18:47:31 -04:00
|
|
|
"type": "integer",
|
2023-05-28 18:50:27 -04:00
|
|
|
"minimum": 1,
|
|
|
|
"description": "Updated Unix time with milliseconds"
|
2022-05-11 18:47:31 -04:00
|
|
|
},
|
|
|
|
"expires_on": {
|
2023-05-30 10:08:50 -04:00
|
|
|
"oneOf": [
|
|
|
|
{
|
|
|
|
"type": "null"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 1,
|
|
|
|
"nullable": true
|
|
|
|
}
|
|
|
|
]
|
2022-05-11 18:47:31 -04:00
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": ["custom", "http", "dns"]
|
|
|
|
},
|
|
|
|
"user_id": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 1
|
|
|
|
},
|
|
|
|
"certificate_authority_id": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 0
|
|
|
|
},
|
|
|
|
"certificate_authority": {
|
|
|
|
"$ref": "#/components/schemas/CertificateAuthorityObject"
|
|
|
|
},
|
|
|
|
"dns_provider_id": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 0
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string",
|
|
|
|
"minLength": 1,
|
|
|
|
"maxLength": 100
|
|
|
|
},
|
|
|
|
"domain_names": {
|
|
|
|
"type": "array",
|
|
|
|
"minItems": 1,
|
|
|
|
"items": {
|
|
|
|
"type": "string",
|
|
|
|
"minLength": 4
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"status": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": ["ready", "requesting", "failed", "provided"]
|
|
|
|
},
|
|
|
|
"is_ecc": {
|
2023-02-28 06:29:13 -05:00
|
|
|
"type": "boolean"
|
2022-05-11 18:47:31 -04:00
|
|
|
},
|
|
|
|
"error_message": {
|
|
|
|
"type": "string"
|
2023-01-13 18:50:32 -05:00
|
|
|
},
|
|
|
|
"user": {
|
|
|
|
"$ref": "#/components/schemas/UserObject"
|
2022-05-11 18:47:31 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|