1. Packages
  2. Strata Cloud Manager Provider
  3. API Docs
  4. getLogForwardingProfile
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

    LogForwardingProfile data source

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scm from "@pulumi/scm";
    
    //
    // Data source to retrieve a single SCM Log Forwarding Profile object by its ID.
    //
    // Replace the ID with the UUID of the SCM Log Forwarding Profile you want to find.
    const scmLogForwardingProf = scm.getLogForwardingProfile({
        id: "712dc61d-94ed-45e4-82b7-b2d86669a2bf",
    });
    export const scmLogForwardingProfileDetails = {
        profileId: scmLogForwardingProf.then(scmLogForwardingProf => scmLogForwardingProf.id),
        folder: scmLogForwardingProf.then(scmLogForwardingProf => scmLogForwardingProf.folder),
        name: scmLogForwardingProf.then(scmLogForwardingProf => scmLogForwardingProf.name),
        description: scmLogForwardingProf.then(scmLogForwardingProf => scmLogForwardingProf.description),
    };
    
    import pulumi
    import pulumi_scm as scm
    
    #
    # Data source to retrieve a single SCM Log Forwarding Profile object by its ID.
    #
    # Replace the ID with the UUID of the SCM Log Forwarding Profile you want to find.
    scm_log_forwarding_prof = scm.get_log_forwarding_profile(id="712dc61d-94ed-45e4-82b7-b2d86669a2bf")
    pulumi.export("scmLogForwardingProfileDetails", {
        "profileId": scm_log_forwarding_prof.id,
        "folder": scm_log_forwarding_prof.folder,
        "name": scm_log_forwarding_prof.name,
        "description": scm_log_forwarding_prof.description,
    })
    
    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 source to retrieve a single SCM Log Forwarding Profile object by its ID.
    		//
    		// Replace the ID with the UUID of the SCM Log Forwarding Profile you want to find.
    		scmLogForwardingProf, err := scm.LookupLogForwardingProfile(ctx, &scm.LookupLogForwardingProfileArgs{
    			Id: "712dc61d-94ed-45e4-82b7-b2d86669a2bf",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("scmLogForwardingProfileDetails", pulumi.StringMap{
    			"profileId":   scmLogForwardingProf.Id,
    			"folder":      scmLogForwardingProf.Folder,
    			"name":        scmLogForwardingProf.Name,
    			"description": scmLogForwardingProf.Description,
    		})
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scm = Pulumi.Scm;
    
    return await Deployment.RunAsync(() => 
    {
        //
        // Data source to retrieve a single SCM Log Forwarding Profile object by its ID.
        //
        // Replace the ID with the UUID of the SCM Log Forwarding Profile you want to find.
        var scmLogForwardingProf = Scm.GetLogForwardingProfile.Invoke(new()
        {
            Id = "712dc61d-94ed-45e4-82b7-b2d86669a2bf",
        });
    
        return new Dictionary<string, object?>
        {
            ["scmLogForwardingProfileDetails"] = 
            {
                { "profileId", scmLogForwardingProf.Apply(getLogForwardingProfileResult => getLogForwardingProfileResult.Id) },
                { "folder", scmLogForwardingProf.Apply(getLogForwardingProfileResult => getLogForwardingProfileResult.Folder) },
                { "name", scmLogForwardingProf.Apply(getLogForwardingProfileResult => getLogForwardingProfileResult.Name) },
                { "description", scmLogForwardingProf.Apply(getLogForwardingProfileResult => getLogForwardingProfileResult.Description) },
            },
        };
    });
    
    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.GetLogForwardingProfileArgs;
    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 source to retrieve a single SCM Log Forwarding Profile object by its ID.
            //
            // Replace the ID with the UUID of the SCM Log Forwarding Profile you want to find.
            final var scmLogForwardingProf = ScmFunctions.getLogForwardingProfile(GetLogForwardingProfileArgs.builder()
                .id("712dc61d-94ed-45e4-82b7-b2d86669a2bf")
                .build());
    
            ctx.export("scmLogForwardingProfileDetails", Map.ofEntries(
                Map.entry("profileId", scmLogForwardingProf.id()),
                Map.entry("folder", scmLogForwardingProf.folder()),
                Map.entry("name", scmLogForwardingProf.name()),
                Map.entry("description", scmLogForwardingProf.description())
            ));
        }
    }
    
    variables:
      #
      # Data source to retrieve a single SCM Log Forwarding Profile object by its ID.
      #
    
      # Replace the ID with the UUID of the SCM Log Forwarding Profile you want to find.
      scmLogForwardingProf:
        fn::invoke:
          function: scm:getLogForwardingProfile
          arguments:
            id: 712dc61d-94ed-45e4-82b7-b2d86669a2bf
    outputs:
      # Output the details of the single SCM Log Forwarding Profile object found.
      scmLogForwardingProfileDetails:
        profileId: ${scmLogForwardingProf.id}
        folder: ${scmLogForwardingProf.folder}
        name: ${scmLogForwardingProf.name}
        description: ${scmLogForwardingProf.description}
    

    Using getLogForwardingProfile

    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 getLogForwardingProfile(args: GetLogForwardingProfileArgs, opts?: InvokeOptions): Promise<GetLogForwardingProfileResult>
    function getLogForwardingProfileOutput(args: GetLogForwardingProfileOutputArgs, opts?: InvokeOptions): Output<GetLogForwardingProfileResult>
    def get_log_forwarding_profile(device: Optional[str] = None,
                                   folder: Optional[str] = None,
                                   id: Optional[str] = None,
                                   name: Optional[str] = None,
                                   snippet: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetLogForwardingProfileResult
    def get_log_forwarding_profile_output(device: Optional[pulumi.Input[str]] = None,
                                   folder: Optional[pulumi.Input[str]] = None,
                                   id: Optional[pulumi.Input[str]] = None,
                                   name: Optional[pulumi.Input[str]] = None,
                                   snippet: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetLogForwardingProfileResult]
    func LookupLogForwardingProfile(ctx *Context, args *LookupLogForwardingProfileArgs, opts ...InvokeOption) (*LookupLogForwardingProfileResult, error)
    func LookupLogForwardingProfileOutput(ctx *Context, args *LookupLogForwardingProfileOutputArgs, opts ...InvokeOption) LookupLogForwardingProfileResultOutput

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

    public static class GetLogForwardingProfile 
    {
        public static Task<GetLogForwardingProfileResult> InvokeAsync(GetLogForwardingProfileArgs args, InvokeOptions? opts = null)
        public static Output<GetLogForwardingProfileResult> Invoke(GetLogForwardingProfileInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLogForwardingProfileResult> getLogForwardingProfile(GetLogForwardingProfileArgs args, InvokeOptions options)
    public static Output<GetLogForwardingProfileResult> getLogForwardingProfile(GetLogForwardingProfileArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scm:index/getLogForwardingProfile:getLogForwardingProfile
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getLogForwardingProfile Result

    The following output properties are available:

    Description string
    Device string
    The device in which the resource is defined
    Folder string
    Id string
    The UUID of the log server profile
    MatchLists List<GetLogForwardingProfileMatchList>
    Name string
    Snippet string
    Tfid string
    Description string
    Device string
    The device in which the resource is defined
    Folder string
    Id string
    The UUID of the log server profile
    MatchLists []GetLogForwardingProfileMatchList
    Name string
    Snippet string
    Tfid string
    description String
    device String
    The device in which the resource is defined
    folder String
    id String
    The UUID of the log server profile
    matchLists List<GetLogForwardingProfileMatchList>
    name String
    snippet String
    tfid String
    description string
    device string
    The device in which the resource is defined
    folder string
    id string
    The UUID of the log server profile
    matchLists GetLogForwardingProfileMatchList[]
    name string
    snippet string
    tfid string
    description str
    device str
    The device in which the resource is defined
    folder str
    id str
    The UUID of the log server profile
    match_lists Sequence[GetLogForwardingProfileMatchList]
    name str
    snippet str
    tfid str
    description String
    device String
    The device in which the resource is defined
    folder String
    id String
    The UUID of the log server profile
    matchLists List<Property Map>
    name String
    snippet String
    tfid String

    Supporting Types

    GetLogForwardingProfileMatchList

    ActionDesc string
    Match profile description
    Filter string
    Filter match criteria
    LogType string
    Log type
    Name string
    Name of the match profile
    SendEmails List<string>
    A list of email server profiles
    SendHttps List<string>
    A list of HTTP server profiles
    SendSnmptraps List<string>
    A list of SNMP server profiles
    SendSyslogs List<string>
    A list of syslog server profiles
    ActionDesc string
    Match profile description
    Filter string
    Filter match criteria
    LogType string
    Log type
    Name string
    Name of the match profile
    SendEmails []string
    A list of email server profiles
    SendHttps []string
    A list of HTTP server profiles
    SendSnmptraps []string
    A list of SNMP server profiles
    SendSyslogs []string
    A list of syslog server profiles
    actionDesc String
    Match profile description
    filter String
    Filter match criteria
    logType String
    Log type
    name String
    Name of the match profile
    sendEmails List<String>
    A list of email server profiles
    sendHttps List<String>
    A list of HTTP server profiles
    sendSnmptraps List<String>
    A list of SNMP server profiles
    sendSyslogs List<String>
    A list of syslog server profiles
    actionDesc string
    Match profile description
    filter string
    Filter match criteria
    logType string
    Log type
    name string
    Name of the match profile
    sendEmails string[]
    A list of email server profiles
    sendHttps string[]
    A list of HTTP server profiles
    sendSnmptraps string[]
    A list of SNMP server profiles
    sendSyslogs string[]
    A list of syslog server profiles
    action_desc str
    Match profile description
    filter str
    Filter match criteria
    log_type str
    Log type
    name str
    Name of the match profile
    send_emails Sequence[str]
    A list of email server profiles
    send_https Sequence[str]
    A list of HTTP server profiles
    send_snmptraps Sequence[str]
    A list of SNMP server profiles
    send_syslogs Sequence[str]
    A list of syslog server profiles
    actionDesc String
    Match profile description
    filter String
    Filter match criteria
    logType String
    Log type
    name String
    Name of the match profile
    sendEmails List<String>
    A list of email server profiles
    sendHttps List<String>
    A list of HTTP server profiles
    sendSnmptraps List<String>
    A list of SNMP server profiles
    sendSyslogs List<String>
    A list of syslog server profiles

    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