Viewing docs for Strata Cloud Manager v1.2.1
published on Friday, Oct 16, 2026 by Pulumi
published on Friday, Oct 16, 2026 by Pulumi
Strata Cloud ManagerViewing docs for Strata Cloud Manager v1.2.1
published on Friday, Oct 16, 2026 by Pulumi
published on Friday, Oct 16, 2026 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 pulumi.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 pulumi.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 pulumi.tfstate file.
scmServiceGroupDs, err := scm.GetServiceGroup(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 pulumi.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.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) {
// Look up a single service group object by its ID.
// The ID used here is from the pulumi.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 pulumi.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}
terraform {
required_providers {
scm = {
source = "pulumi/scm"
}
}
}
data "scm_service_group" "scmServiceGroupDs" {
id = "dc430d61-52ca-44bc-a797-e65123a94134"
}
# Look up a single service group object by its ID.
# The ID used here is from the pulumi.tfstate file.
# Output the details of the single service group object found.
output "serviceGroupDsResult" {
value = data.scm_service_group.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?: InvokeOutputOptions): Output<GetServiceGroupResult>def get_service_group(device: Optional[str] = None,
folder: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
snippet: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceGroupResult
def get_service_group_output(device: pulumi.Input[Optional[str]] = None,
folder: pulumi.Input[Optional[str]] = None,
id: pulumi.Input[Optional[str]] = None,
name: pulumi.Input[Optional[str]] = None,
snippet: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = 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 Output<GetServiceGroupResult> Invoke(GetServiceGroupInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetServiceGroupResult> getServiceGroup(GetServiceGroupArgs args, InvokeOptions options)
public static Output<GetServiceGroupResult> getServiceGroup(GetServiceGroupArgs args, InvokeOptions options)
public static Output<GetServiceGroupResult> getServiceGroup(GetServiceGroupArgs args, InvokeOutputOptions options)
fn::invoke:
function: scm:index/getServiceGroup:getServiceGroup
arguments:
# arguments dictionarydata "scm_get_service_group" "name" {
# arguments
}The 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
- The Terraform ID.
- 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
- The Terraform ID.
- 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
- The Terraform ID.
- 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
- The Terraform ID.
- 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
- The Terraform ID.
- 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
- The Terraform ID.
- 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
- The Terraform ID.
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
Strata Cloud ManagerViewing docs for Strata Cloud Manager v1.2.1
published on Friday, Oct 16, 2026 by Pulumi
published on Friday, Oct 16, 2026 by Pulumi