Docs › OCPP 1.6 › DeleteCertificate

DeleteCertificate OCPP 1.6

Der Simulator antwortet mit NotSupported, prüft die Nachricht aber gegen das Schema.

Auch in: OCPP 2.0.1, OCPP 2.1

Request

FeldTypEinschränkungen / Beschreibung
certificateHashDataobjectPflicht
certificateHashData.hashAlgorithmstringPflichtenum: SHA256, SHA384, SHA512
certificateHashData.issuerNameHashstringPflichtmaxLength 128
certificateHashData.issuerKeyHashstringPflichtmaxLength 128
certificateHashData.serialNumberstringPflichtmaxLength 40
JSON-Schema (Request)
{
  "$schema": "http://json-schema.org/draft-06/schema#",
  "$id": "urn:OCPP:Cp:1.6:2020:3:DeleteCertificate.req",
  "definitions": {
    "HashAlgorithmEnumType": {
      "type": "string",
      "additionalProperties": false,
      "enum": [
        "SHA256",
        "SHA384",
        "SHA512"
      ]
    },
    "CertificateHashDataType": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "hashAlgorithm": {
          "$ref": "#/definitions/HashAlgorithmEnumType"
        },
        "issuerNameHash": {
          "type": "string",
          "maxLength": 128
        },
        "issuerKeyHash": {
          "type": "string",
          "maxLength": 128
        },
        "serialNumber": {
          "type": "string",
          "maxLength": 40
        }
      },
      "required": [
        "hashAlgorithm",
        "issuerNameHash",
        "issuerKeyHash",
        "serialNumber"
      ]
    }
  },
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "certificateHashData": {
      "$ref": "#/definitions/CertificateHashDataType"
    }
  },
  "required": [
    "certificateHashData"
  ]
}

Response

FeldTypEinschränkungen / Beschreibung
statusstringPflichtenum: Accepted, Failed, NotFound
JSON-Schema (Response)
{
  "$schema": "http://json-schema.org/draft-06/schema#",
  "$id": "urn:OCPP:Cp:1.6:2020:3:DeleteCertificate.conf",
  "definitions": {
    "DeleteCertificateStatusEnumType": {
      "type": "string",
      "additionalProperties": false,
      "enum": [
        "Accepted",
        "Failed",
        "NotFound"
      ]
    }
  },
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "status": {
      "$ref": "#/definitions/DeleteCertificateStatusEnumType"
    }
  },
  "required": [
    "status"
  ]
}

Quelle: Open Charge Alliance, OCPP 1.6 – JSON-Schemas, unverändert wiedergegeben. © Open Charge Alliance. Lizenz: CC BY-ND 4.0. Die vollständige Spezifikation gibt es bei der Open Charge Alliance. ocpp-sim ist nicht mit der OCA verbunden.