def get_sxp_connections_by_id(self, id, headers=None, **query_parameters):
    "This API allows the client to get a SXP connection by ID.\n\n        Args:\n            id(basestring): id path parameter.\n            headers(dict): Dictionary of HTTP Headers to send with the Request\n                .\n            **query_parameters: Additional query parameters (provides\n                support for parameters that may be added in the future).\n\n        Returns:\n\n            RestResponse: REST response with following properties:\n\n              - headers(MyDict): response headers.\n              - response(MyDict): response body as a MyDict object. Access the object's properties by using the dot notation\n                or the bracket notation.\n              - content(bytes): representation of the request's response\n              - text(str): representation of the request's response\n\n        Raises:\n            TypeError: If the parameter types are incorrect.\n            MalformedRequest: If the request body created is invalid.\n            ApiError: If the Identity Services Engine cloud returns an error.\n        "
    check_type(headers, dict)
    if (headers is not None):
        if ('Content-Type' in headers):
            check_type(headers.get('Content-Type'), basestring, may_be_none=False)
        if ('Accept' in headers):
            check_type(headers.get('Accept'), basestring, may_be_none=False)
        if ('ERS-Media-Type' in headers):
            check_type(headers.get('ERS-Media-Type'), basestring)
        if ('X-CSRF-TOKEN' in headers):
            check_type(headers.get('X-CSRF-TOKEN'), basestring)
    with_custom_headers = False
    _headers = (self._session.headers or {})
    if headers:
        _headers.update(dict_of_str(headers))
        with_custom_headers = True
    check_type(id, basestring, may_be_none=False)
    _params = {}
    _params.update(query_parameters)
    _params = dict_from_items_with_values(_params)
    path_params = {'id': id}
    e_url = '/ers/config/sxpconnections/{id}'
    endpoint_full_url = apply_path_params(e_url, path_params)
    if with_custom_headers:
        _api_response = self._session.get(endpoint_full_url, params=_params, headers=_headers)
    else:
        _api_response = self._session.get(endpoint_full_url, params=_params)
    return self._object_factory('bpm_a5b160a5675039b7ddf3dc960c7968_v3_0_0', _api_response)
This API allows the client to get a SXP connection by ID.

Args:
    id(basestring): id path parameter.
    headers(dict): Dictionary of HTTP Headers to send with the Request
        .
    **query_parameters: Additional query parameters (provides
        support for parameters that may be added in the future).

Returns:

    RestResponse: REST response with following properties:

      - headers(MyDict): response headers.
      - response(MyDict): response body as a MyDict object. Access the object's properties by using the dot notation
        or the bracket notation.
      - content(bytes): representation of the request's response
      - text(str): representation of the request's response

Raises:
    TypeError: If the parameter types are incorrect.
    MalformedRequest: If the request body created is invalid.
    ApiError: If the Identity Services Engine cloud returns an error.
def get_sxp_connections_by_id(self, id, headers=None, **query_parameters):
    "This API allows the client to get a SXP connection by ID.\n\n        Args:\n            id(basestring): id path parameter.\n            headers(dict): Dictionary of HTTP Headers to send with the Request\n                .\n            **query_parameters: Additional query parameters (provides\n                support for parameters that may be added in the future).\n\n        Returns:\n\n            RestResponse: REST response with following properties:\n\n              - headers(MyDict): response headers.\n              - response(MyDict): response body as a MyDict object. Access the object's properties by using the dot notation\n                or the bracket notation.\n              - content(bytes): representation of the request's response\n              - text(str): representation of the request's response\n\n        Raises:\n            TypeError: If the parameter types are incorrect.\n            MalformedRequest: If the request body created is invalid.\n            ApiError: If the Identity Services Engine cloud returns an error.\n        "
    check_type(headers, dict)
    if (headers is not None):
        if ('Content-Type' in headers):
            check_type(headers.get('Content-Type'), basestring, may_be_none=False)
        if ('Accept' in headers):
            check_type(headers.get('Accept'), basestring, may_be_none=False)
        if ('ERS-Media-Type' in headers):
            check_type(headers.get('ERS-Media-Type'), basestring)
        if ('X-CSRF-TOKEN' in headers):
            check_type(headers.get('X-CSRF-TOKEN'), basestring)
    with_custom_headers = False
    _headers = (self._session.headers or {})
    if headers:
        _headers.update(dict_of_str(headers))
        with_custom_headers = True
    check_type(id, basestring, may_be_none=False)
    _params = {}
    _params.update(query_parameters)
    _params = dict_from_items_with_values(_params)
    path_params = {'id': id}
    e_url = '/ers/config/sxpconnections/{id}'
    endpoint_full_url = apply_path_params(e_url, path_params)
    if with_custom_headers:
        _api_response = self._session.get(endpoint_full_url, params=_params, headers=_headers)
    else:
        _api_response = self._session.get(endpoint_full_url, params=_params)
    return self._object_factory('bpm_a5b160a5675039b7ddf3dc960c7968_v3_0_0', _api_response)