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

    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.LookupAuthenticationRule(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.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 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}
    

    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?: InvokeOptions): Output<GetAuthenticationRuleResult>
    def get_authentication_rule(id: Optional[str] = None,
                                name: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetAuthenticationRuleResult
    def get_authentication_rule_output(id: Optional[pulumi.Input[str]] = None,
                                name: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = 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 CompletableFuture<GetAuthenticationRuleResult> getAuthenticationRule(GetAuthenticationRuleArgs args, InvokeOptions options)
    public static Output<GetAuthenticationRuleResult> getAuthenticationRule(GetAuthenticationRuleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scm:index/getAuthenticationRule:getAuthenticationRule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The UUID of the authentication rule
    Name string
    The name of the authentication rule
    Id string
    The UUID of the authentication rule
    Name string
    The name of the authentication rule
    id String
    The UUID of the authentication rule
    name String
    The name of the authentication rule
    id string
    The UUID of the authentication rule
    name string
    The name of the authentication rule
    id str
    The UUID of the authentication rule
    name str
    The name of the authentication rule
    id String
    The UUID of the authentication rule
    name String
    The name of the authentication rule

    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
    Folder string
    Froms List<string>
    GroupTag string
    HipProfiles List<string>
    Id string
    The UUID of the authentication rule
    LogAuthenticationTimeout bool
    LogSetting string
    Name string
    The name of the authentication rule
    NegateDestination bool
    NegateSource bool
    Position string
    RelativePosition string
    Services List<string>
    Snippet string
    SourceHips List<string>
    SourceUsers List<string>
    Sources List<string>
    Tags List<string>
    TargetRule string
    Tfid string
    Timeout int
    Tos List<string>
    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
    Folder string
    Froms []string
    GroupTag string
    HipProfiles []string
    Id string
    The UUID of the authentication rule
    LogAuthenticationTimeout bool
    LogSetting string
    Name string
    The name of the authentication rule
    NegateDestination bool
    NegateSource bool
    Position string
    RelativePosition string
    Services []string
    Snippet string
    SourceHips []string
    SourceUsers []string
    Sources []string
    Tags []string
    TargetRule string
    Tfid string
    Timeout int
    Tos []string
    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
    folder String
    froms List<String>
    groupTag String
    hipProfiles List<String>
    id String
    The UUID of the authentication rule
    logAuthenticationTimeout Boolean
    logSetting String
    name String
    The name of the authentication rule
    negateDestination Boolean
    negateSource Boolean
    position String
    relativePosition String
    services List<String>
    snippet String
    sourceHips List<String>
    sourceUsers List<String>
    sources List<String>
    tags List<String>
    targetRule String
    tfid String
    timeout Integer
    tos List<String>
    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
    folder string
    froms string[]
    groupTag string
    hipProfiles string[]
    id string
    The UUID of the authentication rule
    logAuthenticationTimeout boolean
    logSetting string
    name string
    The name of the authentication rule
    negateDestination boolean
    negateSource boolean
    position string
    relativePosition string
    services string[]
    snippet string
    sourceHips string[]
    sourceUsers string[]
    sources string[]
    tags string[]
    targetRule string
    tfid string
    timeout number
    tos string[]
    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
    folder str
    froms Sequence[str]
    group_tag str
    hip_profiles Sequence[str]
    id str
    The UUID of the authentication rule
    log_authentication_timeout bool
    log_setting str
    name str
    The name of the authentication rule
    negate_destination bool
    negate_source bool
    position str
    relative_position str
    services Sequence[str]
    snippet str
    source_hips Sequence[str]
    source_users Sequence[str]
    sources Sequence[str]
    tags Sequence[str]
    target_rule str
    tfid str
    timeout int
    tos Sequence[str]
    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
    folder String
    froms List<String>
    groupTag String
    hipProfiles List<String>
    id String
    The UUID of the authentication rule
    logAuthenticationTimeout Boolean
    logSetting String
    name String
    The name of the authentication rule
    negateDestination Boolean
    negateSource Boolean
    position String
    relativePosition String
    services List<String>
    snippet String
    sourceHips List<String>
    sourceUsers List<String>
    sources List<String>
    tags List<String>
    targetRule String
    tfid String
    timeout Number
    tos List<String>

    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