1. Packages
  2. Datadog Provider
  3. API Docs
  4. AgentlessScanningGcpScanOptions
Datadog v4.60.0 published on Friday, Nov 21, 2025 by Pulumi
datadog logo
Datadog v4.60.0 published on Friday, Nov 21, 2025 by Pulumi

    Provides a Datadog Agentless Scanning GCP scan options resource. This can be used to activate and configure Agentless scan options for a GCP project.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    // Configure agentless scanning for a GCP project
    const example = new datadog.AgentlessScanningGcpScanOptions("example", {
        gcpProjectId: "company-project-prod",
        vulnContainersOs: true,
        vulnHostOs: true,
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    # Configure agentless scanning for a GCP project
    example = datadog.AgentlessScanningGcpScanOptions("example",
        gcp_project_id="company-project-prod",
        vuln_containers_os=True,
        vuln_host_os=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Configure agentless scanning for a GCP project
    		_, err := datadog.NewAgentlessScanningGcpScanOptions(ctx, "example", &datadog.AgentlessScanningGcpScanOptionsArgs{
    			GcpProjectId:     pulumi.String("company-project-prod"),
    			VulnContainersOs: pulumi.Bool(true),
    			VulnHostOs:       pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        // Configure agentless scanning for a GCP project
        var example = new Datadog.AgentlessScanningGcpScanOptions("example", new()
        {
            GcpProjectId = "company-project-prod",
            VulnContainersOs = true,
            VulnHostOs = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.AgentlessScanningGcpScanOptions;
    import com.pulumi.datadog.AgentlessScanningGcpScanOptionsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            // Configure agentless scanning for a GCP project
            var example = new AgentlessScanningGcpScanOptions("example", AgentlessScanningGcpScanOptionsArgs.builder()
                .gcpProjectId("company-project-prod")
                .vulnContainersOs(true)
                .vulnHostOs(true)
                .build());
    
        }
    }
    
    resources:
      # Configure agentless scanning for a GCP project
      example:
        type: datadog:AgentlessScanningGcpScanOptions
        properties:
          gcpProjectId: company-project-prod
          vulnContainersOs: true
          vulnHostOs: true
    

    Create AgentlessScanningGcpScanOptions Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AgentlessScanningGcpScanOptions(name: string, args: AgentlessScanningGcpScanOptionsArgs, opts?: CustomResourceOptions);
    @overload
    def AgentlessScanningGcpScanOptions(resource_name: str,
                                        args: AgentlessScanningGcpScanOptionsArgs,
                                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def AgentlessScanningGcpScanOptions(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        gcp_project_id: Optional[str] = None,
                                        vuln_containers_os: Optional[bool] = None,
                                        vuln_host_os: Optional[bool] = None)
    func NewAgentlessScanningGcpScanOptions(ctx *Context, name string, args AgentlessScanningGcpScanOptionsArgs, opts ...ResourceOption) (*AgentlessScanningGcpScanOptions, error)
    public AgentlessScanningGcpScanOptions(string name, AgentlessScanningGcpScanOptionsArgs args, CustomResourceOptions? opts = null)
    public AgentlessScanningGcpScanOptions(String name, AgentlessScanningGcpScanOptionsArgs args)
    public AgentlessScanningGcpScanOptions(String name, AgentlessScanningGcpScanOptionsArgs args, CustomResourceOptions options)
    
    type: datadog:AgentlessScanningGcpScanOptions
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AgentlessScanningGcpScanOptionsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AgentlessScanningGcpScanOptionsArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AgentlessScanningGcpScanOptionsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AgentlessScanningGcpScanOptionsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AgentlessScanningGcpScanOptionsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var agentlessScanningGcpScanOptionsResource = new Datadog.AgentlessScanningGcpScanOptions("agentlessScanningGcpScanOptionsResource", new()
    {
        GcpProjectId = "string",
        VulnContainersOs = false,
        VulnHostOs = false,
    });
    
    example, err := datadog.NewAgentlessScanningGcpScanOptions(ctx, "agentlessScanningGcpScanOptionsResource", &datadog.AgentlessScanningGcpScanOptionsArgs{
    	GcpProjectId:     pulumi.String("string"),
    	VulnContainersOs: pulumi.Bool(false),
    	VulnHostOs:       pulumi.Bool(false),
    })
    
    var agentlessScanningGcpScanOptionsResource = new AgentlessScanningGcpScanOptions("agentlessScanningGcpScanOptionsResource", AgentlessScanningGcpScanOptionsArgs.builder()
        .gcpProjectId("string")
        .vulnContainersOs(false)
        .vulnHostOs(false)
        .build());
    
    agentless_scanning_gcp_scan_options_resource = datadog.AgentlessScanningGcpScanOptions("agentlessScanningGcpScanOptionsResource",
        gcp_project_id="string",
        vuln_containers_os=False,
        vuln_host_os=False)
    
    const agentlessScanningGcpScanOptionsResource = new datadog.AgentlessScanningGcpScanOptions("agentlessScanningGcpScanOptionsResource", {
        gcpProjectId: "string",
        vulnContainersOs: false,
        vulnHostOs: false,
    });
    
    type: datadog:AgentlessScanningGcpScanOptions
    properties:
        gcpProjectId: string
        vulnContainersOs: false
        vulnHostOs: false
    

    AgentlessScanningGcpScanOptions Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AgentlessScanningGcpScanOptions resource accepts the following input properties:

    GcpProjectId string
    The GCP project ID for which agentless scanning is configured. Must be a valid GCP project ID: 6–30 characters, start with a lowercase letter, and include only lowercase letters, digits, or hyphens.
    VulnContainersOs bool
    Indicates if scanning for vulnerabilities in containers is enabled.
    VulnHostOs bool
    Indicates if scanning for vulnerabilities in hosts is enabled.
    GcpProjectId string
    The GCP project ID for which agentless scanning is configured. Must be a valid GCP project ID: 6–30 characters, start with a lowercase letter, and include only lowercase letters, digits, or hyphens.
    VulnContainersOs bool
    Indicates if scanning for vulnerabilities in containers is enabled.
    VulnHostOs bool
    Indicates if scanning for vulnerabilities in hosts is enabled.
    gcpProjectId String
    The GCP project ID for which agentless scanning is configured. Must be a valid GCP project ID: 6–30 characters, start with a lowercase letter, and include only lowercase letters, digits, or hyphens.
    vulnContainersOs Boolean
    Indicates if scanning for vulnerabilities in containers is enabled.
    vulnHostOs Boolean
    Indicates if scanning for vulnerabilities in hosts is enabled.
    gcpProjectId string
    The GCP project ID for which agentless scanning is configured. Must be a valid GCP project ID: 6–30 characters, start with a lowercase letter, and include only lowercase letters, digits, or hyphens.
    vulnContainersOs boolean
    Indicates if scanning for vulnerabilities in containers is enabled.
    vulnHostOs boolean
    Indicates if scanning for vulnerabilities in hosts is enabled.
    gcp_project_id str
    The GCP project ID for which agentless scanning is configured. Must be a valid GCP project ID: 6–30 characters, start with a lowercase letter, and include only lowercase letters, digits, or hyphens.
    vuln_containers_os bool
    Indicates if scanning for vulnerabilities in containers is enabled.
    vuln_host_os bool
    Indicates if scanning for vulnerabilities in hosts is enabled.
    gcpProjectId String
    The GCP project ID for which agentless scanning is configured. Must be a valid GCP project ID: 6–30 characters, start with a lowercase letter, and include only lowercase letters, digits, or hyphens.
    vulnContainersOs Boolean
    Indicates if scanning for vulnerabilities in containers is enabled.
    vulnHostOs Boolean
    Indicates if scanning for vulnerabilities in hosts is enabled.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AgentlessScanningGcpScanOptions resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AgentlessScanningGcpScanOptions Resource

    Get an existing AgentlessScanningGcpScanOptions resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AgentlessScanningGcpScanOptionsState, opts?: CustomResourceOptions): AgentlessScanningGcpScanOptions
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            gcp_project_id: Optional[str] = None,
            vuln_containers_os: Optional[bool] = None,
            vuln_host_os: Optional[bool] = None) -> AgentlessScanningGcpScanOptions
    func GetAgentlessScanningGcpScanOptions(ctx *Context, name string, id IDInput, state *AgentlessScanningGcpScanOptionsState, opts ...ResourceOption) (*AgentlessScanningGcpScanOptions, error)
    public static AgentlessScanningGcpScanOptions Get(string name, Input<string> id, AgentlessScanningGcpScanOptionsState? state, CustomResourceOptions? opts = null)
    public static AgentlessScanningGcpScanOptions get(String name, Output<String> id, AgentlessScanningGcpScanOptionsState state, CustomResourceOptions options)
    resources:  _:    type: datadog:AgentlessScanningGcpScanOptions    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    GcpProjectId string
    The GCP project ID for which agentless scanning is configured. Must be a valid GCP project ID: 6–30 characters, start with a lowercase letter, and include only lowercase letters, digits, or hyphens.
    VulnContainersOs bool
    Indicates if scanning for vulnerabilities in containers is enabled.
    VulnHostOs bool
    Indicates if scanning for vulnerabilities in hosts is enabled.
    GcpProjectId string
    The GCP project ID for which agentless scanning is configured. Must be a valid GCP project ID: 6–30 characters, start with a lowercase letter, and include only lowercase letters, digits, or hyphens.
    VulnContainersOs bool
    Indicates if scanning for vulnerabilities in containers is enabled.
    VulnHostOs bool
    Indicates if scanning for vulnerabilities in hosts is enabled.
    gcpProjectId String
    The GCP project ID for which agentless scanning is configured. Must be a valid GCP project ID: 6–30 characters, start with a lowercase letter, and include only lowercase letters, digits, or hyphens.
    vulnContainersOs Boolean
    Indicates if scanning for vulnerabilities in containers is enabled.
    vulnHostOs Boolean
    Indicates if scanning for vulnerabilities in hosts is enabled.
    gcpProjectId string
    The GCP project ID for which agentless scanning is configured. Must be a valid GCP project ID: 6–30 characters, start with a lowercase letter, and include only lowercase letters, digits, or hyphens.
    vulnContainersOs boolean
    Indicates if scanning for vulnerabilities in containers is enabled.
    vulnHostOs boolean
    Indicates if scanning for vulnerabilities in hosts is enabled.
    gcp_project_id str
    The GCP project ID for which agentless scanning is configured. Must be a valid GCP project ID: 6–30 characters, start with a lowercase letter, and include only lowercase letters, digits, or hyphens.
    vuln_containers_os bool
    Indicates if scanning for vulnerabilities in containers is enabled.
    vuln_host_os bool
    Indicates if scanning for vulnerabilities in hosts is enabled.
    gcpProjectId String
    The GCP project ID for which agentless scanning is configured. Must be a valid GCP project ID: 6–30 characters, start with a lowercase letter, and include only lowercase letters, digits, or hyphens.
    vulnContainersOs Boolean
    Indicates if scanning for vulnerabilities in containers is enabled.
    vulnHostOs Boolean
    Indicates if scanning for vulnerabilities in hosts is enabled.

    Import

    The pulumi import command can be used, for example:

    #!/bin/sh

    Import existing agentless scanning GCP scan options by GCP project ID

    $ pulumi import datadog:index/agentlessScanningGcpScanOptions:AgentlessScanningGcpScanOptions example company-project-prod
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Datadog pulumi/pulumi-datadog
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datadog Terraform Provider.
    datadog logo
    Datadog v4.60.0 published on Friday, Nov 21, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate