Strata Cloud Manager v0.3.1 published on Thursday, Mar 13, 2025 by Pulumi
scm.getServiceConnection
Explore with Pulumi AI
Retrieves a config item.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
const example = scm.getServiceConnection({
id: "1234-56-789",
folder: "Service Connections",
});
import pulumi
import pulumi_scm as scm
example = scm.get_service_connection(id="1234-56-789",
folder="Service Connections")
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 {
_, err := scm.LookupServiceConnection(ctx, &scm.LookupServiceConnectionArgs{
Id: "1234-56-789",
Folder: pulumi.StringRef("Service Connections"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
var example = Scm.GetServiceConnection.Invoke(new()
{
Id = "1234-56-789",
Folder = "Service Connections",
});
});
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) {
final var example = ScmFunctions.getServiceConnection(GetServiceConnectionArgs.builder()
.id("1234-56-789")
.folder("Service Connections")
.build());
}
}
variables:
example:
fn::invoke:
function: scm:getServiceConnection
arguments:
id: 1234-56-789
folder: Service Connections
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(folder: Optional[str] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceConnectionResult
def get_service_connection_output(folder: Optional[pulumi.Input[str]] = None,
id: 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:
getServiceConnection Result
The following output properties are available:
- Backup
SC string - The BackupSC param.
- Bgp
Peer GetService Connection Bgp Peer - The BgpPeer param.
- Folder string
- The Folder param. String can either be a specific string(
"Service Connections"
) or match this regex:^[0-9a-zA-Z._\s-]{1,}$
. Default:"Service Connections"
. - Id string
- The Id param.
- Ipsec
Tunnel string - The IpsecTunnel param.
- Name string
- The Name param.
- Nat
Pool string - The NatPool param.
- No
Export stringCommunity - The NoExportCommunity param. String must be one of these:
"Disabled"
,"Enabled-In"
,"Enabled-Out"
,"Enabled-Both"
. - Onboarding
Type string - The OnboardingType param. String must be one of these:
"classic"
. Default:"classic"
. - Protocol
Get
Service Connection Protocol - The Protocol param.
- Qos
Get
Service Connection Qos - The Qos param.
- Region string
- The Region param.
- Secondary
Ipsec stringTunnel - The SecondaryIpsecTunnel param.
- Source
Nat bool - The SourceNat param.
- Subnets List<string>
- The Subnets param.
- Tfid string
- Backup
SC string - The BackupSC param.
- Bgp
Peer GetService Connection Bgp Peer - The BgpPeer param.
- Folder string
- The Folder param. String can either be a specific string(
"Service Connections"
) or match this regex:^[0-9a-zA-Z._\s-]{1,}$
. Default:"Service Connections"
. - Id string
- The Id param.
- Ipsec
Tunnel string - The IpsecTunnel param.
- Name string
- The Name param.
- Nat
Pool string - The NatPool param.
- No
Export stringCommunity - The NoExportCommunity param. String must be one of these:
"Disabled"
,"Enabled-In"
,"Enabled-Out"
,"Enabled-Both"
. - Onboarding
Type string - The OnboardingType param. String must be one of these:
"classic"
. Default:"classic"
. - Protocol
Get
Service Connection Protocol - The Protocol param.
- Qos
Get
Service Connection Qos - The Qos param.
- Region string
- The Region param.
- Secondary
Ipsec stringTunnel - The SecondaryIpsecTunnel param.
- Source
Nat bool - The SourceNat param.
- Subnets []string
- The Subnets param.
- Tfid string
- backup
SC String - The BackupSC param.
- bgp
Peer GetService Connection Bgp Peer - The BgpPeer param.
- folder String
- The Folder param. String can either be a specific string(
"Service Connections"
) or match this regex:^[0-9a-zA-Z._\s-]{1,}$
. Default:"Service Connections"
. - id String
- The Id param.
- ipsec
Tunnel String - The IpsecTunnel param.
- name String
- The Name param.
- nat
Pool String - The NatPool param.
- no
Export StringCommunity - The NoExportCommunity param. String must be one of these:
"Disabled"
,"Enabled-In"
,"Enabled-Out"
,"Enabled-Both"
. - onboarding
Type String - The OnboardingType param. String must be one of these:
"classic"
. Default:"classic"
. - protocol
Get
Service Connection Protocol - The Protocol param.
- qos
Get
Service Connection Qos - The Qos param.
- region String
- The Region param.
- secondary
Ipsec StringTunnel - The SecondaryIpsecTunnel param.
- source
Nat Boolean - The SourceNat param.
- subnets List<String>
- The Subnets param.
- tfid String
- backup
SC string - The BackupSC param.
- bgp
Peer GetService Connection Bgp Peer - The BgpPeer param.
- folder string
- The Folder param. String can either be a specific string(
"Service Connections"
) or match this regex:^[0-9a-zA-Z._\s-]{1,}$
. Default:"Service Connections"
. - id string
- The Id param.
- ipsec
Tunnel string - The IpsecTunnel param.
- name string
- The Name param.
- nat
Pool string - The NatPool param.
- no
Export stringCommunity - The NoExportCommunity param. String must be one of these:
"Disabled"
,"Enabled-In"
,"Enabled-Out"
,"Enabled-Both"
. - onboarding
Type string - The OnboardingType param. String must be one of these:
"classic"
. Default:"classic"
. - protocol
Get
Service Connection Protocol - The Protocol param.
- qos
Get
Service Connection Qos - The Qos param.
- region string
- The Region param.
- secondary
Ipsec stringTunnel - The SecondaryIpsecTunnel param.
- source
Nat boolean - The SourceNat param.
- subnets string[]
- The Subnets param.
- tfid string
- backup_
sc str - The BackupSC param.
- bgp_
peer GetService Connection Bgp Peer - The BgpPeer param.
- folder str
- The Folder param. String can either be a specific string(
"Service Connections"
) or match this regex:^[0-9a-zA-Z._\s-]{1,}$
. Default:"Service Connections"
. - id str
- The Id param.
- ipsec_
tunnel str - The IpsecTunnel param.
- name str
- The Name param.
- nat_
pool str - The NatPool param.
- no_
export_ strcommunity - The NoExportCommunity param. String must be one of these:
"Disabled"
,"Enabled-In"
,"Enabled-Out"
,"Enabled-Both"
. - onboarding_
type str - The OnboardingType param. String must be one of these:
"classic"
. Default:"classic"
. - protocol
Get
Service Connection Protocol - The Protocol param.
- qos
Get
Service Connection Qos - The Qos param.
- region str
- The Region param.
- secondary_
ipsec_ strtunnel - The SecondaryIpsecTunnel param.
- source_
nat bool - The SourceNat param.
- subnets Sequence[str]
- The Subnets param.
- tfid str
- backup
SC String - The BackupSC param.
- bgp
Peer Property Map - The BgpPeer param.
- folder String
- The Folder param. String can either be a specific string(
"Service Connections"
) or match this regex:^[0-9a-zA-Z._\s-]{1,}$
. Default:"Service Connections"
. - id String
- The Id param.
- ipsec
Tunnel String - The IpsecTunnel param.
- name String
- The Name param.
- nat
Pool String - The NatPool param.
- no
Export StringCommunity - The NoExportCommunity param. String must be one of these:
"Disabled"
,"Enabled-In"
,"Enabled-Out"
,"Enabled-Both"
. - onboarding
Type String - The OnboardingType param. String must be one of these:
"classic"
. Default:"classic"
. - protocol Property Map
- The Protocol param.
- qos Property Map
- The Qos param.
- region String
- The Region param.
- secondary
Ipsec StringTunnel - The SecondaryIpsecTunnel param.
- source
Nat Boolean - The SourceNat param.
- subnets List<String>
- The Subnets param.
- tfid String
Supporting Types
GetServiceConnectionBgpPeer
- Local
Ip Address This property is required. string - The LocalIpAddress param.
- Local
Ipv6Address This property is required. string - The LocalIpv6Address param.
- Peer
Ip Address This property is required. string - The PeerIpAddress param.
- Peer
Ipv6Address This property is required. string - The PeerIpv6Address param.
- Same
As Primary This property is required. bool - The SameAsPrimary param.
- Secret
This property is required. string - The Secret param.
- Local
Ip Address This property is required. string - The LocalIpAddress param.
- Local
Ipv6Address This property is required. string - The LocalIpv6Address param.
- Peer
Ip Address This property is required. string - The PeerIpAddress param.
- Peer
Ipv6Address This property is required. string - The PeerIpv6Address param.
- Same
As Primary This property is required. bool - The SameAsPrimary param.
- Secret
This property is required. string - The Secret param.
- local
Ip Address This property is required. String - The LocalIpAddress param.
- local
Ipv6Address This property is required. String - The LocalIpv6Address param.
- peer
Ip Address This property is required. String - The PeerIpAddress param.
- peer
Ipv6Address This property is required. String - The PeerIpv6Address param.
- same
As Primary This property is required. Boolean - The SameAsPrimary param.
- secret
This property is required. String - The Secret param.
- local
Ip Address This property is required. string - The LocalIpAddress param.
- local
Ipv6Address This property is required. string - The LocalIpv6Address param.
- peer
Ip Address This property is required. string - The PeerIpAddress param.
- peer
Ipv6Address This property is required. string - The PeerIpv6Address param.
- same
As Primary This property is required. boolean - The SameAsPrimary param.
- secret
This property is required. string - The Secret param.
- local_
ip_ address This property is required. str - The LocalIpAddress param.
- local_
ipv6_ address This property is required. str - The LocalIpv6Address param.
- peer_
ip_ address This property is required. str - The PeerIpAddress param.
- peer_
ipv6_ address This property is required. str - The PeerIpv6Address param.
- same_
as_ primary This property is required. bool - The SameAsPrimary param.
- secret
This property is required. str - The Secret param.
- local
Ip Address This property is required. String - The LocalIpAddress param.
- local
Ipv6Address This property is required. String - The LocalIpv6Address param.
- peer
Ip Address This property is required. String - The PeerIpAddress param.
- peer
Ipv6Address This property is required. String - The PeerIpv6Address param.
- same
As Primary This property is required. Boolean - The SameAsPrimary param.
- secret
This property is required. String - The Secret param.
GetServiceConnectionProtocol
- Bgp
This property is required. GetService Connection Protocol Bgp - The Bgp param.
- Bgp
This property is required. GetService Connection Protocol Bgp - The Bgp param.
- bgp
This property is required. GetService Connection Protocol Bgp - The Bgp param.
- bgp
This property is required. GetService Connection Protocol Bgp - The Bgp param.
- bgp
This property is required. GetService Connection Protocol Bgp - The Bgp param.
- bgp
This property is required. Property Map - The Bgp param.
GetServiceConnectionProtocolBgp
- Do
Not Export Routes This property is required. bool - The DoNotExportRoutes param.
- Enable
This property is required. bool - The Enable param.
- Fast
Failover This property is required. bool - The FastFailover param.
- Local
Ip Address This property is required. string - The LocalIpAddress param.
- Originate
Default Route This property is required. bool - The OriginateDefaultRoute param.
- Peer
As This property is required. string - The PeerAs param.
- Peer
Ip Address This property is required. string - The PeerIpAddress param.
- Secret
This property is required. string - The Secret param.
- Summarize
Mobile User Routes This property is required. bool - The SummarizeMobileUserRoutes param.
- Do
Not Export Routes This property is required. bool - The DoNotExportRoutes param.
- Enable
This property is required. bool - The Enable param.
- Fast
Failover This property is required. bool - The FastFailover param.
- Local
Ip Address This property is required. string - The LocalIpAddress param.
- Originate
Default Route This property is required. bool - The OriginateDefaultRoute param.
- Peer
As This property is required. string - The PeerAs param.
- Peer
Ip Address This property is required. string - The PeerIpAddress param.
- Secret
This property is required. string - The Secret param.
- Summarize
Mobile User Routes This property is required. bool - The SummarizeMobileUserRoutes param.
- do
Not Export Routes This property is required. Boolean - The DoNotExportRoutes param.
- enable
This property is required. Boolean - The Enable param.
- fast
Failover This property is required. Boolean - The FastFailover param.
- local
Ip Address This property is required. String - The LocalIpAddress param.
- originate
Default Route This property is required. Boolean - The OriginateDefaultRoute param.
- peer
As This property is required. String - The PeerAs param.
- peer
Ip Address This property is required. String - The PeerIpAddress param.
- secret
This property is required. String - The Secret param.
- summarize
Mobile User Routes This property is required. Boolean - The SummarizeMobileUserRoutes param.
- do
Not Export Routes This property is required. boolean - The DoNotExportRoutes param.
- enable
This property is required. boolean - The Enable param.
- fast
Failover This property is required. boolean - The FastFailover param.
- local
Ip Address This property is required. string - The LocalIpAddress param.
- originate
Default Route This property is required. boolean - The OriginateDefaultRoute param.
- peer
As This property is required. string - The PeerAs param.
- peer
Ip Address This property is required. string - The PeerIpAddress param.
- secret
This property is required. string - The Secret param.
- summarize
Mobile User Routes This property is required. boolean - The SummarizeMobileUserRoutes param.
- do_
not_ export_ routes This property is required. bool - The DoNotExportRoutes param.
- enable
This property is required. bool - The Enable param.
- fast_
failover This property is required. bool - The FastFailover param.
- local_
ip_ address This property is required. str - The LocalIpAddress param.
- originate_
default_ route This property is required. bool - The OriginateDefaultRoute param.
- peer_
as This property is required. str - The PeerAs param.
- peer_
ip_ address This property is required. str - The PeerIpAddress param.
- secret
This property is required. str - The Secret param.
- summarize_
mobile_ user_ routes This property is required. bool - The SummarizeMobileUserRoutes param.
- do
Not Export Routes This property is required. Boolean - The DoNotExportRoutes param.
- enable
This property is required. Boolean - The Enable param.
- fast
Failover This property is required. Boolean - The FastFailover param.
- local
Ip Address This property is required. String - The LocalIpAddress param.
- originate
Default Route This property is required. Boolean - The OriginateDefaultRoute param.
- peer
As This property is required. String - The PeerAs param.
- peer
Ip Address This property is required. String - The PeerIpAddress param.
- secret
This property is required. String - The Secret param.
- summarize
Mobile User Routes This property is required. Boolean - The SummarizeMobileUserRoutes param.
GetServiceConnectionQos
- Enable
This property is required. bool - The Enable param.
- Qos
Profile This property is required. string - The QosProfile param.
- Enable
This property is required. bool - The Enable param.
- Qos
Profile This property is required. string - The QosProfile param.
- enable
This property is required. Boolean - The Enable param.
- qos
Profile This property is required. String - The QosProfile param.
- enable
This property is required. boolean - The Enable param.
- qos
Profile This property is required. string - The QosProfile param.
- enable
This property is required. bool - The Enable param.
- qos_
profile This property is required. str - The QosProfile param.
- enable
This property is required. Boolean - The Enable param.
- qos
Profile This property is required. String - The QosProfile param.
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scm
Terraform Provider.