List Organization Projects
List all Projects for an Org.
Basic Parameters
Parameter | Description |
---|---|
CLI Monitored After | Filter projects uploaded and monitored after this date (encoded value). |
CLI Monitored Before | Filter projects uploaded and monitored before this date (encoded value). |
Organization ID | The ID of the org that the projects belong to. |
Advanced Parameters
Parameter | Description |
---|---|
Ending Before | Return the page of results immediately before this cursor. |
Expand | Expand relationships. |
IDs | Return projects that match the provided IDs. |
Importing User Public IDs | Return projects that match the provided importing user public ids. |
Names | Return projects that match the provided names. |
Origins | Return projects that match the provided origins. |
Starting After | Return the page of results immediately after this cursor. |
Target IDs | Return projects that belong to the provided targets. |
Types | Return projects that match the provided types. |
Example Output
{
"data": [
{
"attributes": {
"build_args": {
"root_workspace": "string"
},
"business_criticality": [
"medium"
],
"created": "2021-05-29T09:50:54.014Z",
"environment": [
"external",
"hosted"
],
"lifecycle": [
"production"
],
"name": "snyk/goof",
"origin": "github",
"settings": {
"auto_dependency_upgrade": {
"ignored_dependencies": [
"typescript"
],
"is_enabled": true,
"is_inherited": true,
"is_major_upgrade_enabled": true,
"limit": 10,
"minimum_age": 365
},
"auto_remediation_prs": {
"is_backlog_prs_enabled": true,
"is_fresh_prs_enabled": true,
"is_patch_remediation_enabled": true
},
"manual_remediation_prs": {
"is_patch_remediation_enabled": true
},
"pull_request_assignment": {
"assignees": [
"my-github-username"
],
"is_enabled": true,
"type": "auto"
},
"pull_requests": {
"fail_only_for_issues_with_fix": true,
"policy": "all",
"severity_threshold": "high"
},
"recurring_tests": {
"frequency": "daily"
}
},
"status": "active",
"tags": [
{
"key": "tag-key",
"value": "tag-value"
}
],
"target_file": "package.json",
"target_reference": "main",
"target_runtime": "string",
"type": "maven"
},
"id": "1892a689-bc20-4000-85cf-357215460189",
"meta": {
"cli_monitored_at": "2021-05-29T09:50:54.014Z"
},
"relationships": {
"importer": {
"data": {
"id": "4a72d1db-b465-4764-99e1-ecedad03b06a",
"type": "resource"
},
"links": {
"related": {
"href": "https://example.com/api/resource/4a72d1db-b465-4764-99e1-ecedad03b06a"
}
}
},
"organization": {
"data": {
"id": "4a72d1db-b465-4764-99e1-ecedad03b06a",
"type": "resource"
},
"links": {
"related": {
"href": "https://example.com/api/resource/4a72d1db-b465-4764-99e1-ecedad03b06a"
}
}
},
"owner": {
"data": {
"id": "4a72d1db-b465-4764-99e1-ecedad03b06a",
"type": "resource"
},
"links": {
"related": {
"href": "https://example.com/api/resource/4a72d1db-b465-4764-99e1-ecedad03b06a"
}
}
},
"target": {
"data": {
"id": "4a72d1db-b465-4764-99e1-ecedad03b06a",
"type": "resource"
},
"links": {
"related": {
"href": "https://example.com/api/resource/4a72d1db-b465-4764-99e1-ecedad03b06a"
}
}
}
},
"type": "project"
}
],
"jsonapi": {
"version": "1.0"
},
"links": {
"first": "https://example.com/api/resource",
"last": "https://example.com/api/resource",
"next": "https://example.com/api/resource",
"prev": "https://example.com/api/resource",
"related": "https://example.com/api/resource",
"self": "https://example.com/api/resource"
},
"meta": {
"count": 0
}
}
Workflow Library Example
List Organization Projects with Snyk and Send Results Via Email