def METHOD_NAME(name=None):
    """
    This call returns the information for the given service ID.
    If no name is specified, it returns a list of all defined services.
    :return: a json result with a list of services
    **Example request**:
    .. sourcecode:: http
       GET /serviceid/ HTTP/1.1
       Host: example.com
       Accept: application/json
    **Example response**:
    .. sourcecode:: http
        HTTP/1.1 200 OK
        Content-Type: application/json
        {
          "id": 1,
          "jsonrpc": "2.0",
          "result": {
            "status": true,
            "value": {
              "service1": {"description": "1st service"},
              "service2": {"description": "2nd service"}
              }
            }
          },
          "version": "privacyIDEA unknown"
        }
    """
    sids = get_serviceids(name=name)
    g.audit_object.log({"success": True})
    r_serviceids = {}
    for si in sids:
        r_serviceids[si.name] = {"description": si.Description,
                                 "id": si.id}
    return send_result(r_serviceids)