Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Dataform BQ API

I am migrating my Dataform pipelines from Web based dataform to Big Query Dataform . In the web based Dataform, if I want to execute the Dataform pipeline through Dataform API Call, the documentation was clear. See attached image/screenshot from here: However I am not getting the corresponding API Service for Big Query Dataform. 

I have been looking at this documentation but is not clear as the one for web based Dataform to get the API Call. Please can anyone help?

Ayush

Capture.GIF

Solved Solved
0 20 4,448
2 ACCEPTED SOLUTIONS

Sorry for the confusion. Dataform API Playground is not yet publicly available. 

For testing API requests, you can use other tools like Postman or cURL commands in the terminal. These tools allow you to send HTTP requests to the API endpoints and view the responses.

Here's how you can use Postman to send a request:

  1. Download and Install Postman:

    • If you don’t have Postman installed, you can download it from the official website: Postman
  2. Create a New Request:

    • Open Postman and create a new request by clicking the “New” button and selecting “Request.”
  3. Enter Request Details:

    • Enter the request details, such as the HTTP method (POST), the API URL, headers, and the request body.
  4. Send the Request:

    • Click the “Send” button to send the request. Postman will display the API response below.
  5. Analyze the Response:

    • Analyze the response to check if the request was successful or if there were any errors.

View solution in original post

To obtain the compilation_result_id using Postman:

  1. Open Postman and create a new request.
  2. Set the method to GET.
  3. Set the URL to:
  4. Replace the placeholders with the appropriate values.
  5. In the Authorization header, add your API token.
  6. Click the Send button.
  7. The response will contain a list of all compilation results for the repository. The compilation_result_id is the value of the id field in each compilation result.

Feedback and Suggestions:

  • API Endpoint: Verify the API endpoint URL with the official Dataform documentation or Google Cloud documentation to ensure it is correct and accessible with the appropriate permissions and API token.
  • API Version: Ensure that the API version in the URL (v1beta1) is the version you intend to use, as different versions might have different URL structures and parameters.
  • API Token: Make sure the API token used in the Authorization header has the necessary permissions to access the compilation results.
  • Error Handling: If you encounter any errors or issues, carefully review the error messages as they often provide clues about the problem. Check the API endpoint, headers, and other request details to ensure they are correct.
  • Official Documentation and Support: For the most accurate and reliable information, always refer to the official documentation and consider reaching out to Google Cloud Support for assistance.

Additional Considerations:

  • Endpoint Availability: Ensure that the API endpoint is available for your subscription or plan. Some endpoints may be restricted to certain subscription levels.
  • Placeholder Replacement: Ensure that all placeholders in the URL ({project}, {location}, {repository}) are replaced with your actual project, location, and repository details.
  • Support Channels: Don’t hesitate to use other support channels like community forums or your dedicated support contact for more personalized assistance.
  • Security: Handle your API tokens and other sensitive credentials with utmost security. Ensure they are stored and transmitted securely, and are not exposed to unauthorized parties.

Proceed with these additional checks and considerations to ensure a more seamless and secure experience while working with the Dataform API and other related tools. Your continuous effort for improvement and attention to detail is crucial in providing effective and reliable assistance.

View solution in original post

20 REPLIES 20