{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-tls-cert-update-req-schema.json",
  "title": "tlsCertUpdateReq",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-tlsmanager-api-openapi.yml#/components/schemas/tlsCertUpdateReq",
  "type": "object",
  "properties": {
    "cert_name": {
      "type": "string"
    },
    "role_name": {
      "type": "string"
    },
    "cert_store": {
      "$ref": "#/$defs/tlsCertStore"
    },
    "device_details": {
      "$ref": "#/$defs/tlsDeviceDetails"
    },
    "destination_details": {
      "$ref": "#/$defs/tlsDestinationDetails"
    },
    "isEdit": {
      "type": "boolean",
      "format": "boolean"
    }
  },
  "$defs": {
    "tlsCertStore": {
      "type": "object",
      "properties": {
        "trust_store": {
          "$ref": "#/$defs/tlsTrustStore"
        },
        "intermediate_key_store": {
          "$ref": "#/$defs/tlsIntermediateKeyStore"
        }
      }
    },
    "tlsDestinationDetails": {
      "type": "object",
      "properties": {
        "destination_nodes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/tlsDestinationNodes"
          }
        }
      }
    },
    "tlsDestinationNodes": {
      "type": "object",
      "properties": {
        "destination_ip": {
          "type": "string"
        },
        "destination_uuid": {
          "type": "string"
        }
      }
    },
    "tlsDeviceDetails": {
      "type": "object",
      "properties": {
        "device_nodes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/tlsDeviceNodes"
          }
        }
      }
    },
    "tlsDeviceNodes": {
      "type": "object",
      "properties": {
        "device_ip": {
          "type": "string"
        },
        "device_uuid": {
          "type": "string"
        }
      }
    },
    "tlsIntermediateKeyStore": {
      "type": "object",
      "properties": {
        "intermediate_key_store_cert": {
          "type": "string"
        },
        "key": {
          "type": "string"
        },
        "passphrase": {
          "type": "string"
        }
      }
    },
    "tlsTrustStore": {
      "type": "object",
      "properties": {
        "trust_store_cert": {
          "type": "string"
        }
      }
    }
  }
}