{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-v1-certificatelist-schema.json", "title": "v1Certificatelist", "x-generated": "2026-10-04", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/harness-certificates-api-openapi.yml#/components/schemas/v1Certificatelist", "type": "object", "properties": { "content": { "type": "array", "items": { "$ref": "#/$defs/servicev1RepositoryCertificate" } }, "totalPages": { "type": "integer", "format": "int32" }, "totalItems": { "type": "integer", "format": "int32" }, "pageItemCount": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "pageIndex": { "type": "integer", "format": "int32" }, "empty": { "type": "boolean" } }, "$defs": { "certificatesRepositoryCertificate": { "type": "object", "properties": { "serverName": { "type": "string", "title": "ServerName specifies the DNS name of the server this certificate is intended for" }, "certType": { "type": "string", "title": "CertType specifies the type of the certificate - currently one of \"https\" or \"ssh\"" }, "certSubType": { "type": "string", "title": "CertSubType specifies the sub type of the cert, i.e. \"ssh-rsa\"" }, "certData": { "type": "string", "format": "byte", "title": "CertData contains the actual certificate data, dependent on the certificate type" }, "certInfo": { "type": "string", "title": "CertInfo will hold additional certificate info, depdendent on the certificate type (e.g. SSH fingerprint, X509 CommonName)" } }, "title": "A RepositoryCertificate is either SSH known hosts entry or TLS certificate" }, "servicev1RepositoryCertificate": { "type": "object", "properties": { "accountIdentifier": { "type": "string", "description": "Account Identifier for the Entity." }, "orgIdentifier": { "type": "string", "description": "Organization Identifier for the Entity." }, "projectIdentifier": { "type": "string", "description": "Project Identifier for the Entity." }, "agentIdentifier": { "type": "string", "description": "Agent identifier for entity." }, "cert": { "$ref": "#/$defs/certificatesRepositoryCertificate" }, "createdAt": { "type": "string", "format": "date-time" }, "lastModifiedAt": { "type": "string", "format": "date-time" } } } } }