1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. ZeroTrustDeviceDeploymentGroups
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustDeviceDeploymentGroups = new cloudflare.ZeroTrustDeviceDeploymentGroups("example_zero_trust_device_deployment_groups", {
        accountId: "account_id",
        name: "Engineering Ring 0",
        versionConfigs: [{
            targetEnvironment: "windows",
            version: "2026.6.234.0",
        }],
        policyIds: ["string"],
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_device_deployment_groups = cloudflare.ZeroTrustDeviceDeploymentGroups("example_zero_trust_device_deployment_groups",
        account_id="account_id",
        name="Engineering Ring 0",
        version_configs=[{
            "target_environment": "windows",
            "version": "2026.6.234.0",
        }],
        policy_ids=["string"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.NewZeroTrustDeviceDeploymentGroups(ctx, "example_zero_trust_device_deployment_groups", &cloudflare.ZeroTrustDeviceDeploymentGroupsArgs{
    			AccountId: pulumi.String("account_id"),
    			Name:      pulumi.String("Engineering Ring 0"),
    			VersionConfigs: cloudflare.ZeroTrustDeviceDeploymentGroupsVersionConfigArray{
    				&cloudflare.ZeroTrustDeviceDeploymentGroupsVersionConfigArgs{
    					TargetEnvironment: pulumi.String("windows"),
    					Version:           pulumi.String("2026.6.234.0"),
    				},
    			},
    			PolicyIds: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleZeroTrustDeviceDeploymentGroups = new Cloudflare.ZeroTrustDeviceDeploymentGroups("example_zero_trust_device_deployment_groups", new()
        {
            AccountId = "account_id",
            Name = "Engineering Ring 0",
            VersionConfigs = new[]
            {
                new Cloudflare.Inputs.ZeroTrustDeviceDeploymentGroupsVersionConfigArgs
                {
                    TargetEnvironment = "windows",
                    Version = "2026.6.234.0",
                },
            },
            PolicyIds = new[]
            {
                "string",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.ZeroTrustDeviceDeploymentGroups;
    import com.pulumi.cloudflare.ZeroTrustDeviceDeploymentGroupsArgs;
    import com.pulumi.cloudflare.inputs.ZeroTrustDeviceDeploymentGroupsVersionConfigArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            var exampleZeroTrustDeviceDeploymentGroups = new ZeroTrustDeviceDeploymentGroups("exampleZeroTrustDeviceDeploymentGroups", ZeroTrustDeviceDeploymentGroupsArgs.builder()
                .accountId("account_id")
                .name("Engineering Ring 0")
                .versionConfigs(ZeroTrustDeviceDeploymentGroupsVersionConfigArgs.builder()
                    .targetEnvironment("windows")
                    .version("2026.6.234.0")
                    .build())
                .policyIds("string")
                .build());
    
        }
    }
    
    resources:
      exampleZeroTrustDeviceDeploymentGroups:
        type: cloudflare:ZeroTrustDeviceDeploymentGroups
        name: example_zero_trust_device_deployment_groups
        properties:
          accountId: account_id
          name: Engineering Ring 0
          versionConfigs:
            - targetEnvironment: windows
              version: 2026.6.234.0
          policyIds:
            - string
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    resource "cloudflare_zerotrustdevicedeploymentgroups" "example_zero_trust_device_deployment_groups" {
      account_id = "account_id"
      name       = "Engineering Ring 0"
      version_configs {
        target_environment = "windows"
        version            = "2026.6.234.0"
      }
      policy_ids = ["string"]
    }
    

    Create ZeroTrustDeviceDeploymentGroups Resource

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

    Constructor syntax

    new ZeroTrustDeviceDeploymentGroups(name: string, args: ZeroTrustDeviceDeploymentGroupsArgs, opts?: CustomResourceOptions);
    @overload
    def ZeroTrustDeviceDeploymentGroups(resource_name: str,
                                        args: ZeroTrustDeviceDeploymentGroupsArgs,
                                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def ZeroTrustDeviceDeploymentGroups(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        account_id: Optional[str] = None,
                                        name: Optional[str] = None,
                                        version_configs: Optional[Sequence[ZeroTrustDeviceDeploymentGroupsVersionConfigArgs]] = None,
                                        policy_ids: Optional[Sequence[str]] = None)
    func NewZeroTrustDeviceDeploymentGroups(ctx *Context, name string, args ZeroTrustDeviceDeploymentGroupsArgs, opts ...ResourceOption) (*ZeroTrustDeviceDeploymentGroups, error)
    public ZeroTrustDeviceDeploymentGroups(string name, ZeroTrustDeviceDeploymentGroupsArgs args, CustomResourceOptions? opts = null)
    public ZeroTrustDeviceDeploymentGroups(String name, ZeroTrustDeviceDeploymentGroupsArgs args)
    public ZeroTrustDeviceDeploymentGroups(String name, ZeroTrustDeviceDeploymentGroupsArgs args, CustomResourceOptions options)
    
    type: cloudflare:ZeroTrustDeviceDeploymentGroups
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "cloudflare_zero_trust_device_deployment_groups" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ZeroTrustDeviceDeploymentGroupsArgs
    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 ZeroTrustDeviceDeploymentGroupsArgs
    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 ZeroTrustDeviceDeploymentGroupsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ZeroTrustDeviceDeploymentGroupsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ZeroTrustDeviceDeploymentGroupsArgs
    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 zeroTrustDeviceDeploymentGroupsResource = new Cloudflare.ZeroTrustDeviceDeploymentGroups("zeroTrustDeviceDeploymentGroupsResource", new()
    {
        AccountId = "string",
        Name = "string",
        VersionConfigs = new[]
        {
            new Cloudflare.Inputs.ZeroTrustDeviceDeploymentGroupsVersionConfigArgs
            {
                TargetEnvironment = "string",
                Version = "string",
            },
        },
        PolicyIds = new[]
        {
            "string",
        },
    });
    
    example, err := cloudflare.NewZeroTrustDeviceDeploymentGroups(ctx, "zeroTrustDeviceDeploymentGroupsResource", &cloudflare.ZeroTrustDeviceDeploymentGroupsArgs{
    	AccountId: pulumi.String("string"),
    	Name:      pulumi.String("string"),
    	VersionConfigs: cloudflare.ZeroTrustDeviceDeploymentGroupsVersionConfigArray{
    		&cloudflare.ZeroTrustDeviceDeploymentGroupsVersionConfigArgs{
    			TargetEnvironment: pulumi.String("string"),
    			Version:           pulumi.String("string"),
    		},
    	},
    	PolicyIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    resource "cloudflare_zero_trust_device_deployment_groups" "zeroTrustDeviceDeploymentGroupsResource" {
      lifecycle {
        create_before_destroy = true
      }
      account_id = "string"
      name       = "string"
      version_configs {
        target_environment = "string"
        version            = "string"
      }
      policy_ids = ["string"]
    }
    
    var zeroTrustDeviceDeploymentGroupsResource = new ZeroTrustDeviceDeploymentGroups("zeroTrustDeviceDeploymentGroupsResource", ZeroTrustDeviceDeploymentGroupsArgs.builder()
        .accountId("string")
        .name("string")
        .versionConfigs(ZeroTrustDeviceDeploymentGroupsVersionConfigArgs.builder()
            .targetEnvironment("string")
            .version("string")
            .build())
        .policyIds("string")
        .build());
    
    zero_trust_device_deployment_groups_resource = cloudflare.ZeroTrustDeviceDeploymentGroups("zeroTrustDeviceDeploymentGroupsResource",
        account_id="string",
        name="string",
        version_configs=[{
            "target_environment": "string",
            "version": "string",
        }],
        policy_ids=["string"])
    
    const zeroTrustDeviceDeploymentGroupsResource = new cloudflare.ZeroTrustDeviceDeploymentGroups("zeroTrustDeviceDeploymentGroupsResource", {
        accountId: "string",
        name: "string",
        versionConfigs: [{
            targetEnvironment: "string",
            version: "string",
        }],
        policyIds: ["string"],
    });
    
    type: cloudflare:ZeroTrustDeviceDeploymentGroups
    properties:
        accountId: string
        name: string
        policyIds:
            - string
        versionConfigs:
            - targetEnvironment: string
              version: string
    

    ZeroTrustDeviceDeploymentGroups 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 ZeroTrustDeviceDeploymentGroups resource accepts the following input properties:

    AccountId string
    Name string
    A user-friendly name for the deployment group.
    VersionConfigs List<ZeroTrustDeviceDeploymentGroupsVersionConfig>
    Contains at least one version configuration.
    PolicyIds List<string>
    Contains an optional list of policy IDs assigned to a group.
    AccountId string
    Name string
    A user-friendly name for the deployment group.
    VersionConfigs []ZeroTrustDeviceDeploymentGroupsVersionConfigArgs
    Contains at least one version configuration.
    PolicyIds []string
    Contains an optional list of policy IDs assigned to a group.
    account_id string
    name string
    A user-friendly name for the deployment group.
    version_configs list(object)
    Contains at least one version configuration.
    policy_ids list(string)
    Contains an optional list of policy IDs assigned to a group.
    accountId String
    name String
    A user-friendly name for the deployment group.
    versionConfigs List<ZeroTrustDeviceDeploymentGroupsVersionConfig>
    Contains at least one version configuration.
    policyIds List<String>
    Contains an optional list of policy IDs assigned to a group.
    accountId string
    name string
    A user-friendly name for the deployment group.
    versionConfigs ZeroTrustDeviceDeploymentGroupsVersionConfig[]
    Contains at least one version configuration.
    policyIds string[]
    Contains an optional list of policy IDs assigned to a group.
    account_id str
    name str
    A user-friendly name for the deployment group.
    version_configs Sequence[ZeroTrustDeviceDeploymentGroupsVersionConfigArgs]
    Contains at least one version configuration.
    policy_ids Sequence[str]
    Contains an optional list of policy IDs assigned to a group.
    accountId String
    name String
    A user-friendly name for the deployment group.
    versionConfigs List<Property Map>
    Contains at least one version configuration.
    policyIds List<String>
    Contains an optional list of policy IDs assigned to a group.

    Outputs

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

    CreatedAt string
    The RFC3339Nano timestamp when the deployment group was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    The RFC3339Nano timestamp when the deployment group was last updated.
    CreatedAt string
    The RFC3339Nano timestamp when the deployment group was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    The RFC3339Nano timestamp when the deployment group was last updated.
    created_at string
    The RFC3339Nano timestamp when the deployment group was created.
    id string
    The provider-assigned unique ID for this managed resource.
    updated_at string
    The RFC3339Nano timestamp when the deployment group was last updated.
    createdAt String
    The RFC3339Nano timestamp when the deployment group was created.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    The RFC3339Nano timestamp when the deployment group was last updated.
    createdAt string
    The RFC3339Nano timestamp when the deployment group was created.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt string
    The RFC3339Nano timestamp when the deployment group was last updated.
    created_at str
    The RFC3339Nano timestamp when the deployment group was created.
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at str
    The RFC3339Nano timestamp when the deployment group was last updated.
    createdAt String
    The RFC3339Nano timestamp when the deployment group was created.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    The RFC3339Nano timestamp when the deployment group was last updated.

    Look up Existing ZeroTrustDeviceDeploymentGroups Resource

    Get an existing ZeroTrustDeviceDeploymentGroups 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?: ZeroTrustDeviceDeploymentGroupsState, opts?: CustomResourceOptions): ZeroTrustDeviceDeploymentGroups
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            created_at: Optional[str] = None,
            name: Optional[str] = None,
            policy_ids: Optional[Sequence[str]] = None,
            updated_at: Optional[str] = None,
            version_configs: Optional[Sequence[ZeroTrustDeviceDeploymentGroupsVersionConfigArgs]] = None) -> ZeroTrustDeviceDeploymentGroups
    func GetZeroTrustDeviceDeploymentGroups(ctx *Context, name string, id IDInput, state *ZeroTrustDeviceDeploymentGroupsState, opts ...ResourceOption) (*ZeroTrustDeviceDeploymentGroups, error)
    public static ZeroTrustDeviceDeploymentGroups Get(string name, Input<string> id, ZeroTrustDeviceDeploymentGroupsState? state, CustomResourceOptions? opts = null)
    public static ZeroTrustDeviceDeploymentGroups get(String name, Output<String> id, ZeroTrustDeviceDeploymentGroupsState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:ZeroTrustDeviceDeploymentGroups    get:      id: ${id}
    import {
      to = cloudflare_zero_trust_device_deployment_groups.example
      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:
    AccountId string
    CreatedAt string
    The RFC3339Nano timestamp when the deployment group was created.
    Name string
    A user-friendly name for the deployment group.
    PolicyIds List<string>
    Contains an optional list of policy IDs assigned to a group.
    UpdatedAt string
    The RFC3339Nano timestamp when the deployment group was last updated.
    VersionConfigs List<ZeroTrustDeviceDeploymentGroupsVersionConfig>
    Contains at least one version configuration.
    AccountId string
    CreatedAt string
    The RFC3339Nano timestamp when the deployment group was created.
    Name string
    A user-friendly name for the deployment group.
    PolicyIds []string
    Contains an optional list of policy IDs assigned to a group.
    UpdatedAt string
    The RFC3339Nano timestamp when the deployment group was last updated.
    VersionConfigs []ZeroTrustDeviceDeploymentGroupsVersionConfigArgs
    Contains at least one version configuration.
    account_id string
    created_at string
    The RFC3339Nano timestamp when the deployment group was created.
    name string
    A user-friendly name for the deployment group.
    policy_ids list(string)
    Contains an optional list of policy IDs assigned to a group.
    updated_at string
    The RFC3339Nano timestamp when the deployment group was last updated.
    version_configs list(object)
    Contains at least one version configuration.
    accountId String
    createdAt String
    The RFC3339Nano timestamp when the deployment group was created.
    name String
    A user-friendly name for the deployment group.
    policyIds List<String>
    Contains an optional list of policy IDs assigned to a group.
    updatedAt String
    The RFC3339Nano timestamp when the deployment group was last updated.
    versionConfigs List<ZeroTrustDeviceDeploymentGroupsVersionConfig>
    Contains at least one version configuration.
    accountId string
    createdAt string
    The RFC3339Nano timestamp when the deployment group was created.
    name string
    A user-friendly name for the deployment group.
    policyIds string[]
    Contains an optional list of policy IDs assigned to a group.
    updatedAt string
    The RFC3339Nano timestamp when the deployment group was last updated.
    versionConfigs ZeroTrustDeviceDeploymentGroupsVersionConfig[]
    Contains at least one version configuration.
    account_id str
    created_at str
    The RFC3339Nano timestamp when the deployment group was created.
    name str
    A user-friendly name for the deployment group.
    policy_ids Sequence[str]
    Contains an optional list of policy IDs assigned to a group.
    updated_at str
    The RFC3339Nano timestamp when the deployment group was last updated.
    version_configs Sequence[ZeroTrustDeviceDeploymentGroupsVersionConfigArgs]
    Contains at least one version configuration.
    accountId String
    createdAt String
    The RFC3339Nano timestamp when the deployment group was created.
    name String
    A user-friendly name for the deployment group.
    policyIds List<String>
    Contains an optional list of policy IDs assigned to a group.
    updatedAt String
    The RFC3339Nano timestamp when the deployment group was last updated.
    versionConfigs List<Property Map>
    Contains at least one version configuration.

    Supporting Types

    ZeroTrustDeviceDeploymentGroupsVersionConfig, ZeroTrustDeviceDeploymentGroupsVersionConfigArgs

    TargetEnvironment string
    The target environment for the client version (e.g., windows, macos).
    Version string
    The specific client version to deploy.
    TargetEnvironment string
    The target environment for the client version (e.g., windows, macos).
    Version string
    The specific client version to deploy.
    target_environment string
    The target environment for the client version (e.g., windows, macos).
    version string
    The specific client version to deploy.
    targetEnvironment String
    The target environment for the client version (e.g., windows, macos).
    version String
    The specific client version to deploy.
    targetEnvironment string
    The target environment for the client version (e.g., windows, macos).
    version string
    The specific client version to deploy.
    target_environment str
    The target environment for the client version (e.g., windows, macos).
    version str
    The specific client version to deploy.
    targetEnvironment String
    The target environment for the client version (e.g., windows, macos).
    version String
    The specific client version to deploy.

    Import

    $ pulumi import cloudflare:index/zeroTrustDeviceDeploymentGroups:ZeroTrustDeviceDeploymentGroups example '<account_id>/<group_id>'
    

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

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Viewing docs for Cloudflare v6.18.0
    published on Thursday, Jul 16, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial