Layer7 API Management

Expand all | Collapse all

How to use RESTman (or something) to publish a service to Portal?

Jump to Best Answer
  • 1.  How to use RESTman (or something) to publish a service to Portal?

    Posted 05-02-2017 09:08 AM

    So, I am able to create a service using RESTman. I have it add the "Set as Portal Managed Service" and it generates a new API ID, but the service doesn't show up in Portal. If I enabled/disable the service, nothing changes. If I make a simple change (like add a comment) and click on "Save and Activate", it'll show up in Portal.

     

    Is there an additional step I need to do to have a service show up in Portal after creating it with restman?



  • 2.  Re: How to use RESTman (or something) to publish a service to Portal?
    Best Answer

    Posted 05-02-2017 06:45 PM

    Hi shak-t,

     

    There is a Portalman service (the Portal reaches out to the Gateway and calls the Portalman service) that helps sync all the APIs and API Plans and such between Gateway & Portal. I believe this syncs every 5 minutes by default.

     

    Typically this will trigger when a service is created using the "Set as Portal Managed Service" assertion. However, it is possible (I will need to test this) that it isn't triggered when using the Restman interface, meaning it would wait for the next sync to run roughly 5 minutes later.

     

    Sincerely,

     

    Dustin Dauncey

    Sr Support Engineer, Global Customer Success

    Email: Dustin.Dauncey@ca.com

    Phone: +1 800 225 5224 ,48385

    Phone if outside North America - https://tinyurl.com/CAContactSupport

    CA API Management Community: https://tinyurl.com/CAAPIMCommunity



  • 3.  Re: How to use RESTman (or something) to publish a service to Portal?

    Posted 05-08-2017 11:20 AM

    Yeah, I don't think it's triggered when using RESTman. I waited a while (like 10-15 mins) and nothing is happening.



  • 4.  Re: How to use RESTman (or something) to publish a service to Portal?

    Posted 05-08-2017 08:04 PM

    Please login CMS -> Plugin Administration -> Scheduler 

    Ensure the plugin Scheduler is started.

    There should be 2 lines,

    scheduleCron00 0/5 * * * ? 
    scheduleUrl0/internal/write/api-status 

     

    And on the gateway audit event view, you should be able to see the audit events of "API Portal Integration Service [/portalman/*]" every 5 minutes.

     



  • 5.  Re: How to use RESTman (or something) to publish a service to Portal?

    Posted 05-10-2017 02:05 PM

    All that is set. Still have no idea why this doesn't work.

     

    I created the service using what's outlined here (RESTMAN API Samples )