Google Cloud Platform | Add Firewall Rules with Python API | gcloud

Опубликовано: 14 Ноябрь 2021
на канале: Python 360
710
5

This google cloud platform tutorial covers the Firewall API, but also applies to the initial set up for just about any of the APIs - we'll see how you can insert firewall rules using Python code, written using vim in the cloud shell, but you could just as easily use Nano, Sublime text etc..(and paste the code into the shell).

◼️ Uses : pip3 install google-api-python-client

Google Cloud Platform & Python Playlist :
🌏    • Google Cloud Tutorials 2021 | Associa...  

-- chapters --
0:00 intro
2:15 existing firewall rules
4:43 adding a rule in the GUI
8:37 the request body
15:16 creating the python script
20:15 running successful code
____________________________________

If you need a shorter prompt in cloud shell, use this:
export PS1="someshortprompt$:"

Note: as the 'priority' of a rule approaches 1, it take precedence.

See also : 🌏 https://cloud.google.com/vpc/docs/fir...

Visit redandgreen blog for more Tutorials
=========================================
🌏 http://redandgreen.co.uk/about/blog/

Subscribe to the YouTube Channel
=================================
🌏    / drpicode  

Follow on Twitter - to get notified of new videos
=================================================
🌏   / rngweb  

👍 Become a patron 👍
🌏   / drpi  

Other useful google cloud resources

● Compute Engine: https://cloud.google.com/compute/docs/
● Cloud Source Repositories https://cloud.google.com/source-repos...
● Cloud Deployment Manager https://cloud.google.com/deployment-m...
● Instance groups: https://cloud.google.com/compute/docs...
● Autoscaling: https://cloud.google.com/compute/docs...
● Instance templates: https://cloud.google.com/compute/docs...
● Creating a VM from an instance template:
https://cloud.google.com/compute/docs...
● Creating managed instance groups:
https://cloud.google.com/compute/docs...
tances
● Using VPC networks: https://cloud.google.com/vpc/docs/usi...
● Deployment Manager fundamentals:
https://cloud.google.com/deployment-m...

Buy Dr Pi a coffee (or Tea)
☕ https://www.buymeacoffee.com/DrPi

Proxies
=================================================
If you need a good, easy to use proxy, I was recommended this one, and having used ScraperAPI for a while I can vouch for them. If you were going to sign up anyway, then maybe you would be kind enough to use the link and the coupon code below?

You can also do a full working trial first as well, (unlike some other companies). The trial doesn't ask for any payment details either so all good! 👍

🌏 10% off ScraperAPI : https://www.scraperapi.com?fpr=ken49
◼️ Coupon Code: DRPI10
(You can also get started with 1000 free API calls. No credit card required.)

Thumbs up yeah? (cos Algos..)

gcp
gcloud
firewall
google cloud firewall
python firewall api gcp
google cloud platform tutorial
gcp python api tutorial
google cloud python tutorial
google cloud free trial
gcp google cloud platform
learn google cloud platform for certificatiion
Associate Cloud Engineer


#googlecloud #cloudcomputing #python


Смотрите видео Google Cloud Platform | Add Firewall Rules with Python API | gcloud онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Python 360 14 Ноябрь 2021. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 710 раз и оно понравилось 5 посетителям.