static_analysis_server
Creates, updates, deletes, gets or lists a static_analysis_server resource.
Overview
| Name | static_analysis_server |
| Type | Resource |
| Id | datadog.security.static_analysis_server |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
create_static_analysis_server_analysis | exec | data | Run static analysis rules against a source code file and return violations found. | |
create_static_analysis_ast | exec | data | Parse source code into an abstract syntax tree (AST) for the specified language. | |
get_static_analysis_node_types | exec | language | Retrieve tree-sitter node type definitions for a given programming language. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
language | string | The programming language for which to retrieve node type definitions. |
site | string | The Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both. |
Lifecycle Methods
EXEC variables use wire (API) names.
- create_static_analysis_server_analysis
- create_static_analysis_ast
- get_static_analysis_node_types
Run static analysis rules against a source code file and return violations found.
EXEC datadog.security.static_analysis_server.create_static_analysis_server_analysis
@@json=
'{
"data": "{{ data }}"
}'
;
Parse source code into an abstract syntax tree (AST) for the specified language.
EXEC datadog.security.static_analysis_server.create_static_analysis_ast
@@json=
'{
"data": "{{ data }}"
}'
;
Retrieve tree-sitter node type definitions for a given programming language.
EXEC datadog.security.static_analysis_server.get_static_analysis_node_types
@language='{{ language }}' --required
;