1. Packages
  2. Strata Cloud Manager Provider
  3. API Docs
  4. getServiceGroupList
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

    Retrieves a listing of config items.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scm from "@pulumi/scm";
    
    // Fetch a list of all service group objects.
    // This data source will call the "List" API endpoint.
    const allServiceGroups = scm.getServiceGroupList({
        folder: "All",
    });
    export const serviceGroupsListRaw = allServiceGroups.then(allServiceGroups => allServiceGroups.datas);
    
    import pulumi
    import pulumi_scm as scm
    
    # Fetch a list of all service group objects.
    # This data source will call the "List" API endpoint.
    all_service_groups = scm.get_service_group_list(folder="All")
    pulumi.export("serviceGroupsListRaw", all_service_groups.datas)
    
    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 {
    		// Fetch a list of all service group objects.
    		// This data source will call the "List" API endpoint.
    		allServiceGroups, err := scm.GetServiceGroupList(ctx, &scm.GetServiceGroupListArgs{
    			Folder: pulumi.StringRef("All"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("serviceGroupsListRaw", allServiceGroups.Datas)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scm = Pulumi.Scm;
    
    return await Deployment.RunAsync(() => 
    {
        // Fetch a list of all service group objects.
        // This data source will call the "List" API endpoint.
        var allServiceGroups = Scm.GetServiceGroupList.Invoke(new()
        {
            Folder = "All",
        });
    
        return new Dictionary<string, object?>
        {
            ["serviceGroupsListRaw"] = allServiceGroups.Apply(getServiceGroupListResult => getServiceGroupListResult.Datas),
        };
    });
    
    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.GetServiceGroupListArgs;
    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) {
            // Fetch a list of all service group objects.
            // This data source will call the "List" API endpoint.
            final var allServiceGroups = ScmFunctions.getServiceGroupList(GetServiceGroupListArgs.builder()
                .folder("All")
                .build());
    
            ctx.export("serviceGroupsListRaw", allServiceGroups.datas());
        }
    }
    
    variables:
      # Fetch a list of all service group objects.
      # This data source will call the "List" API endpoint.
      allServiceGroups:
        fn::invoke:
          function: scm:getServiceGroupList
          arguments:
            folder: All
    outputs:
      # Output the raw list of all service group objects
      serviceGroupsListRaw: ${allServiceGroups.datas}
    

    Using getServiceGroupList

    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 getServiceGroupList(args: GetServiceGroupListArgs, opts?: InvokeOptions): Promise<GetServiceGroupListResult>
    function getServiceGroupListOutput(args: GetServiceGroupListOutputArgs, opts?: InvokeOptions): Output<GetServiceGroupListResult>
    def get_service_group_list(device: Optional[str] = None,
                               folder: Optional[str] = None,
                               limit: Optional[int] = None,
                               name: Optional[str] = None,
                               offset: Optional[int] = None,
                               snippet: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetServiceGroupListResult
    def get_service_group_list_output(device: Optional[pulumi.Input[str]] = None,
                               folder: Optional[pulumi.Input[str]] = None,
                               limit: Optional[pulumi.Input[int]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               offset: Optional[pulumi.Input[int]] = None,
                               snippet: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetServiceGroupListResult]
    func GetServiceGroupList(ctx *Context, args *GetServiceGroupListArgs, opts ...InvokeOption) (*GetServiceGroupListResult, error)
    func GetServiceGroupListOutput(ctx *Context, args *GetServiceGroupListOutputArgs, opts ...InvokeOption) GetServiceGroupListResultOutput

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

    public static class GetServiceGroupList 
    {
        public static Task<GetServiceGroupListResult> InvokeAsync(GetServiceGroupListArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceGroupListResult> Invoke(GetServiceGroupListInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServiceGroupListResult> getServiceGroupList(GetServiceGroupListArgs args, InvokeOptions options)
    public static Output<GetServiceGroupListResult> getServiceGroupList(GetServiceGroupListArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scm:index/getServiceGroupList:getServiceGroupList
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Device string
    The device of the item.
    Folder string
    The folder of the item. Default: Shared.
    Limit int
    The max number of items to return. Default: 200.
    Name string
    The name of the item.
    Offset int
    The offset of the first item to return.
    Snippet string
    The snippet of the item.
    Device string
    The device of the item.
    Folder string
    The folder of the item. Default: Shared.
    Limit int
    The max number of items to return. Default: 200.
    Name string
    The name of the item.
    Offset int
    The offset of the first item to return.
    Snippet string
    The snippet of the item.
    device String
    The device of the item.
    folder String
    The folder of the item. Default: Shared.
    limit Integer
    The max number of items to return. Default: 200.
    name String
    The name of the item.
    offset Integer
    The offset of the first item to return.
    snippet String
    The snippet of the item.
    device string
    The device of the item.
    folder string
    The folder of the item. Default: Shared.
    limit number
    The max number of items to return. Default: 200.
    name string
    The name of the item.
    offset number
    The offset of the first item to return.
    snippet string
    The snippet of the item.
    device str
    The device of the item.
    folder str
    The folder of the item. Default: Shared.
    limit int
    The max number of items to return. Default: 200.
    name str
    The name of the item.
    offset int
    The offset of the first item to return.
    snippet str
    The snippet of the item.
    device String
    The device of the item.
    folder String
    The folder of the item. Default: Shared.
    limit Number
    The max number of items to return. Default: 200.
    name String
    The name of the item.
    offset Number
    The offset of the first item to return.
    snippet String
    The snippet of the item.

    getServiceGroupList Result

    The following output properties are available:

    Datas List<GetServiceGroupListData>
    The data.
    Id string
    The provider-assigned unique ID for this managed resource.
    Tfid string
    Total int
    The total number of items.
    Device string
    The device of the item.
    Folder string
    The folder of the item. Default: Shared.
    Limit int
    The max number of items to return. Default: 200.
    Name string
    The name of the item.
    Offset int
    The offset of the first item to return.
    Snippet string
    The snippet of the item.
    Datas []GetServiceGroupListData
    The data.
    Id string
    The provider-assigned unique ID for this managed resource.
    Tfid string
    Total int
    The total number of items.
    Device string
    The device of the item.
    Folder string
    The folder of the item. Default: Shared.
    Limit int
    The max number of items to return. Default: 200.
    Name string
    The name of the item.
    Offset int
    The offset of the first item to return.
    Snippet string
    The snippet of the item.
    datas List<GetServiceGroupListData>
    The data.
    id String
    The provider-assigned unique ID for this managed resource.
    tfid String
    total Integer
    The total number of items.
    device String
    The device of the item.
    folder String
    The folder of the item. Default: Shared.
    limit Integer
    The max number of items to return. Default: 200.
    name String
    The name of the item.
    offset Integer
    The offset of the first item to return.
    snippet String
    The snippet of the item.
    datas GetServiceGroupListData[]
    The data.
    id string
    The provider-assigned unique ID for this managed resource.
    tfid string
    total number
    The total number of items.
    device string
    The device of the item.
    folder string
    The folder of the item. Default: Shared.
    limit number
    The max number of items to return. Default: 200.
    name string
    The name of the item.
    offset number
    The offset of the first item to return.
    snippet string
    The snippet of the item.
    datas Sequence[GetServiceGroupListData]
    The data.
    id str
    The provider-assigned unique ID for this managed resource.
    tfid str
    total int
    The total number of items.
    device str
    The device of the item.
    folder str
    The folder of the item. Default: Shared.
    limit int
    The max number of items to return. Default: 200.
    name str
    The name of the item.
    offset int
    The offset of the first item to return.
    snippet str
    The snippet of the item.
    datas List<Property Map>
    The data.
    id String
    The provider-assigned unique ID for this managed resource.
    tfid String
    total Number
    The total number of items.
    device String
    The device of the item.
    folder String
    The folder of the item. Default: Shared.
    limit Number
    The max number of items to return. Default: 200.
    name String
    The name of the item.
    offset Number
    The offset of the first item to return.
    snippet String
    The snippet of the item.

    Supporting Types

    GetServiceGroupListData

    Device string
    The device in which the resource is defined
    Folder string
    The folder in which the resource is defined
    Id string
    The UUID of the service group
    Members List<string>
    Members
    Name string
    The name of the service group
    Snippet string
    The snippet in which the resource is defined
    Tags List<string>
    Tags associated with the service group
    Tfid string
    Device string
    The device in which the resource is defined
    Folder string
    The folder in which the resource is defined
    Id string
    The UUID of the service group
    Members []string
    Members
    Name string
    The name of the service group
    Snippet string
    The snippet in which the resource is defined
    Tags []string
    Tags associated with the service group
    Tfid string
    device String
    The device in which the resource is defined
    folder String
    The folder in which the resource is defined
    id String
    The UUID of the service group
    members List<String>
    Members
    name String
    The name of the service group
    snippet String
    The snippet in which the resource is defined
    tags List<String>
    Tags associated with the service group
    tfid String
    device string
    The device in which the resource is defined
    folder string
    The folder in which the resource is defined
    id string
    The UUID of the service group
    members string[]
    Members
    name string
    The name of the service group
    snippet string
    The snippet in which the resource is defined
    tags string[]
    Tags associated with the service group
    tfid string
    device str
    The device in which the resource is defined
    folder str
    The folder in which the resource is defined
    id str
    The UUID of the service group
    members Sequence[str]
    Members
    name str
    The name of the service group
    snippet str
    The snippet in which the resource is defined
    tags Sequence[str]
    Tags associated with the service group
    tfid str
    device String
    The device in which the resource is defined
    folder String
    The folder in which the resource is defined
    id String
    The UUID of the service group
    members List<String>
    Members
    name String
    The name of the service group
    snippet String
    The snippet in which the resource is defined
    tags List<String>
    Tags associated with the service 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