Projects
List projects
Project cards: assets, workflows, open vulnerabilities by severity, last run and triggers.
GET
/
api
/
projects
List projects
curl --request GET \
--url https://{baseUrl}/api/v1/api/projectsimport requests
url = "https://{baseUrl}/api/v1/api/projects"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{baseUrl}/api/v1/api/projects', 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://{baseUrl}/api/v1/api/projects"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
{
"id": "<string>",
"name": "<string>",
"hexColor": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"totalAssets": 123,
"workflowCount": 123,
"openVulnerabilities": {
"critical": 123,
"high": 123,
"medium": 123,
"low": 123,
"info": 123
},
"newVulnerabilities": 123,
"triggers": [
{
"id": "<string>",
"projectWorkflowId": "<string>",
"type": "cron",
"enabled": true,
"cron": "<string>"
}
],
"description": "<string>",
"archivedAt": "2023-11-07T05:31:56Z",
"lastRunAt": "2023-11-07T05:31:56Z"
}
],
"total": 123,
"page": 123,
"limit": 123,
"hasNextPage": true,
"pageCount": 123
}쿼리 매개변수
⌘I
List projects
curl --request GET \
--url https://{baseUrl}/api/v1/api/projectsimport requests
url = "https://{baseUrl}/api/v1/api/projects"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{baseUrl}/api/v1/api/projects', 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://{baseUrl}/api/v1/api/projects"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
{
"id": "<string>",
"name": "<string>",
"hexColor": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"totalAssets": 123,
"workflowCount": 123,
"openVulnerabilities": {
"critical": 123,
"high": 123,
"medium": 123,
"low": 123,
"info": 123
},
"newVulnerabilities": 123,
"triggers": [
{
"id": "<string>",
"projectWorkflowId": "<string>",
"type": "cron",
"enabled": true,
"cron": "<string>"
}
],
"description": "<string>",
"archivedAt": "2023-11-07T05:31:56Z",
"lastRunAt": "2023-11-07T05:31:56Z"
}
],
"total": 123,
"page": 123,
"limit": 123,
"hasNextPage": true,
"pageCount": 123
}