Security Monitoring
Get default rulesets for a language
Get the default SAST ruleset names for a given programming language.
get/api/v2/static-analysis/default-rulesets/{language}
Request
- Base URLhttps://api.datadoghq.com
- URLhttps://api.datadoghq.com/api/v2/static-analysis/default-rulesets/{language}
- Auth
- API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
- or OAuth 2Authorization code: /oauth2/v1/authorizeToken URL: /oauth2/v1/token scopes: code_analysis_read
Path parameters
languagestring required
Example:python
The programming language for which to retrieve the default rulesets.
Response
OK
Example response
{
"data": {
"attributes": {
"rulesets": [
"python-best-practices"
]
},
"id": "python",
"type": "defaultRulesetsPerLanguage"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.