1. Packages
  2. Strata Cloud Manager Provider
  3. API Docs
  4. getServiceRoute
Strata Cloud Manager v1.0.3 published on Thursday, Jan 22, 2026 by Pulumi
scm logo
Strata Cloud Manager v1.0.3 published on Thursday, Jan 22, 2026 by Pulumi

    ServiceRoute data source

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scm from "@pulumi/scm";
    
    const settingsData = scm.getServiceRoute({
        id: "a232c048-98d6-4507-a299-bb10f66fca01",
    });
    export const fetchedSettings = settingsData;
    
    import pulumi
    import pulumi_scm as scm
    
    settings_data = scm.get_service_route(id="a232c048-98d6-4507-a299-bb10f66fca01")
    pulumi.export("fetchedSettings", settings_data)
    
    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 {
    		settingsData, err := scm.LookupServiceRoute(ctx, &scm.LookupServiceRouteArgs{
    			Id: "a232c048-98d6-4507-a299-bb10f66fca01",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("fetchedSettings", settingsData)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scm = Pulumi.Scm;
    
    return await Deployment.RunAsync(() => 
    {
        var settingsData = Scm.GetServiceRoute.Invoke(new()
        {
            Id = "a232c048-98d6-4507-a299-bb10f66fca01",
        });
    
        return new Dictionary<string, object?>
        {
            ["fetchedSettings"] = settingsData,
        };
    });
    
    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.GetServiceRouteArgs;
    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) {
            final var settingsData = ScmFunctions.getServiceRoute(GetServiceRouteArgs.builder()
                .id("a232c048-98d6-4507-a299-bb10f66fca01")
                .build());
    
            ctx.export("fetchedSettings", settingsData);
        }
    }
    
    variables:
      settingsData:
        fn::invoke:
          function: scm:getServiceRoute
          arguments:
            id: a232c048-98d6-4507-a299-bb10f66fca01
    outputs:
      fetchedSettings: ${settingsData}
    

    Using getServiceRoute

    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 getServiceRoute(args: GetServiceRouteArgs, opts?: InvokeOptions): Promise<GetServiceRouteResult>
    function getServiceRouteOutput(args: GetServiceRouteOutputArgs, opts?: InvokeOptions): Output<GetServiceRouteResult>
    def get_service_route(device: Optional[str] = None,
                          folder: Optional[str] = None,
                          id: Optional[str] = None,
                          snippet: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetServiceRouteResult
    def get_service_route_output(device: Optional[pulumi.Input[str]] = None,
                          folder: Optional[pulumi.Input[str]] = None,
                          id: Optional[pulumi.Input[str]] = None,
                          snippet: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetServiceRouteResult]
    func LookupServiceRoute(ctx *Context, args *LookupServiceRouteArgs, opts ...InvokeOption) (*LookupServiceRouteResult, error)
    func LookupServiceRouteOutput(ctx *Context, args *LookupServiceRouteOutputArgs, opts ...InvokeOption) LookupServiceRouteResultOutput

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

    public static class GetServiceRoute 
    {
        public static Task<GetServiceRouteResult> InvokeAsync(GetServiceRouteArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceRouteResult> Invoke(GetServiceRouteInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServiceRouteResult> getServiceRoute(GetServiceRouteArgs args, InvokeOptions options)
    public static Output<GetServiceRouteResult> getServiceRoute(GetServiceRouteArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scm:index/getServiceRoute:getServiceRoute
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    UUID of the resource
    Device string
    The device in which the resource is defined
    Folder string
    Snippet string
    Id string
    UUID of the resource
    Device string
    The device in which the resource is defined
    Folder string
    Snippet string
    id String
    UUID of the resource
    device String
    The device in which the resource is defined
    folder String
    snippet String
    id string
    UUID of the resource
    device string
    The device in which the resource is defined
    folder string
    snippet string
    id str
    UUID of the resource
    device str
    The device in which the resource is defined
    folder str
    snippet str
    id String
    UUID of the resource
    device String
    The device in which the resource is defined
    folder String
    snippet String

    getServiceRoute Result

    The following output properties are available:

    Device string
    The device in which the resource is defined
    Folder string
    Id string
    UUID of the resource
    Route GetServiceRouteRoute
    Snippet string
    Tfid string
    Device string
    The device in which the resource is defined
    Folder string
    Id string
    UUID of the resource
    Route GetServiceRouteRoute
    Snippet string
    Tfid string
    device String
    The device in which the resource is defined
    folder String
    id String
    UUID of the resource
    route GetServiceRouteRoute
    snippet String
    tfid String
    device string
    The device in which the resource is defined
    folder string
    id string
    UUID of the resource
    route GetServiceRouteRoute
    snippet string
    tfid string
    device str
    The device in which the resource is defined
    folder str
    id str
    UUID of the resource
    route GetServiceRouteRoute
    snippet str
    tfid str
    device String
    The device in which the resource is defined
    folder String
    id String
    UUID of the resource
    route Property Map
    snippet String
    tfid String

    Supporting Types

    GetServiceRouteRoute

    GetServiceRouteRouteDestination

    name String
    Name
    source Property Map
    Source

    GetServiceRouteRouteDestinationSource

    Address string
    Address
    Interface string
    Interface
    Address string
    Address
    Interface string
    Interface
    address String
    Address
    interface_ String
    Interface
    address string
    Address
    interface string
    Interface
    address str
    Address
    interface str
    Interface
    address String
    Address
    interface String
    Interface

    GetServiceRouteRouteService

    Name string
    The follow list details the accepted name values and their corresponding service description.
    Source GetServiceRouteRouteServiceSource
    Source
    SourceV6 GetServiceRouteRouteServiceSourceV6
    Source v6
    Name string
    The follow list details the accepted name values and their corresponding service description.
    Source GetServiceRouteRouteServiceSource
    Source
    SourceV6 GetServiceRouteRouteServiceSourceV6
    Source v6
    name String
    The follow list details the accepted name values and their corresponding service description.
    source GetServiceRouteRouteServiceSource
    Source
    sourceV6 GetServiceRouteRouteServiceSourceV6
    Source v6
    name string
    The follow list details the accepted name values and their corresponding service description.
    source GetServiceRouteRouteServiceSource
    Source
    sourceV6 GetServiceRouteRouteServiceSourceV6
    Source v6
    name str
    The follow list details the accepted name values and their corresponding service description.
    source GetServiceRouteRouteServiceSource
    Source
    source_v6 GetServiceRouteRouteServiceSourceV6
    Source v6
    name String
    The follow list details the accepted name values and their corresponding service description.
    source Property Map
    Source
    sourceV6 Property Map
    Source v6

    GetServiceRouteRouteServiceSource

    Address string
    Address
    Interface string
    Interface
    Address string
    Address
    Interface string
    Interface
    address String
    Address
    interface_ String
    Interface
    address string
    Address
    interface string
    Interface
    address str
    Address
    interface str
    Interface
    address String
    Address
    interface String
    Interface

    GetServiceRouteRouteServiceSourceV6

    Address string
    Address
    Interface string
    Interface
    Address string
    Address
    Interface string
    Interface
    address String
    Address
    interface_ String
    Interface
    address string
    Address
    interface string
    Interface
    address str
    Address
    interface str
    Interface
    address String
    Address
    interface String
    Interface

    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 v1.0.3 published on Thursday, Jan 22, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate