Layer7 API Management

 View Only
  • 1.  Re: Audit PFD attachments in Gateway

    Posted May 14, 2020 11:44 AM
    Hello All,


    Is there any audit available in gateway to capture the pfd attachments

    Regards,
    Prem.


  • 2.  RE: Re: Audit PFD attachments in Gateway
    Best Answer

    Broadcom Employee
    Posted May 14, 2020 08:13 PM
    Dear Prem,
    You can get the MIME attachment by context variable,
    for binary data,
    ${request.parts.x}

    for text,
    ${request.parts.x.body}

    But only the text is allowed for audit/log.

    Regards,
    Mark


  • 3.  RE: Re: Audit PFD attachments in Gateway

    Posted May 15, 2020 02:26 PM
    Hi Mark,

    Is there a way a to capture the attachment if it's in base64 format?

    Regards,
    Prem.


  • 4.  RE: Re: Audit PFD attachments in Gateway

    Broadcom Employee
    Posted May 17, 2020 08:14 PM
    base64 string is text string, you can use ${request.parts.x.body}.
    note that x is the index of the parts, the main part of request is ${request.parts.1.body}, so for first attachment, it should be ${request.parts.2.body}

    Regards,
    Mark



  • 5.  RE: Re: Audit PFD attachments in Gateway

    Posted May 18, 2020 10:13 AM
    Thanks Mark!