Security Monitoring

List codegen rulesets

Get the rulesets relevant for code generation for the authenticated user.

get/api/v2/static-analysis/codegen/rulesets

Request

  • Base URL
    https://api.datadoghq.com
  • URL
    https://api.datadoghq.com/api/v2/static-analysis/codegen/rulesets
  • Auth
    • API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
    • or OAuth 2
      Authorization code: /oauth2/v1/authorize
      Token URL: /oauth2/v1/token scopes: code_analysis_read

Response

OK

Example response

{
  "data": [
    {
      "attributes": {
        "description": "A collection of Python best practice rules.",
        "name": "python-best-practices",
        "rules": [
          {
            "data": {
              "type": "rules"
            }
          }
        ],
        "short_description": "Python best practices ruleset."
      },
      "id": "python-best-practices",
      "type": "rulesets"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.