CDAP DataFusion GET Pipeline Runs Invalid IAP Credentials Error

218 Views Asked by At

I am trying to do a GET API call to get specific pipeline run history. The API URL is as follows

APIEndpoint/api/v3/namespaces/default/apps/DataPipeline_name/workflows/DataPipelineWorkflow/runs?limit=1

This API call needs a access token which I get by the command line gcloud print-access-token The above works fine on a Basic Edition

When I run this on enterprise edition instance, I get the following error Invalid IAP Credentials: Expected JWT to have 3 parts separated by '.' but there are 2 parts

I need help here as to how I make this CDAP API call successfully.

2

There are 2 best solutions below

0
On BEST ANSWER

I'm not sure what caused the problem. But now it is working absolutely fine. Maybe the permissions were an issue / there was something changed on the GCP Project.

Thanks for all your answers. Those make complete sense to check

0
On

Since the project of the Enterprise Edition of Cloud Data Fusion is different, you need to make sure that the account you logged in the gcloud has the correct permission to the Cloud Data Fusion instance. You need to grant the service account with the roles/datafusion.viewer.

You can read more about access control here