Forum Discussion

anawast's avatar
anawast
Icon for Microsoft Employee rankMicrosoft Employee
2 years ago
Solved

Fabric API does not return the schedule associated with a pipeline

The get item API for a Fabric Pipeline doesn't return the schedule associated with a pipeline. 

API being used: 
GET https://api.fabric.microsoft.com/v1/workspaces/<your WS Id>/items/<pipeline id>

 

Is there anyway to get the schedule associated with a pipeline via automation?

10 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Saiteja_M 

       

      Thank you. I verified that using "Pipeline" as jobtype does work! 

       

      Is there a list of all supported valid job types? I didn't find anything similar on the documentations. I used another API to list data pipelines, and it gives me a type "DataPipeline" which is not supported in this API either. Hadn't thought "Pipeline" is the key! 

       

      Best Regards,
      Jing

      • Saiteja_M's avatar
        Saiteja_M
        Icon for Microsoft Employee rankMicrosoft Employee

        Hi Jing,

         

        I do not have a complete list but for DataPipelines you can use "Pipeline" and for Dataflows you can use "Refresh"

         

        Best Regards

        Saiteja

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi anawast 

     

    Have you tried Job Scheduler - Get Item Schedule?

    GET https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/items/{itemId}/jobs/{jobType}/schedules/{scheduleId}

     

    Best Regards,
    Jing
    If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi anawast 

     

    I tried Job Scheduler - List Item Schedules today but got an InvalidJobType error "The requested job type is invalid". I used "DefaultJob" type which was got from the example code in the documentation. I tried Job Scheduler - Get Item Schedule but also failed.

     

    From this documentation, it doesn't mention that these two job scheduler APIs could be applied to Data pipelines. It seems that these Job Scheduler APIs are not supported for data pipelines currently.

     

    Best Regards,
    Jing
    If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!