Using python-storage with googleapis.com

Python integration

✓ Official SDK
Install
pip install python-storage
Quick start
import python-storage

# Use an OAuth2 access token
client = python_storage.Client(access_token="YOUR_ACCESS_TOKEN")
Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND`…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://orgpolicy.googleapis.com/v2/{name}
Retrieves all of the policies that exist on a particular resource.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://orgpolicy.googleapis.com/v2/{parent}/policies
Lists constraints that could be applied on the specified resource.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://orgpolicy.googleapis.com/v2/{parent}/constraints
SDK on GitHub 📄 API Docs
SDK
python-storage
Python
API
googleapis.com
googleapis.com:orgpolicy
At a glance
Language Python
Endpoints9
Base URLhttps://orgpolicy.googleapis.com
✓ Official