1. Packages
  2. Strata Cloud Manager Provider
  3. API Docs
  4. getDynamicUserGroup
Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
scm logo
Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi

    DynamicUserGroup data source

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scm from "@pulumi/scm";
    
    // Look up the dynamic user group by its ID.
    const scmDynamicUserGroupDs = scm.getDynamicUserGroup({
        id: "c8ac5c18-023b-4be5-bc39-65e585cff9c7",
    });
    export const dynamicUserGroupDetails = {
        id: scmDynamicUserGroupDs.then(scmDynamicUserGroupDs => scmDynamicUserGroupDs.id),
        name: scmDynamicUserGroupDs.then(scmDynamicUserGroupDs => scmDynamicUserGroupDs.name),
        folder: scmDynamicUserGroupDs.then(scmDynamicUserGroupDs => scmDynamicUserGroupDs.folder),
        description: scmDynamicUserGroupDs.then(scmDynamicUserGroupDs => scmDynamicUserGroupDs.description),
        filter: scmDynamicUserGroupDs.then(scmDynamicUserGroupDs => scmDynamicUserGroupDs.filter),
        tags: scmDynamicUserGroupDs.then(scmDynamicUserGroupDs => scmDynamicUserGroupDs.tags),
    };
    
    import pulumi
    import pulumi_scm as scm
    
    # Look up the dynamic user group by its ID.
    scm_dynamic_user_group_ds = scm.get_dynamic_user_group(id="c8ac5c18-023b-4be5-bc39-65e585cff9c7")
    pulumi.export("dynamicUserGroupDetails", {
        "id": scm_dynamic_user_group_ds.id,
        "name": scm_dynamic_user_group_ds.name,
        "folder": scm_dynamic_user_group_ds.folder,
        "description": scm_dynamic_user_group_ds.description,
        "filter": scm_dynamic_user_group_ds.filter,
        "tags": scm_dynamic_user_group_ds.tags,
    })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-scm/sdk/go/scm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Look up the dynamic user group by its ID.
    		scmDynamicUserGroupDs, err := scm.LookupDynamicUserGroup(ctx, &scm.LookupDynamicUserGroupArgs{
    			Id: "c8ac5c18-023b-4be5-bc39-65e585cff9c7",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("dynamicUserGroupDetails", pulumi.Map{
    			"id":          scmDynamicUserGroupDs.Id,
    			"name":        scmDynamicUserGroupDs.Name,
    			"folder":      scmDynamicUserGroupDs.Folder,
    			"description": scmDynamicUserGroupDs.Description,
    			"filter":      scmDynamicUserGroupDs.Filter,
    			"tags":        scmDynamicUserGroupDs.Tags,
    		})
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scm = Pulumi.Scm;
    
    return await Deployment.RunAsync(() => 
    {
        // Look up the dynamic user group by its ID.
        var scmDynamicUserGroupDs = Scm.GetDynamicUserGroup.Invoke(new()
        {
            Id = "c8ac5c18-023b-4be5-bc39-65e585cff9c7",
        });
    
        return new Dictionary<string, object?>
        {
            ["dynamicUserGroupDetails"] = 
            {
                { "id", scmDynamicUserGroupDs.Apply(getDynamicUserGroupResult => getDynamicUserGroupResult.Id) },
                { "name", scmDynamicUserGroupDs.Apply(getDynamicUserGroupResult => getDynamicUserGroupResult.Name) },
                { "folder", scmDynamicUserGroupDs.Apply(getDynamicUserGroupResult => getDynamicUserGroupResult.Folder) },
                { "description", scmDynamicUserGroupDs.Apply(getDynamicUserGroupResult => getDynamicUserGroupResult.Description) },
                { "filter", scmDynamicUserGroupDs.Apply(getDynamicUserGroupResult => getDynamicUserGroupResult.Filter) },
                { "tags", scmDynamicUserGroupDs.Apply(getDynamicUserGroupResult => getDynamicUserGroupResult.Tags) },
            },
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scm.ScmFunctions;
    import com.pulumi.scm.inputs.GetDynamicUserGroupArgs;
    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) {
            // Look up the dynamic user group by its ID.
            final var scmDynamicUserGroupDs = ScmFunctions.getDynamicUserGroup(GetDynamicUserGroupArgs.builder()
                .id("c8ac5c18-023b-4be5-bc39-65e585cff9c7")
                .build());
    
            ctx.export("dynamicUserGroupDetails", Map.ofEntries(
                Map.entry("id", scmDynamicUserGroupDs.id()),
                Map.entry("name", scmDynamicUserGroupDs.name()),
                Map.entry("folder", scmDynamicUserGroupDs.folder()),
                Map.entry("description", scmDynamicUserGroupDs.description()),
                Map.entry("filter", scmDynamicUserGroupDs.filter()),
                Map.entry("tags", scmDynamicUserGroupDs.tags())
            ));
        }
    }
    
    variables:
      # Look up the dynamic user group by its ID.
      scmDynamicUserGroupDs:
        fn::invoke:
          function: scm:getDynamicUserGroup
          arguments:
            id: c8ac5c18-023b-4be5-bc39-65e585cff9c7
    outputs:
      # Output the details of the dynamic user group.
      dynamicUserGroupDetails:
        id: ${scmDynamicUserGroupDs.id}
        name: ${scmDynamicUserGroupDs.name}
        folder: ${scmDynamicUserGroupDs.folder}
        description: ${scmDynamicUserGroupDs.description}
        filter: ${scmDynamicUserGroupDs.filter}
        tags: ${scmDynamicUserGroupDs.tags}
    

    Using getDynamicUserGroup

    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 getDynamicUserGroup(args: GetDynamicUserGroupArgs, opts?: InvokeOptions): Promise<GetDynamicUserGroupResult>
    function getDynamicUserGroupOutput(args: GetDynamicUserGroupOutputArgs, opts?: InvokeOptions): Output<GetDynamicUserGroupResult>
    def get_dynamic_user_group(id: Optional[str] = None,
                               name: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetDynamicUserGroupResult
    def get_dynamic_user_group_output(id: Optional[pulumi.Input[str]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetDynamicUserGroupResult]
    func LookupDynamicUserGroup(ctx *Context, args *LookupDynamicUserGroupArgs, opts ...InvokeOption) (*LookupDynamicUserGroupResult, error)
    func LookupDynamicUserGroupOutput(ctx *Context, args *LookupDynamicUserGroupOutputArgs, opts ...InvokeOption) LookupDynamicUserGroupResultOutput

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

    public static class GetDynamicUserGroup 
    {
        public static Task<GetDynamicUserGroupResult> InvokeAsync(GetDynamicUserGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetDynamicUserGroupResult> Invoke(GetDynamicUserGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDynamicUserGroupResult> getDynamicUserGroup(GetDynamicUserGroupArgs args, InvokeOptions options)
    public static Output<GetDynamicUserGroupResult> getDynamicUserGroup(GetDynamicUserGroupArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scm:index/getDynamicUserGroup:getDynamicUserGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The UUID of the dynamic user group
    Name string
    The name of the dynamic address group
    Id string
    The UUID of the dynamic user group
    Name string
    The name of the dynamic address group
    id String
    The UUID of the dynamic user group
    name String
    The name of the dynamic address group
    id string
    The UUID of the dynamic user group
    name string
    The name of the dynamic address group
    id str
    The UUID of the dynamic user group
    name str
    The name of the dynamic address group
    id String
    The UUID of the dynamic user group
    name String
    The name of the dynamic address group

    getDynamicUserGroup Result

    The following output properties are available:

    Description string
    The description of the dynamic address group
    Device string
    The device in which the resource is defined
    Filter string
    The tag-based filter for the dynamic user group
    Folder string
    The folder in which the resource is defined
    Id string
    The UUID of the dynamic user group
    Name string
    The name of the dynamic address group
    Snippet string
    The snippet in which the resource is defined
    Tags List<string>
    Tags associated with the dynamic user group
    Tfid string
    Description string
    The description of the dynamic address group
    Device string
    The device in which the resource is defined
    Filter string
    The tag-based filter for the dynamic user group
    Folder string
    The folder in which the resource is defined
    Id string
    The UUID of the dynamic user group
    Name string
    The name of the dynamic address group
    Snippet string
    The snippet in which the resource is defined
    Tags []string
    Tags associated with the dynamic user group
    Tfid string
    description String
    The description of the dynamic address group
    device String
    The device in which the resource is defined
    filter String
    The tag-based filter for the dynamic user group
    folder String
    The folder in which the resource is defined
    id String
    The UUID of the dynamic user group
    name String
    The name of the dynamic address group
    snippet String
    The snippet in which the resource is defined
    tags List<String>
    Tags associated with the dynamic user group
    tfid String
    description string
    The description of the dynamic address group
    device string
    The device in which the resource is defined
    filter string
    The tag-based filter for the dynamic user group
    folder string
    The folder in which the resource is defined
    id string
    The UUID of the dynamic user group
    name string
    The name of the dynamic address group
    snippet string
    The snippet in which the resource is defined
    tags string[]
    Tags associated with the dynamic user group
    tfid string
    description str
    The description of the dynamic address group
    device str
    The device in which the resource is defined
    filter str
    The tag-based filter for the dynamic user group
    folder str
    The folder in which the resource is defined
    id str
    The UUID of the dynamic user group
    name str
    The name of the dynamic address group
    snippet str
    The snippet in which the resource is defined
    tags Sequence[str]
    Tags associated with the dynamic user group
    tfid str
    description String
    The description of the dynamic address group
    device String
    The device in which the resource is defined
    filter String
    The tag-based filter for the dynamic user group
    folder String
    The folder in which the resource is defined
    id String
    The UUID of the dynamic user group
    name String
    The name of the dynamic address group
    snippet String
    The snippet in which the resource is defined
    tags List<String>
    Tags associated with the dynamic user group
    tfid String

    Package Details

    Repository
    scm pulumi/pulumi-scm
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scm Terraform Provider.
    scm logo
    Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate