agentless_scanning_account_azures
Creates, updates, deletes, gets or lists an agentless_scanning_account_azures resource.
Overview
| Name | agentless_scanning_account_azures |
| Type | Resource |
| Id | datadog.security.agentless_scanning_account_azures |
Fields
The following fields are returned by SELECT queries:
- get_azure_scan_options
- list_azure_scan_options
| Name | Datatype | Description |
|---|---|---|
id | string | The Azure subscription ID. (example: ) |
attributes | object | Attributes for Azure scan options configuration. |
type | string | The type of the resource. The value should always be azure_scan_options. (azure_scan_options) (default: azure_scan_options, example: azure_scan_options) |
| Name | Datatype | Description |
|---|---|---|
id | string | The Azure subscription ID. (example: ) |
attributes | object | Attributes for Azure scan options configuration. |
type | string | The type of the resource. The value should always be azure_scan_options. (azure_scan_options) (default: azure_scan_options, example: azure_scan_options) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_azure_scan_options | select | subscription_id | Fetches the Agentless scan options for an activated subscription. | |
list_azure_scan_options | select | Fetches the scan options configured for Azure accounts. | ||
create_azure_scan_options | insert | Activate Agentless scan options for an Azure subscription. | ||
update_azure_scan_options | update | subscription_id | Update the Agentless scan options for an activated subscription. | |
delete_azure_scan_options | delete | subscription_id | Delete Agentless scan options for an Azure subscription. |
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 |
|---|---|---|
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. |
subscription_id | string | The Azure subscription ID. |
SELECT examples
- get_azure_scan_options
- list_azure_scan_options
Fetches the Agentless scan options for an activated subscription.
SELECT
id,
attributes,
type
FROM datadog.security.agentless_scanning_account_azures
WHERE subscription_id = '{{ subscription_id }}' -- required
;
Fetches the scan options configured for Azure accounts.
SELECT
id,
attributes,
type
FROM datadog.security.agentless_scanning_account_azures
;
INSERT examples
- create_azure_scan_options
- Manifest
Activate Agentless scan options for an Azure subscription.
INSERT INTO datadog.security.agentless_scanning_account_azures (
data
)
SELECT
'{{ data }}'
RETURNING
data
;
# Description fields are for documentation purposes
- name: agentless_scanning_account_azures
props:
- name: data
description: |
Single Azure scan options entry.
value:
attributes:
compliance_host: {{ compliance_host }}
function: {{ function }}
vuln_containers_os: {{ vuln_containers_os }}
vuln_host_os: {{ vuln_host_os }}
id: "{{ id }}"
type: "{{ type }}"
UPDATE examples
- update_azure_scan_options
Update the Agentless scan options for an activated subscription.
UPDATE datadog.security.agentless_scanning_account_azures
SET
data = '{{ data }}'
WHERE
subscription_id = '{{ subscription_id }}' --required
RETURNING
data;
DELETE examples
- delete_azure_scan_options
Delete Agentless scan options for an Azure subscription.
DELETE FROM datadog.security.agentless_scanning_account_azures
WHERE subscription_id = '{{ subscription_id }}' --required
;