1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getZeroTrustDeviceDeploymentGroups
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 = cloudflare.getZeroTrustDeviceDeploymentGroups({
        accountId: "account_id",
        groupId: "group_id",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_device_deployment_groups = cloudflare.get_zero_trust_device_deployment_groups(account_id="account_id",
        group_id="group_id")
    
    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.GetZeroTrustDeviceDeploymentGroups(ctx, &cloudflare.LookupZeroTrustDeviceDeploymentGroupsArgs{
    			AccountId: "account_id",
    			GroupId:   "group_id",
    		}, nil)
    		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 = Cloudflare.GetZeroTrustDeviceDeploymentGroups.Invoke(new()
        {
            AccountId = "account_id",
            GroupId = "group_id",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CloudflareFunctions;
    import com.pulumi.cloudflare.inputs.GetZeroTrustDeviceDeploymentGroupsArgs;
    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) {
            final var exampleZeroTrustDeviceDeploymentGroups = CloudflareFunctions.getZeroTrustDeviceDeploymentGroups(GetZeroTrustDeviceDeploymentGroupsArgs.builder()
                .accountId("account_id")
                .groupId("group_id")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustDeviceDeploymentGroups:
        fn::invoke:
          function: cloudflare:getZeroTrustDeviceDeploymentGroups
          arguments:
            accountId: account_id
            groupId: group_id
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_getzerotrustdevicedeploymentgroups" "exampleZeroTrustDeviceDeploymentGroups" {
      account_id = "account_id"
      group_id   = "group_id"
    }
    

    Using getZeroTrustDeviceDeploymentGroups

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getZeroTrustDeviceDeploymentGroups(args: GetZeroTrustDeviceDeploymentGroupsArgs, opts?: InvokeOptions): Promise<GetZeroTrustDeviceDeploymentGroupsResult>
    function getZeroTrustDeviceDeploymentGroupsOutput(args: GetZeroTrustDeviceDeploymentGroupsOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustDeviceDeploymentGroupsResult>
    def get_zero_trust_device_deployment_groups(account_id: Optional[str] = None,
                                                group_id: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetZeroTrustDeviceDeploymentGroupsResult
    def get_zero_trust_device_deployment_groups_output(account_id: pulumi.Input[Optional[str]] = None,
                                                group_id: pulumi.Input[Optional[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustDeviceDeploymentGroupsResult]
    func LookupZeroTrustDeviceDeploymentGroups(ctx *Context, args *LookupZeroTrustDeviceDeploymentGroupsArgs, opts ...InvokeOption) (*LookupZeroTrustDeviceDeploymentGroupsResult, error)
    func LookupZeroTrustDeviceDeploymentGroupsOutput(ctx *Context, args *LookupZeroTrustDeviceDeploymentGroupsOutputArgs, opts ...InvokeOption) LookupZeroTrustDeviceDeploymentGroupsResultOutput

    > Note: This function is named LookupZeroTrustDeviceDeploymentGroups in the Go SDK.

    public static class GetZeroTrustDeviceDeploymentGroups 
    {
        public static Task<GetZeroTrustDeviceDeploymentGroupsResult> InvokeAsync(GetZeroTrustDeviceDeploymentGroupsArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustDeviceDeploymentGroupsResult> Invoke(GetZeroTrustDeviceDeploymentGroupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustDeviceDeploymentGroupsResult> getZeroTrustDeviceDeploymentGroups(GetZeroTrustDeviceDeploymentGroupsArgs args, InvokeOptions options)
    public static Output<GetZeroTrustDeviceDeploymentGroupsResult> getZeroTrustDeviceDeploymentGroups(GetZeroTrustDeviceDeploymentGroupsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustDeviceDeploymentGroups:getZeroTrustDeviceDeploymentGroups
      arguments:
        # arguments dictionary
    data "cloudflare_get_zero_trust_device_deployment_groups" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    GroupId string
    AccountId string
    GroupId string
    account_id string
    group_id string
    accountId String
    groupId String
    accountId string
    groupId string
    accountId String
    groupId String

    getZeroTrustDeviceDeploymentGroups Result

    The following output properties are available:

    AccountId string
    CreatedAt string
    The RFC3339Nano timestamp when the deployment group was created.
    GroupId string
    Id string
    The ID of this resource.
    Name string
    A user-friendly name for the deployment group.
    PolicyIds List<string>
    Contains a list of policy IDs assigned to this deployment group.
    UpdatedAt string
    The RFC3339Nano timestamp when the deployment group was last updated.
    VersionConfigs List<GetZeroTrustDeviceDeploymentGroupsVersionConfig>
    Contains version configurations for different target environments.
    AccountId string
    CreatedAt string
    The RFC3339Nano timestamp when the deployment group was created.
    GroupId string
    Id string
    The ID of this resource.
    Name string
    A user-friendly name for the deployment group.
    PolicyIds []string
    Contains a list of policy IDs assigned to this deployment group.
    UpdatedAt string
    The RFC3339Nano timestamp when the deployment group was last updated.
    VersionConfigs []GetZeroTrustDeviceDeploymentGroupsVersionConfig
    Contains version configurations for different target environments.
    account_id string
    created_at string
    The RFC3339Nano timestamp when the deployment group was created.
    group_id string
    id string
    The ID of this resource.
    name string
    A user-friendly name for the deployment group.
    policy_ids list(string)
    Contains a list of policy IDs assigned to this deployment group.
    updated_at string
    The RFC3339Nano timestamp when the deployment group was last updated.
    version_configs list(object)
    Contains version configurations for different target environments.
    accountId String
    createdAt String
    The RFC3339Nano timestamp when the deployment group was created.
    groupId String
    id String
    The ID of this resource.
    name String
    A user-friendly name for the deployment group.
    policyIds List<String>
    Contains a list of policy IDs assigned to this deployment group.
    updatedAt String
    The RFC3339Nano timestamp when the deployment group was last updated.
    versionConfigs List<GetZeroTrustDeviceDeploymentGroupsVersionConfig>
    Contains version configurations for different target environments.
    accountId string
    createdAt string
    The RFC3339Nano timestamp when the deployment group was created.
    groupId string
    id string
    The ID of this resource.
    name string
    A user-friendly name for the deployment group.
    policyIds string[]
    Contains a list of policy IDs assigned to this deployment group.
    updatedAt string
    The RFC3339Nano timestamp when the deployment group was last updated.
    versionConfigs GetZeroTrustDeviceDeploymentGroupsVersionConfig[]
    Contains version configurations for different target environments.
    account_id str
    created_at str
    The RFC3339Nano timestamp when the deployment group was created.
    group_id str
    id str
    The ID of this resource.
    name str
    A user-friendly name for the deployment group.
    policy_ids Sequence[str]
    Contains a list of policy IDs assigned to this deployment group.
    updated_at str
    The RFC3339Nano timestamp when the deployment group was last updated.
    version_configs Sequence[GetZeroTrustDeviceDeploymentGroupsVersionConfig]
    Contains version configurations for different target environments.
    accountId String
    createdAt String
    The RFC3339Nano timestamp when the deployment group was created.
    groupId String
    id String
    The ID of this resource.
    name String
    A user-friendly name for the deployment group.
    policyIds List<String>
    Contains a list of policy IDs assigned to this deployment group.
    updatedAt String
    The RFC3339Nano timestamp when the deployment group was last updated.
    versionConfigs List<Property Map>
    Contains version configurations for different target environments.

    Supporting Types

    GetZeroTrustDeviceDeploymentGroupsVersionConfig

    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.

    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