Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
scm.getServiceGroup
Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
ServiceGroup data source
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
// Look up a single service group object by its ID.
// The ID used here is from the terraform.tfstate file.
const scmServiceGroupDs = scm.getServiceGroup({
id: "dc430d61-52ca-44bc-a797-e65123a94134",
});
export const serviceGroupDsResult = scmServiceGroupDs;
import pulumi
import pulumi_scm as scm
# Look up a single service group object by its ID.
# The ID used here is from the terraform.tfstate file.
scm_service_group_ds = scm.get_service_group(id="dc430d61-52ca-44bc-a797-e65123a94134")
pulumi.export("serviceGroupDsResult", scm_service_group_ds)
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 a single service group object by its ID.
// The ID used here is from the terraform.tfstate file.
scmServiceGroupDs, err := scm.LookupServiceGroup(ctx, &scm.LookupServiceGroupArgs{
Id: "dc430d61-52ca-44bc-a797-e65123a94134",
}, nil)
if err != nil {
return err
}
ctx.Export("serviceGroupDsResult", scmServiceGroupDs)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
// Look up a single service group object by its ID.
// The ID used here is from the terraform.tfstate file.
var scmServiceGroupDs = Scm.GetServiceGroup.Invoke(new()
{
Id = "dc430d61-52ca-44bc-a797-e65123a94134",
});
return new Dictionary<string, object?>
{
["serviceGroupDsResult"] = scmServiceGroupDs,
};
});
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.GetServiceGroupArgs;
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 a single service group object by its ID.
// The ID used here is from the terraform.tfstate file.
final var scmServiceGroupDs = ScmFunctions.getServiceGroup(GetServiceGroupArgs.builder()
.id("dc430d61-52ca-44bc-a797-e65123a94134")
.build());
ctx.export("serviceGroupDsResult", scmServiceGroupDs);
}
}
variables:
# Look up a single service group object by its ID.
# The ID used here is from the terraform.tfstate file.
scmServiceGroupDs:
fn::invoke:
function: scm:getServiceGroup
arguments:
id: dc430d61-52ca-44bc-a797-e65123a94134
outputs:
# Output the details of the single service group object found.
serviceGroupDsResult: ${scmServiceGroupDs}
Using getServiceGroup
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 getServiceGroup(args: GetServiceGroupArgs, opts?: InvokeOptions): Promise<GetServiceGroupResult>
function getServiceGroupOutput(args: GetServiceGroupOutputArgs, opts?: InvokeOptions): Output<GetServiceGroupResult>def get_service_group(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceGroupResult
def get_service_group_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServiceGroupResult]func LookupServiceGroup(ctx *Context, args *LookupServiceGroupArgs, opts ...InvokeOption) (*LookupServiceGroupResult, error)
func LookupServiceGroupOutput(ctx *Context, args *LookupServiceGroupOutputArgs, opts ...InvokeOption) LookupServiceGroupResultOutput> Note: This function is named LookupServiceGroup in the Go SDK.
public static class GetServiceGroup
{
public static Task<GetServiceGroupResult> InvokeAsync(GetServiceGroupArgs args, InvokeOptions? opts = null)
public static Output<GetServiceGroupResult> Invoke(GetServiceGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServiceGroupResult> getServiceGroup(GetServiceGroupArgs args, InvokeOptions options)
public static Output<GetServiceGroupResult> getServiceGroup(GetServiceGroupArgs args, InvokeOptions options)
fn::invoke:
function: scm:index/getServiceGroup:getServiceGroup
arguments:
# arguments dictionaryThe following arguments are supported:
getServiceGroup Result
The following output properties are available:
- 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
- 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
- []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
- 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
- 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
- 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
- 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
scmTerraform Provider.
Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
