1. Registry
  2. Packages
  3. Strata Cloud Manager Provider
  4. API Docs
  5. getAuthenticationRule
Viewing docs for Strata Cloud Manager v1.2.0
published on Wednesday, Oct 7, 2026 by Pulumi
scm logo Strata Cloud Manager
Viewing docs for Strata Cloud Manager v1.2.0
published on Wednesday, Oct 7, 2026 by Pulumi

    AuthenticationRule data source

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scm from "@pulumi/scm";
    
    const ruleData = scm.getAuthenticationRule({
        id: "1f1e08af-fe7b-4c36-882a-411101ad36d7",
    });
    export const fetchedRuleId = ruleData.then(ruleData => ruleData.id);
    export const fetchedRuleData = ruleData;
    
    import pulumi
    import pulumi_scm as scm
    
    rule_data = scm.get_authentication_rule(id="1f1e08af-fe7b-4c36-882a-411101ad36d7")
    pulumi.export("fetchedRuleId", rule_data.id)
    pulumi.export("fetchedRuleData", rule_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 {
    		ruleData, err := scm.GetAuthenticationRule(ctx, &scm.LookupAuthenticationRuleArgs{
    			Id: "1f1e08af-fe7b-4c36-882a-411101ad36d7",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("fetchedRuleId", ruleData.Id)
    		ctx.Export("fetchedRuleData", ruleData)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scm = Pulumi.Scm;
    
    return await Deployment.RunAsync(() => 
    {
        var ruleData = Scm.GetAuthenticationRule.Invoke(new()
        {
            Id = "1f1e08af-fe7b-4c36-882a-411101ad36d7",
        });
    
        return new Dictionary<string, object?>
        {
            ["fetchedRuleId"] = ruleData.Apply(getAuthenticationRuleResult => getAuthenticationRuleResult.Id),
            ["fetchedRuleData"] = ruleData,
        };
    });
    
    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.GetAuthenticationRuleArgs;
    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) {
            final var ruleData = ScmFunctions.getAuthenticationRule(GetAuthenticationRuleArgs.builder()
                .id("1f1e08af-fe7b-4c36-882a-411101ad36d7")
                .build());
    
            ctx.export("fetchedRuleId", ruleData.id());
            ctx.export("fetchedRuleData", ruleData);
        }
    }
    
    variables:
      ruleData:
        fn::invoke:
          function: scm:getAuthenticationRule
          arguments:
            id: 1f1e08af-fe7b-4c36-882a-411101ad36d7
    outputs:
      fetchedRuleId: ${ruleData.id}
      fetchedRuleData: ${ruleData}
    
    pulumi {
      required_providers {
        scm = {
          source = "pulumi/scm"
        }
      }
    }
    
    data "scm_getauthenticationrule" "ruleData" {
      id = "1f1e08af-fe7b-4c36-882a-411101ad36d7"
    }
    
    output "fetchedRuleId" {
      value = data.scm_getauthenticationrule.ruleData.id
    }
    output "fetchedRuleData" {
      value = data.scm_getauthenticationrule.ruleData
    }
    

    Using getAuthenticationRule

    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 getAuthenticationRule(args: GetAuthenticationRuleArgs, opts?: InvokeOptions): Promise<GetAuthenticationRuleResult>
    function getAuthenticationRuleOutput(args: GetAuthenticationRuleOutputArgs, opts?: InvokeOutputOptions): Output<GetAuthenticationRuleResult>
    def get_authentication_rule(device: Optional[str] = None,
                                folder: Optional[str] = None,
                                id: Optional[str] = None,
                                name: Optional[str] = None,
                                snippet: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetAuthenticationRuleResult
    def get_authentication_rule_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[GetAuthenticationRuleResult]
    func LookupAuthenticationRule(ctx *Context, args *LookupAuthenticationRuleArgs, opts ...InvokeOption) (*LookupAuthenticationRuleResult, error)
    func LookupAuthenticationRuleOutput(ctx *Context, args *LookupAuthenticationRuleOutputArgs, opts ...InvokeOption) LookupAuthenticationRuleResultOutput

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

    public static class GetAuthenticationRule 
    {
        public static Task<GetAuthenticationRuleResult> InvokeAsync(GetAuthenticationRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetAuthenticationRuleResult> Invoke(GetAuthenticationRuleInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetAuthenticationRuleResult> Invoke(GetAuthenticationRuleInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetAuthenticationRuleResult> getAuthenticationRule(GetAuthenticationRuleArgs args, InvokeOptions options)
    public static Output<GetAuthenticationRuleResult> getAuthenticationRule(GetAuthenticationRuleArgs args, InvokeOptions options)
    public static Output<GetAuthenticationRuleResult> getAuthenticationRule(GetAuthenticationRuleArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: scm:index/getAuthenticationRule:getAuthenticationRule
      arguments:
        # arguments dictionary
    data "scm_get_authentication_rule" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    The UUID of the authentication rule
    Device string
    Device
    Folder string
    Folder
    Name string
    The name of the authentication rule
    Snippet string
    Snippet
    Id string
    The UUID of the authentication rule
    Device string
    Device
    Folder string
    Folder
    Name string
    The name of the authentication rule
    Snippet string
    Snippet
    id string
    The UUID of the authentication rule
    device string
    Device
    folder string
    Folder
    name string
    The name of the authentication rule
    snippet string
    Snippet
    id String
    The UUID of the authentication rule
    device String
    Device
    folder String
    Folder
    name String
    The name of the authentication rule
    snippet String
    Snippet
    id string
    The UUID of the authentication rule
    device string
    Device
    folder string
    Folder
    name string
    The name of the authentication rule
    snippet string
    Snippet
    id str
    The UUID of the authentication rule
    device str
    Device
    folder str
    Folder
    name str
    The name of the authentication rule
    snippet str
    Snippet
    id String
    The UUID of the authentication rule
    device String
    Device
    folder String
    Folder
    name String
    The name of the authentication rule
    snippet String
    Snippet

    getAuthenticationRule Result

    The following output properties are available:

    AuthenticationEnforcement string
    The authentication profile name
    Categories List<string>
    The destination URL categories
    Description string
    The description of the authentication rule
    DestinationHips List<string>
    The destination Host Integrity Profile (HIP)
    Destinations List<string>
    The destination addresses
    Device string
    Device
    Disabled bool
    Is the authentication rule disabled?
    Folder string
    Folder
    Froms List<string>
    The source security zones
    GroupTag string
    Group tag
    HipProfiles List<string>
    The source Host Integrity Profile (HIP)
    Id string
    The UUID of the authentication rule
    LogAuthenticationTimeout bool
    Log authentication timeouts?
    LogSetting string
    The log forwarding profile name
    Name string
    The name of the authentication rule
    NegateDestination bool
    Are the destination addresses negated?
    NegateSource bool
    Are the source addresses negated?
    Position string
    The relative position of the rule. Possible values are pre and post.
    RelativePosition string
    Relative positioning rule. String must be one of these: "before", "after", "top", "bottom". If not specified, rule is created at the bottom of the ruleset.
    Services List<string>
    The destination ports
    Snippet string
    Snippet
    SourceHips List<string>
    The source Host Integrity Profile (HIP)
    SourceUsers List<string>
    The source users
    Sources List<string>
    The source addresses
    Tags List<string>
    The authentication rule tags
    TargetRule string
    UUID of the rule to position this rule relative to. Required when relativePosition is "before" or "after".
    Tfid string
    The Terraform ID.
    Timeout int
    The authentication session timeout (seconds)
    Tos List<string>
    The destination security zones
    AuthenticationEnforcement string
    The authentication profile name
    Categories []string
    The destination URL categories
    Description string
    The description of the authentication rule
    DestinationHips []string
    The destination Host Integrity Profile (HIP)
    Destinations []string
    The destination addresses
    Device string
    Device
    Disabled bool
    Is the authentication rule disabled?
    Folder string
    Folder
    Froms []string
    The source security zones
    GroupTag string
    Group tag
    HipProfiles []string
    The source Host Integrity Profile (HIP)
    Id string
    The UUID of the authentication rule
    LogAuthenticationTimeout bool
    Log authentication timeouts?
    LogSetting string
    The log forwarding profile name
    Name string
    The name of the authentication rule
    NegateDestination bool
    Are the destination addresses negated?
    NegateSource bool
    Are the source addresses negated?
    Position string
    The relative position of the rule. Possible values are pre and post.
    RelativePosition string
    Relative positioning rule. String must be one of these: "before", "after", "top", "bottom". If not specified, rule is created at the bottom of the ruleset.
    Services []string
    The destination ports
    Snippet string
    Snippet
    SourceHips []string
    The source Host Integrity Profile (HIP)
    SourceUsers []string
    The source users
    Sources []string
    The source addresses
    Tags []string
    The authentication rule tags
    TargetRule string
    UUID of the rule to position this rule relative to. Required when relativePosition is "before" or "after".
    Tfid string
    The Terraform ID.
    Timeout int
    The authentication session timeout (seconds)
    Tos []string
    The destination security zones
    authentication_enforcement string
    The authentication profile name
    categories list(string)
    The destination URL categories
    description string
    The description of the authentication rule
    destination_hips list(string)
    The destination Host Integrity Profile (HIP)
    destinations list(string)
    The destination addresses
    device string
    Device
    disabled bool
    Is the authentication rule disabled?
    folder string
    Folder
    froms list(string)
    The source security zones
    group_tag string
    Group tag
    hip_profiles list(string)
    The source Host Integrity Profile (HIP)
    id string
    The UUID of the authentication rule
    log_authentication_timeout bool
    Log authentication timeouts?
    log_setting string
    The log forwarding profile name
    name string
    The name of the authentication rule
    negate_destination bool
    Are the destination addresses negated?
    negate_source bool
    Are the source addresses negated?
    position string
    The relative position of the rule. Possible values are pre and post.
    relative_position string
    Relative positioning rule. String must be one of these: "before", "after", "top", "bottom". If not specified, rule is created at the bottom of the ruleset.
    services list(string)
    The destination ports
    snippet string
    Snippet
    source_hips list(string)
    The source Host Integrity Profile (HIP)
    source_users list(string)
    The source users
    sources list(string)
    The source addresses
    tags list(string)
    The authentication rule tags
    target_rule string
    UUID of the rule to position this rule relative to. Required when relativePosition is "before" or "after".
    tfid string
    The Terraform ID.
    timeout number
    The authentication session timeout (seconds)
    tos list(string)
    The destination security zones
    authenticationEnforcement String
    The authentication profile name
    categories List<String>
    The destination URL categories
    description String
    The description of the authentication rule
    destinationHips List<String>
    The destination Host Integrity Profile (HIP)
    destinations List<String>
    The destination addresses
    device String
    Device
    disabled Boolean
    Is the authentication rule disabled?
    folder String
    Folder
    froms List<String>
    The source security zones
    groupTag String
    Group tag
    hipProfiles List<String>
    The source Host Integrity Profile (HIP)
    id String
    The UUID of the authentication rule
    logAuthenticationTimeout Boolean
    Log authentication timeouts?
    logSetting String
    The log forwarding profile name
    name String
    The name of the authentication rule
    negateDestination Boolean
    Are the destination addresses negated?
    negateSource Boolean
    Are the source addresses negated?
    position String
    The relative position of the rule. Possible values are pre and post.
    relativePosition String
    Relative positioning rule. String must be one of these: "before", "after", "top", "bottom". If not specified, rule is created at the bottom of the ruleset.
    services List<String>
    The destination ports
    snippet String
    Snippet
    sourceHips List<String>
    The source Host Integrity Profile (HIP)
    sourceUsers List<String>
    The source users
    sources List<String>
    The source addresses
    tags List<String>
    The authentication rule tags
    targetRule String
    UUID of the rule to position this rule relative to. Required when relativePosition is "before" or "after".
    tfid String
    The Terraform ID.
    timeout Integer
    The authentication session timeout (seconds)
    tos List<String>
    The destination security zones
    authenticationEnforcement string
    The authentication profile name
    categories string[]
    The destination URL categories
    description string
    The description of the authentication rule
    destinationHips string[]
    The destination Host Integrity Profile (HIP)
    destinations string[]
    The destination addresses
    device string
    Device
    disabled boolean
    Is the authentication rule disabled?
    folder string
    Folder
    froms string[]
    The source security zones
    groupTag string
    Group tag
    hipProfiles string[]
    The source Host Integrity Profile (HIP)
    id string
    The UUID of the authentication rule
    logAuthenticationTimeout boolean
    Log authentication timeouts?
    logSetting string
    The log forwarding profile name
    name string
    The name of the authentication rule
    negateDestination boolean
    Are the destination addresses negated?
    negateSource boolean
    Are the source addresses negated?
    position string
    The relative position of the rule. Possible values are pre and post.
    relativePosition string
    Relative positioning rule. String must be one of these: "before", "after", "top", "bottom". If not specified, rule is created at the bottom of the ruleset.
    services string[]
    The destination ports
    snippet string
    Snippet
    sourceHips string[]
    The source Host Integrity Profile (HIP)
    sourceUsers string[]
    The source users
    sources string[]
    The source addresses
    tags string[]
    The authentication rule tags
    targetRule string
    UUID of the rule to position this rule relative to. Required when relativePosition is "before" or "after".
    tfid string
    The Terraform ID.
    timeout number
    The authentication session timeout (seconds)
    tos string[]
    The destination security zones
    authentication_enforcement str
    The authentication profile name
    categories Sequence[str]
    The destination URL categories
    description str
    The description of the authentication rule
    destination_hips Sequence[str]
    The destination Host Integrity Profile (HIP)
    destinations Sequence[str]
    The destination addresses
    device str
    Device
    disabled bool
    Is the authentication rule disabled?
    folder str
    Folder
    froms Sequence[str]
    The source security zones
    group_tag str
    Group tag
    hip_profiles Sequence[str]
    The source Host Integrity Profile (HIP)
    id str
    The UUID of the authentication rule
    log_authentication_timeout bool
    Log authentication timeouts?
    log_setting str
    The log forwarding profile name
    name str
    The name of the authentication rule
    negate_destination bool
    Are the destination addresses negated?
    negate_source bool
    Are the source addresses negated?
    position str
    The relative position of the rule. Possible values are pre and post.
    relative_position str
    Relative positioning rule. String must be one of these: "before", "after", "top", "bottom". If not specified, rule is created at the bottom of the ruleset.
    services Sequence[str]
    The destination ports
    snippet str
    Snippet
    source_hips Sequence[str]
    The source Host Integrity Profile (HIP)
    source_users Sequence[str]
    The source users
    sources Sequence[str]
    The source addresses
    tags Sequence[str]
    The authentication rule tags
    target_rule str
    UUID of the rule to position this rule relative to. Required when relativePosition is "before" or "after".
    tfid str
    The Terraform ID.
    timeout int
    The authentication session timeout (seconds)
    tos Sequence[str]
    The destination security zones
    authenticationEnforcement String
    The authentication profile name
    categories List<String>
    The destination URL categories
    description String
    The description of the authentication rule
    destinationHips List<String>
    The destination Host Integrity Profile (HIP)
    destinations List<String>
    The destination addresses
    device String
    Device
    disabled Boolean
    Is the authentication rule disabled?
    folder String
    Folder
    froms List<String>
    The source security zones
    groupTag String
    Group tag
    hipProfiles List<String>
    The source Host Integrity Profile (HIP)
    id String
    The UUID of the authentication rule
    logAuthenticationTimeout Boolean
    Log authentication timeouts?
    logSetting String
    The log forwarding profile name
    name String
    The name of the authentication rule
    negateDestination Boolean
    Are the destination addresses negated?
    negateSource Boolean
    Are the source addresses negated?
    position String
    The relative position of the rule. Possible values are pre and post.
    relativePosition String
    Relative positioning rule. String must be one of these: "before", "after", "top", "bottom". If not specified, rule is created at the bottom of the ruleset.
    services List<String>
    The destination ports
    snippet String
    Snippet
    sourceHips List<String>
    The source Host Integrity Profile (HIP)
    sourceUsers List<String>
    The source users
    sources List<String>
    The source addresses
    tags List<String>
    The authentication rule tags
    targetRule String
    UUID of the rule to position this rule relative to. Required when relativePosition is "before" or "after".
    tfid String
    The Terraform ID.
    timeout Number
    The authentication session timeout (seconds)
    tos List<String>
    The destination security zones

    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
    Viewing docs for Strata Cloud Manager v1.2.0
    published on Wednesday, Oct 7, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial