1. Packages
  2. Strata Cloud Manager Provider
  3. API Docs
  4. getServiceConnection
Strata Cloud Manager v1.0.1 published on Wednesday, Nov 26, 2025 by Pulumi
scm logo
Strata Cloud Manager v1.0.1 published on Wednesday, Nov 26, 2025 by Pulumi

    ServiceConnection data source

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scm from "@pulumi/scm";
    
    //------------------------------------------------------
    // Data Soruce
    //------------------------------------------------------
    const createdConnLookup = scm.getServiceConnection({
        id: "3d07bda7-2cfa-4fdc-b504-cd82847b2ec3",
    });
    export const createdServiceConnectionId = createdConnLookup.then(createdConnLookup => createdConnLookup.id);
    export const createdServiceConnectionRegion = createdConnLookup.then(createdConnLookup => createdConnLookup.region);
    export const createdServiceConnectionSubnets = createdConnLookup.then(createdConnLookup => createdConnLookup.subnets);
    
    import pulumi
    import pulumi_scm as scm
    
    #------------------------------------------------------
    # Data Soruce
    #------------------------------------------------------
    created_conn_lookup = scm.get_service_connection(id="3d07bda7-2cfa-4fdc-b504-cd82847b2ec3")
    pulumi.export("createdServiceConnectionId", created_conn_lookup.id)
    pulumi.export("createdServiceConnectionRegion", created_conn_lookup.region)
    pulumi.export("createdServiceConnectionSubnets", created_conn_lookup.subnets)
    
    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 {
    		// ------------------------------------------------------
    		// Data Soruce
    		// ------------------------------------------------------
    		createdConnLookup, err := scm.LookupServiceConnection(ctx, &scm.LookupServiceConnectionArgs{
    			Id: "3d07bda7-2cfa-4fdc-b504-cd82847b2ec3",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("createdServiceConnectionId", createdConnLookup.Id)
    		ctx.Export("createdServiceConnectionRegion", createdConnLookup.Region)
    		ctx.Export("createdServiceConnectionSubnets", createdConnLookup.Subnets)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scm = Pulumi.Scm;
    
    return await Deployment.RunAsync(() => 
    {
        //------------------------------------------------------
        // Data Soruce
        //------------------------------------------------------
        var createdConnLookup = Scm.GetServiceConnection.Invoke(new()
        {
            Id = "3d07bda7-2cfa-4fdc-b504-cd82847b2ec3",
        });
    
        return new Dictionary<string, object?>
        {
            ["createdServiceConnectionId"] = createdConnLookup.Apply(getServiceConnectionResult => getServiceConnectionResult.Id),
            ["createdServiceConnectionRegion"] = createdConnLookup.Apply(getServiceConnectionResult => getServiceConnectionResult.Region),
            ["createdServiceConnectionSubnets"] = createdConnLookup.Apply(getServiceConnectionResult => getServiceConnectionResult.Subnets),
        };
    });
    
    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.GetServiceConnectionArgs;
    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) {
            //------------------------------------------------------
            // Data Soruce
            //------------------------------------------------------
            final var createdConnLookup = ScmFunctions.getServiceConnection(GetServiceConnectionArgs.builder()
                .id("3d07bda7-2cfa-4fdc-b504-cd82847b2ec3")
                .build());
    
            ctx.export("createdServiceConnectionId", createdConnLookup.id());
            ctx.export("createdServiceConnectionRegion", createdConnLookup.region());
            ctx.export("createdServiceConnectionSubnets", createdConnLookup.subnets());
        }
    }
    
    variables:
      #------------------------------------------------------
      # Data Soruce
      #------------------------------------------------------
      createdConnLookup:
        fn::invoke:
          function: scm:getServiceConnection
          arguments:
            id: 3d07bda7-2cfa-4fdc-b504-cd82847b2ec3
    outputs:
      createdServiceConnectionId: ${createdConnLookup.id}
      createdServiceConnectionRegion: ${createdConnLookup.region}
      createdServiceConnectionSubnets: ${createdConnLookup.subnets}
    

    Using getServiceConnection

    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 getServiceConnection(args: GetServiceConnectionArgs, opts?: InvokeOptions): Promise<GetServiceConnectionResult>
    function getServiceConnectionOutput(args: GetServiceConnectionOutputArgs, opts?: InvokeOptions): Output<GetServiceConnectionResult>
    def get_service_connection(id: Optional[str] = None,
                               name: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetServiceConnectionResult
    def get_service_connection_output(id: Optional[pulumi.Input[str]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetServiceConnectionResult]
    func LookupServiceConnection(ctx *Context, args *LookupServiceConnectionArgs, opts ...InvokeOption) (*LookupServiceConnectionResult, error)
    func LookupServiceConnectionOutput(ctx *Context, args *LookupServiceConnectionOutputArgs, opts ...InvokeOption) LookupServiceConnectionResultOutput

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

    public static class GetServiceConnection 
    {
        public static Task<GetServiceConnectionResult> InvokeAsync(GetServiceConnectionArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceConnectionResult> Invoke(GetServiceConnectionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServiceConnectionResult> getServiceConnection(GetServiceConnectionArgs args, InvokeOptions options)
    public static Output<GetServiceConnectionResult> getServiceConnection(GetServiceConnectionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scm:index/getServiceConnection:getServiceConnection
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The UUID of the service connection
    Name string
    The name of the service connection
    Id string
    The UUID of the service connection
    Name string
    The name of the service connection
    id String
    The UUID of the service connection
    name String
    The name of the service connection
    id string
    The UUID of the service connection
    name string
    The name of the service connection
    id str
    The UUID of the service connection
    name str
    The name of the service connection
    id String
    The UUID of the service connection
    name String
    The name of the service connection

    getServiceConnection Result

    The following output properties are available:

    BackupSc string
    Backup s c
    BgpPeer GetServiceConnectionBgpPeer
    Bgp peer
    EncryptedValues Dictionary<string, string>
    Map of sensitive values returned from the API.
    Id string
    The UUID of the service connection
    IpsecTunnel string
    Ipsec tunnel
    Name string
    The name of the service connection
    NatPool string
    Nat pool
    NoExportCommunity string
    No export community
    OnboardingType string
    Onboarding type
    Protocol GetServiceConnectionProtocol
    Protocol
    Qos GetServiceConnectionQos
    Qos
    Region string
    Region
    SecondaryIpsecTunnel string
    Secondary ipsec tunnel
    SourceNat bool
    Source nat
    Subnets List<string>
    Subnets
    Tfid string
    BackupSc string
    Backup s c
    BgpPeer GetServiceConnectionBgpPeer
    Bgp peer
    EncryptedValues map[string]string
    Map of sensitive values returned from the API.
    Id string
    The UUID of the service connection
    IpsecTunnel string
    Ipsec tunnel
    Name string
    The name of the service connection
    NatPool string
    Nat pool
    NoExportCommunity string
    No export community
    OnboardingType string
    Onboarding type
    Protocol GetServiceConnectionProtocol
    Protocol
    Qos GetServiceConnectionQos
    Qos
    Region string
    Region
    SecondaryIpsecTunnel string
    Secondary ipsec tunnel
    SourceNat bool
    Source nat
    Subnets []string
    Subnets
    Tfid string
    backupSc String
    Backup s c
    bgpPeer GetServiceConnectionBgpPeer
    Bgp peer
    encryptedValues Map<String,String>
    Map of sensitive values returned from the API.
    id String
    The UUID of the service connection
    ipsecTunnel String
    Ipsec tunnel
    name String
    The name of the service connection
    natPool String
    Nat pool
    noExportCommunity String
    No export community
    onboardingType String
    Onboarding type
    protocol GetServiceConnectionProtocol
    Protocol
    qos GetServiceConnectionQos
    Qos
    region String
    Region
    secondaryIpsecTunnel String
    Secondary ipsec tunnel
    sourceNat Boolean
    Source nat
    subnets List<String>
    Subnets
    tfid String
    backupSc string
    Backup s c
    bgpPeer GetServiceConnectionBgpPeer
    Bgp peer
    encryptedValues {[key: string]: string}
    Map of sensitive values returned from the API.
    id string
    The UUID of the service connection
    ipsecTunnel string
    Ipsec tunnel
    name string
    The name of the service connection
    natPool string
    Nat pool
    noExportCommunity string
    No export community
    onboardingType string
    Onboarding type
    protocol GetServiceConnectionProtocol
    Protocol
    qos GetServiceConnectionQos
    Qos
    region string
    Region
    secondaryIpsecTunnel string
    Secondary ipsec tunnel
    sourceNat boolean
    Source nat
    subnets string[]
    Subnets
    tfid string
    backup_sc str
    Backup s c
    bgp_peer GetServiceConnectionBgpPeer
    Bgp peer
    encrypted_values Mapping[str, str]
    Map of sensitive values returned from the API.
    id str
    The UUID of the service connection
    ipsec_tunnel str
    Ipsec tunnel
    name str
    The name of the service connection
    nat_pool str
    Nat pool
    no_export_community str
    No export community
    onboarding_type str
    Onboarding type
    protocol GetServiceConnectionProtocol
    Protocol
    qos GetServiceConnectionQos
    Qos
    region str
    Region
    secondary_ipsec_tunnel str
    Secondary ipsec tunnel
    source_nat bool
    Source nat
    subnets Sequence[str]
    Subnets
    tfid str
    backupSc String
    Backup s c
    bgpPeer Property Map
    Bgp peer
    encryptedValues Map<String>
    Map of sensitive values returned from the API.
    id String
    The UUID of the service connection
    ipsecTunnel String
    Ipsec tunnel
    name String
    The name of the service connection
    natPool String
    Nat pool
    noExportCommunity String
    No export community
    onboardingType String
    Onboarding type
    protocol Property Map
    Protocol
    qos Property Map
    Qos
    region String
    Region
    secondaryIpsecTunnel String
    Secondary ipsec tunnel
    sourceNat Boolean
    Source nat
    subnets List<String>
    Subnets
    tfid String

    Supporting Types

    GetServiceConnectionBgpPeer

    LocalIpAddress string
    Local ip address
    LocalIpv6Address string
    Local ipv6 address
    PeerIpAddress string
    Peer ip address
    PeerIpv6Address string
    Peer ipv6 address
    Secret string
    Secret
    LocalIpAddress string
    Local ip address
    LocalIpv6Address string
    Local ipv6 address
    PeerIpAddress string
    Peer ip address
    PeerIpv6Address string
    Peer ipv6 address
    Secret string
    Secret
    localIpAddress String
    Local ip address
    localIpv6Address String
    Local ipv6 address
    peerIpAddress String
    Peer ip address
    peerIpv6Address String
    Peer ipv6 address
    secret String
    Secret
    localIpAddress string
    Local ip address
    localIpv6Address string
    Local ipv6 address
    peerIpAddress string
    Peer ip address
    peerIpv6Address string
    Peer ipv6 address
    secret string
    Secret
    local_ip_address str
    Local ip address
    local_ipv6_address str
    Local ipv6 address
    peer_ip_address str
    Peer ip address
    peer_ipv6_address str
    Peer ipv6 address
    secret str
    Secret
    localIpAddress String
    Local ip address
    localIpv6Address String
    Local ipv6 address
    peerIpAddress String
    Peer ip address
    peerIpv6Address String
    Peer ipv6 address
    secret String
    Secret

    GetServiceConnectionProtocol

    GetServiceConnectionProtocolBgp

    DoNotExportRoutes bool
    Do not export routes
    Enable bool
    Enable
    FastFailover bool
    Fast failover
    LocalIpAddress string
    Local ip address
    OriginateDefaultRoute bool
    Originate default route
    PeerAs string
    Peer as
    PeerIpAddress string
    Peer ip address
    Secret string
    Secret
    SummarizeMobileUserRoutes bool
    Summarize mobile user routes
    DoNotExportRoutes bool
    Do not export routes
    Enable bool
    Enable
    FastFailover bool
    Fast failover
    LocalIpAddress string
    Local ip address
    OriginateDefaultRoute bool
    Originate default route
    PeerAs string
    Peer as
    PeerIpAddress string
    Peer ip address
    Secret string
    Secret
    SummarizeMobileUserRoutes bool
    Summarize mobile user routes
    doNotExportRoutes Boolean
    Do not export routes
    enable Boolean
    Enable
    fastFailover Boolean
    Fast failover
    localIpAddress String
    Local ip address
    originateDefaultRoute Boolean
    Originate default route
    peerAs String
    Peer as
    peerIpAddress String
    Peer ip address
    secret String
    Secret
    summarizeMobileUserRoutes Boolean
    Summarize mobile user routes
    doNotExportRoutes boolean
    Do not export routes
    enable boolean
    Enable
    fastFailover boolean
    Fast failover
    localIpAddress string
    Local ip address
    originateDefaultRoute boolean
    Originate default route
    peerAs string
    Peer as
    peerIpAddress string
    Peer ip address
    secret string
    Secret
    summarizeMobileUserRoutes boolean
    Summarize mobile user routes
    do_not_export_routes bool
    Do not export routes
    enable bool
    Enable
    fast_failover bool
    Fast failover
    local_ip_address str
    Local ip address
    originate_default_route bool
    Originate default route
    peer_as str
    Peer as
    peer_ip_address str
    Peer ip address
    secret str
    Secret
    summarize_mobile_user_routes bool
    Summarize mobile user routes
    doNotExportRoutes Boolean
    Do not export routes
    enable Boolean
    Enable
    fastFailover Boolean
    Fast failover
    localIpAddress String
    Local ip address
    originateDefaultRoute Boolean
    Originate default route
    peerAs String
    Peer as
    peerIpAddress String
    Peer ip address
    secret String
    Secret
    summarizeMobileUserRoutes Boolean
    Summarize mobile user routes

    GetServiceConnectionQos

    Enable bool
    Enable
    QosProfile string
    Qos profile
    Enable bool
    Enable
    QosProfile string
    Qos profile
    enable Boolean
    Enable
    qosProfile String
    Qos profile
    enable boolean
    Enable
    qosProfile string
    Qos profile
    enable bool
    Enable
    qos_profile str
    Qos profile
    enable Boolean
    Enable
    qosProfile String
    Qos profile

    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.1 published on Wednesday, Nov 26, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate