dbtCloud API environment_id - dbt

I am working to use the dbtCloud V2.0 API and want to create a job. However I am unclear on what the environment_id is or how to use it. Could someone explain this to me or point me to additional documentation?

If you navigate to your environment in the dbt Cloud interface, your environment id will be in the url, eg
https://cloud.getdbt.com/#/accounts/11111/projects/22222/environments/33333/
Your environment id is 33333

Related

How to create my own API and connect it to Power apps?

I really hope you can help me. I have a project to create an app. I will use Power apps, Python and JavaScript. I need to be in it, because I am not. So my first step is create an API, I have decided to use Azure Function I can explain why. It helps connect my Power Apps(frontend, where i am going to use JavaScript) to backend(Python).
So I have absolutely nothing and I have decided to create an API with Azure Functions, the truth is i dont really know how it works. I can connect it with VScode, but the main question how to create own API? I dont need to pay for servis because I have an Azure Functions which is paid. But I dont really understand how API has too look. I have find a lot information but i cant connect it with what I need.
I need to write my own code for API? Like from empty file? Can do it in VS code and connect it with Azure Functions? What has to be in API I mean my own piece of code or something another? Have anyone created his own API in Azure Functions?
thank you for answering my stupid questions
You can create the Http Trigger in Azure Function if your own API works on HTTP protocol and modify the default Http Trigger API Code according to your requirement.
If your API contains 3rd party APIs, you can create the Http client inside the function code for sending HTTP requests on to the available 3rd party APIs in your function code.
There are plenty of articles on connecting the Azure Functions to Power BI Apps where you can write your own AP code using REST API signature following swagger and add that custom API in Power Apps.
Refer to this article that provides the use case of connect the Azure Function with custom API Code to Power App, given by Carlos Aguilar.

Secure Vercel Serverless Function

I am currently building on Vercel an use the serverless functions as an API.
All functions are available in <URL>/api/<FUNCTION_NAME>. I want to only allow my web page the access to the API but I have no idea how. I don't have any Authentication / JWT system in place because it is a fairly simple app.
In AWS I normally use something like IAM authentication or a simple API Key.
What are best practices for that or what is the suggested way to do this? I am not sure if I look at the problem completely wrong but I don't find many resources for that.
Thanks!
Sandro
As mentioned in here, you actually can use a simple method using QUERY. For example you can run a function to authorize it if QUERY.SECRET_KEY is equal to the secret key that you saved somewhere else on your code eg. env variable. Or using the same method, you can now use the authorization header that is sent by client. Here the example. You can use anything that suits you. It's just about personal preference. Hope it helps.

Amadeus Self service api

I am getting repeated and limited result for flight and hotels search listing in Amadeus self service api. Also search flights data is repeating more than one time. What is the reason? Am I doing any mistake or self service apis only give limited data?
Can you please share your code so we can understand what you are trying to do?
Note that if you are getting limited results it might be because you are using the API in the test environment. Our test environment is based on a subset of the production data. In case you want to see what our test data includes, please refer to our test data collection on GitHub.
If you are done prototyping your application and want to access to live production data, we recommend you follow our "Moving to production guide", it offers easy to follow instructions on how to move to production. Please keep in mind we also provide with free monthly quotas in the production environment, to allow you to explore the data available

Where can I run terraform?

This is mostly a research question as I can't seem to find out where I can run Terraform for my use case.
I want to build a web front end which I can enter details for configuration, click a button and the front end would tell Terraform to build the infrastructure. I understand I can use the cli, or create a .tf file and then use Jenkins to run it. But I'm looking for a way to basically call the Terraform cli commands through events like a lambda call.
Should I use cloud provider sdks for this?
Has anyone gone about doing something like this and if so, could you share your experiences?
You can use SLD (Stack-Lifecycle-Deployment)
It has a very cool ui and rest api
I think I found something really useful!
Lambda Terraform Call using Python
This would be what I had in mind, generate a Terraform plan file, drop into an S3 bucket, then invoke the lambda call to spin up the infrastructure. And all can be done with the front end configuration setting and an API call.
I hope this comes in handy for some other people and once I have it working I might come back and add to this.

API help commission junction

Im new to the realm of API and I was wondering do I need to paste the code as is or would I need to add javascript and interface to it myself? Im working with commission juntion datafeeds and developer key to make a website that is similar to www.directtextbooks.com
Below is the website link with the instructions that they provide
http://help.cj.com/en/web_services/Product_Catalog_Search_Service_v.2.htm
You can use the API to get data from cj, but the results of the data is for what ever you want to use it for.
Before you start working with API's you should look into programming applications.