Skip to main content

AD_4nXeDbPfk3PCGWV8KvCmBooUvNAt3T3naqXx9PwRQLMHhODxcs9Adhl4u7HHgWbe9XUTqNF8KYnWtnO1vjXesjS4RFPepPcX4AR_O_owrB7y3tO-lHQRlDmCnsoYQpNeGMOEj6iyElRre4DBeCFPtQwY?key=qNIHhAnOPQ4biiiEdESlpBAk

Netskope Global Technical Success (GTS)

Use Case -  How to block Gemini AI REST API calls

 

Netskope Cloud Version - 124.1.0.1727

 

Objective

Explain how to block Gemini AI REST API calls

 

Prerequisite

Netskope SWG/CASB inline license are required

 

Context

Gemini, developed by Google DeepMind, is a family of advanced AI models that can process and generate text, images, audio, video, and code. Its REST API calls enable seamless integration of generative AI models into websites, apps, and software, eliminating the need for hosting or managing complex AI infrastructure.

 

Do You Know?

  • REST APIs allow apps to communicate with AI models over the internet without needing to store or process data locally
  • AI services like ChatGPT, Google Gemini, and DALL·E provide REST APIs for text, image, and code generation
  • You can call an AI REST API using tools like Python, curl (via terminal), postman among others

 

Configuration

  • Create custom cloud application for Gemini AI as follows:

Path - Netskope Tenant UI >>> Settings >>> Security cloud platform >>> App definition >> Cloud & firewall apps

 

AD_4nXcmCMGZPabI1ePNBvgq3FY2XmDwtYAobGhHZvZSCMbzhl8vUv3zaSppzYCB0aLdqchwyMhKnVqisa99mQKGhtcUlYSyNVoVM4PWNrdT3QjCNypcV388K1NAzpeBwV5-TJ4R0ctbxgcRXK0Not1rpg?key=qNIHhAnOPQ4biiiEdESlpBAk

 

  • Create a real time policy as follows:

Path - Netskope Tenant UI >>> Policies >>> Real-time policies >>> New policy >> Cloud app access

 

AD_4nXeYajh9zhas7Lxwo_vgllTbXu0yBOnB1JspjeNXzIQiPG22OIS9oXfftysjKfW7ILPiA9FJ3ZyXXydV9u_lhScY9qsVmIFqJxtYmiwAPzRv_B9h9RGsOF8znJYnqGQImp9q3DOYGAGNKQZtivpcPqo?key=qNIHhAnOPQ4biiiEdESlpBAk

Verification

Using postman and trying to make a REST API call:

AD_4nXfDiyFUOh820r68GP4rJpRQuf3FFkt90jr_L8okgScTVGwIvSX_mh5wPYC3YDrFqc6ZD893VcyXzLtSgum2VcscqcQt6J28JmXjxe2EyW46Jh9T_Od3gaY0fTqTPwfIinSKtVHdtpMYN-InZBWOO0c?key=qNIHhAnOPQ4biiiEdESlpBAk

 

Using the terminal and curl to trying to make a REST API call:

AD_4nXedqygkLmp29M2AMokzkKaRh4uqzngILFIpaC5MbVOu03ZxOIH6sFNJNZ3jM-gqdBHX74SWhXR3YEQqa9reMBUFBMDG0tMYbW8H8gDLlqoEoWrtF9L6sJP6SPska9zVm0xn-z5XV_wNEHrhazgPuQ?key=qNIHhAnOPQ4biiiEdESlpBAk

It can be checked in SkopeIT:

AD_4nXcmhAElhg88c7OrT-SejQFKi_OT0gYmEoIAQnzGQ_cfnGfZzVzjWxW8cYhh8-O0UmIXDglsc0QKmp6IQDgppboS7SvKD77Fw7YdKQxtpd_EwbWqGYOQ-yznn-eXI_uXX8XOw2AAuMewCXpwKNsQ-A?key=qNIHhAnOPQ4biiiEdESlpBAk

 

Terms and Conditions

  • All documented information undergoes testing and verification to ensure accuracy.
  • In the future, it is possible that the application's functionality may be altered by the vendor. If any such changes are brought to our attention, we will promptly update the documentation to reflect them.

 

Notes

  • This article is authored by Netskope Global Technical Success (GTS).
  • For any further inquiries related to this article, please contact Netskope GTS by submitting a support case with 'Case Type – How To Questions'.

 

Be the first to reply!