1. Packages
  2. Strata Cloud Manager Provider
  3. API Docs
  4. getServiceList
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";
    
    // Data source to fetch all services in the "Shared" folder.
    const allSharedServices = scm.getServiceList({
        folder: "All",
    });
    export const allSharedServicesMap = allSharedServices.then(allSharedServices => .reduce((__obj, svc) => ({ ...__obj, [svc.name]: svc })));
    // Example of using pagination to get the first 5 services.
    const paginatedServices = scm.getServiceList({
        folder: "All",
        limit: 5,
        offset: 0,
    });
    export const paginatedServicesList = paginatedServices.then(paginatedServices => paginatedServices.datas);
    export const paginatedServicesDetails = {
        totalInFolder: paginatedServices.then(paginatedServices => paginatedServices.total),
        limitUsed: paginatedServices.then(paginatedServices => paginatedServices.limit),
        offsetUsed: paginatedServices.then(paginatedServices => paginatedServices.offset),
    };
    
    import pulumi
    import pulumi_scm as scm
    
    # Data source to fetch all services in the "Shared" folder.
    all_shared_services = scm.get_service_list(folder="All")
    pulumi.export("allSharedServicesMap", {svc.name: svc for svc in all_shared_services.datas})
    # Example of using pagination to get the first 5 services.
    paginated_services = scm.get_service_list(folder="All",
        limit=5,
        offset=0)
    pulumi.export("paginatedServicesList", paginated_services.datas)
    pulumi.export("paginatedServicesDetails", {
        "totalInFolder": paginated_services.total,
        "limitUsed": paginated_services.limit,
        "offsetUsed": paginated_services.offset,
    })
    
    Example coming soon!
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scm = Pulumi.Scm;
    
    return await Deployment.RunAsync(() => 
    {
        // Data source to fetch all services in the "Shared" folder.
        var allSharedServices = Scm.GetServiceList.Invoke(new()
        {
            Folder = "All",
        });
    
        // Example of using pagination to get the first 5 services.
        var paginatedServices = Scm.GetServiceList.Invoke(new()
        {
            Folder = "All",
            Limit = 5,
            Offset = 0,
        });
    
        return new Dictionary<string, object?>
        {
            ["allSharedServicesMap"] = ,
            ["paginatedServicesList"] = paginatedServices.Apply(getServiceListResult => getServiceListResult.Datas),
            ["paginatedServicesDetails"] = 
            {
                { "totalInFolder", paginatedServices.Apply(getServiceListResult => getServiceListResult.Total) },
                { "limitUsed", paginatedServices.Apply(getServiceListResult => getServiceListResult.Limit) },
                { "offsetUsed", paginatedServices.Apply(getServiceListResult => getServiceListResult.Offset) },
            },
        };
    });
    
    Example coming soon!
    
    Example coming soon!
    

    Using getServiceList

    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 getServiceList(args: GetServiceListArgs, opts?: InvokeOptions): Promise<GetServiceListResult>
    function getServiceListOutput(args: GetServiceListOutputArgs, opts?: InvokeOptions): Output<GetServiceListResult>
    def get_service_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) -> GetServiceListResult
    def get_service_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[GetServiceListResult]
    func GetServiceList(ctx *Context, args *GetServiceListArgs, opts ...InvokeOption) (*GetServiceListResult, error)
    func GetServiceListOutput(ctx *Context, args *GetServiceListOutputArgs, opts ...InvokeOption) GetServiceListResultOutput

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

    public static class GetServiceList 
    {
        public static Task<GetServiceListResult> InvokeAsync(GetServiceListArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceListResult> Invoke(GetServiceListInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServiceListResult> getServiceList(GetServiceListArgs args, InvokeOptions options)
    public static Output<GetServiceListResult> getServiceList(GetServiceListArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scm:index/getServiceList:getServiceList
      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.

    getServiceList Result

    The following output properties are available:

    Datas List<GetServiceListData>
    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 []GetServiceListData
    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<GetServiceListData>
    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 GetServiceListData[]
    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[GetServiceListData]
    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

    GetServiceListData

    Description string
    Description
    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
    Name string
    The name of the service
    Protocol GetServiceListDataProtocol
    Protocol
    Snippet string
    The snippet in which the resource is defined
    Tags List<string>
    Tags for service object
    Tfid string
    Description string
    Description
    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
    Name string
    The name of the service
    Protocol GetServiceListDataProtocol
    Protocol
    Snippet string
    The snippet in which the resource is defined
    Tags []string
    Tags for service object
    Tfid string
    description String
    Description
    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
    name String
    The name of the service
    protocol GetServiceListDataProtocol
    Protocol
    snippet String
    The snippet in which the resource is defined
    tags List<String>
    Tags for service object
    tfid String
    description string
    Description
    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
    name string
    The name of the service
    protocol GetServiceListDataProtocol
    Protocol
    snippet string
    The snippet in which the resource is defined
    tags string[]
    Tags for service object
    tfid string
    description str
    Description
    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
    name str
    The name of the service
    protocol GetServiceListDataProtocol
    Protocol
    snippet str
    The snippet in which the resource is defined
    tags Sequence[str]
    Tags for service object
    tfid str
    description String
    Description
    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
    name String
    The name of the service
    protocol Property Map
    Protocol
    snippet String
    The snippet in which the resource is defined
    tags List<String>
    Tags for service object
    tfid String

    GetServiceListDataProtocol

    GetServiceListDataProtocolTcp

    override Property Map
    Override
    port String
    Port
    sourcePort String
    Source port

    GetServiceListDataProtocolTcpOverride

    HalfcloseTimeout int
    tcp session half-close timeout value (in second)
    Timeout int
    tcp session timeout value (in second)
    TimewaitTimeout int
    tcp session time-wait timeout value (in second)
    HalfcloseTimeout int
    tcp session half-close timeout value (in second)
    Timeout int
    tcp session timeout value (in second)
    TimewaitTimeout int
    tcp session time-wait timeout value (in second)
    halfcloseTimeout Integer
    tcp session half-close timeout value (in second)
    timeout Integer
    tcp session timeout value (in second)
    timewaitTimeout Integer
    tcp session time-wait timeout value (in second)
    halfcloseTimeout number
    tcp session half-close timeout value (in second)
    timeout number
    tcp session timeout value (in second)
    timewaitTimeout number
    tcp session time-wait timeout value (in second)
    halfclose_timeout int
    tcp session half-close timeout value (in second)
    timeout int
    tcp session timeout value (in second)
    timewait_timeout int
    tcp session time-wait timeout value (in second)
    halfcloseTimeout Number
    tcp session half-close timeout value (in second)
    timeout Number
    tcp session timeout value (in second)
    timewaitTimeout Number
    tcp session time-wait timeout value (in second)

    GetServiceListDataProtocolUdp

    override Property Map
    Override
    port String
    Port
    sourcePort String
    Source port

    GetServiceListDataProtocolUdpOverride

    Timeout int
    udp session timeout value (in second)
    Timeout int
    udp session timeout value (in second)
    timeout Integer
    udp session timeout value (in second)
    timeout number
    udp session timeout value (in second)
    timeout int
    udp session timeout value (in second)
    timeout Number
    udp session timeout value (in second)

    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