Get project quotas
const options = {method: 'GET'};
fetch('https://api.example.com/v1/regions/global/projects/quotas', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/regions/global/projects/quotas"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request GET \
--url https://api.example.com/v1/regions/global/projects/quotasimport requests
url = "https://api.example.com/v1/regions/global/projects/quotas"
response = requests.get(url)
print(response.text){
"success": true,
"data": [
{
"id": "<string>",
"resourceType": "<string>",
"limit": 123,
"used": 123,
"unit": "<string>",
"scope": "organization",
"enforcementPolicy": "hard"
}
]
}Project Quotas
Get project quotas
Get quota limits and usage for the current project
GET
/
v1
/
regions
/
global
/
projects
/
quotas
Get project quotas
const options = {method: 'GET'};
fetch('https://api.example.com/v1/regions/global/projects/quotas', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/regions/global/projects/quotas"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request GET \
--url https://api.example.com/v1/regions/global/projects/quotasimport requests
url = "https://api.example.com/v1/regions/global/projects/quotas"
response = requests.get(url)
print(response.text){
"success": true,
"data": [
{
"id": "<string>",
"resourceType": "<string>",
"limit": 123,
"used": 123,
"unit": "<string>",
"scope": "organization",
"enforcementPolicy": "hard"
}
]
}Was this page helpful?