def METHOD_NAME(self, ledger_id: str, **kwargs: Any) -> JSON:
    """Gets identity information for a Confidential Ledger instance.
    Gets identity information for a Confidential Ledger instance.
    :param ledger_id: Id of the Confidential Ledger instance to get information for. Required.
    :type ledger_id: str
    :return: JSON object
    :rtype: JSON
    :raises ~azure.core.exceptions.HttpResponseError:
    Example:
        .. code-block:: python
            # response body for status code(s): 200
            response == {
                "ledgerId": "str",  # Optional. Id for the ledger.
                "ledgerTlsCertificate": "str"  # PEM-encoded certificate used for TLS by the
                  Confidential Ledger. Required.
            }
    """
    error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
    error_map.update(kwargs.pop("error_map", {}) or {})
    _headers = kwargs.pop("headers", {}) or {}
    _params = kwargs.pop("params", {}) or {}
    cls = kwargs.pop("cls", None)  # type: ClsType[JSON]
    request = build_get_ledger_identity_request(
        ledger_id=ledger_id,
        api_version=self._config.api_version,
        headers=_headers,
        params=_params,
    )
    path_format_arguments = {
        "certificateEndpoint": self._serialize.url(
            "self._config.certificate_endpoint", self._config.certificate_endpoint, "str", skip_quote=True
        ),
    }
    request.url = self._client.format_url(request.url, **path_format_arguments)  # type: ignore
    pipeline_response = self._client._pipeline.run(  # type: ignore # pylint: disable=protected-access
        request, stream=False, **kwargs
    )
    response = pipeline_response.http_response
    if response.status_code not in [200]:
        map_error(status_code=response.status_code, response=response, error_map=error_map)
        raise HttpResponseError(response=response)
    if response.content:
        deserialized = response.json()
    else:
        deserialized = None
    if cls:
        return cls(pipeline_response, cast(JSON, deserialized), {})
    return cast(JSON, deserialized)