1. Packages
  2. Scm Provider
  3. API Docs
  4. getSecurityRule
Strata Cloud Manager v0.1.6 published on Wednesday, Oct 16, 2024 by Pulumi

scm.getSecurityRule

Explore with Pulumi AI

scm logo
Strata Cloud Manager v0.1.6 published on Wednesday, Oct 16, 2024 by Pulumi

    Retrieves a config item.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scm from "@pulumi/scm";
    
    const example = scm.getSecurityRule({
        id: "1234-56-789",
    });
    
    import pulumi
    import pulumi_scm as scm
    
    example = scm.get_security_rule(id="1234-56-789")
    
    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.LookupSecurityRule(ctx, &scm.LookupSecurityRuleArgs{
    			Id: "1234-56-789",
    		}, 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.GetSecurityRule.Invoke(new()
        {
            Id = "1234-56-789",
        });
    
    });
    
    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.GetSecurityRuleArgs;
    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.getSecurityRule(GetSecurityRuleArgs.builder()
                .id("1234-56-789")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: scm:getSecurityRule
          Arguments:
            id: 1234-56-789
    

    Using getSecurityRule

    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 getSecurityRule(args: GetSecurityRuleArgs, opts?: InvokeOptions): Promise<GetSecurityRuleResult>
    function getSecurityRuleOutput(args: GetSecurityRuleOutputArgs, opts?: InvokeOptions): Output<GetSecurityRuleResult>
    def get_security_rule(id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetSecurityRuleResult
    def get_security_rule_output(id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetSecurityRuleResult]
    func LookupSecurityRule(ctx *Context, args *LookupSecurityRuleArgs, opts ...InvokeOption) (*LookupSecurityRuleResult, error)
    func LookupSecurityRuleOutput(ctx *Context, args *LookupSecurityRuleOutputArgs, opts ...InvokeOption) LookupSecurityRuleResultOutput

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

    public static class GetSecurityRule 
    {
        public static Task<GetSecurityRuleResult> InvokeAsync(GetSecurityRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetSecurityRuleResult> Invoke(GetSecurityRuleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecurityRuleResult> getSecurityRule(GetSecurityRuleArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: scm:index/getSecurityRule:getSecurityRule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The Id param.
    Id string
    The Id param.
    id String
    The Id param.
    id string
    The Id param.
    id str
    The Id param.
    id String
    The Id param.

    getSecurityRule Result

    The following output properties are available:

    Action string
    The action to be taken when the rule is matched. String must be one of these: "allow", "deny", "drop", "reset-client", "reset-server", "reset-both".
    Applications List<string>
    The application(s) being accessed.
    Categories List<string>
    The URL categories being accessed.
    Description string
    The description of the security rule.
    DestinationHips List<string>
    The destination Host Integrity Profile(s).
    Destinations List<string>
    The destination address(es).
    Disabled bool
    The state of the security rule. Default: false.
    Froms List<string>
    The source security zone(s).
    Id string
    The Id param.
    LogSetting string
    The external log forwarding profile.
    Name string
    The name of the security rule.
    NegateDestination bool
    Negate the destination addresses(es). Default: false.
    NegateSource bool
    Negate the source address(es). Default: false.
    ProfileSetting GetSecurityRuleProfileSetting
    The security profile object.
    Services List<string>
    The service(s) being accessed.
    SourceHips List<string>
    The source Host Integrity Profile(s).
    SourceUsers List<string>
    The source user(s) or group(s).
    Sources List<string>
    The source address(es).
    Tags List<string>
    The tags associated with the security rule.
    Tfid string
    Tos List<string>
    The destination security zone(s).
    Action string
    The action to be taken when the rule is matched. String must be one of these: "allow", "deny", "drop", "reset-client", "reset-server", "reset-both".
    Applications []string
    The application(s) being accessed.
    Categories []string
    The URL categories being accessed.
    Description string
    The description of the security rule.
    DestinationHips []string
    The destination Host Integrity Profile(s).
    Destinations []string
    The destination address(es).
    Disabled bool
    The state of the security rule. Default: false.
    Froms []string
    The source security zone(s).
    Id string
    The Id param.
    LogSetting string
    The external log forwarding profile.
    Name string
    The name of the security rule.
    NegateDestination bool
    Negate the destination addresses(es). Default: false.
    NegateSource bool
    Negate the source address(es). Default: false.
    ProfileSetting GetSecurityRuleProfileSetting
    The security profile object.
    Services []string
    The service(s) being accessed.
    SourceHips []string
    The source Host Integrity Profile(s).
    SourceUsers []string
    The source user(s) or group(s).
    Sources []string
    The source address(es).
    Tags []string
    The tags associated with the security rule.
    Tfid string
    Tos []string
    The destination security zone(s).
    action String
    The action to be taken when the rule is matched. String must be one of these: "allow", "deny", "drop", "reset-client", "reset-server", "reset-both".
    applications List<String>
    The application(s) being accessed.
    categories List<String>
    The URL categories being accessed.
    description String
    The description of the security rule.
    destinationHips List<String>
    The destination Host Integrity Profile(s).
    destinations List<String>
    The destination address(es).
    disabled Boolean
    The state of the security rule. Default: false.
    froms List<String>
    The source security zone(s).
    id String
    The Id param.
    logSetting String
    The external log forwarding profile.
    name String
    The name of the security rule.
    negateDestination Boolean
    Negate the destination addresses(es). Default: false.
    negateSource Boolean
    Negate the source address(es). Default: false.
    profileSetting GetSecurityRuleProfileSetting
    The security profile object.
    services List<String>
    The service(s) being accessed.
    sourceHips List<String>
    The source Host Integrity Profile(s).
    sourceUsers List<String>
    The source user(s) or group(s).
    sources List<String>
    The source address(es).
    tags List<String>
    The tags associated with the security rule.
    tfid String
    tos List<String>
    The destination security zone(s).
    action string
    The action to be taken when the rule is matched. String must be one of these: "allow", "deny", "drop", "reset-client", "reset-server", "reset-both".
    applications string[]
    The application(s) being accessed.
    categories string[]
    The URL categories being accessed.
    description string
    The description of the security rule.
    destinationHips string[]
    The destination Host Integrity Profile(s).
    destinations string[]
    The destination address(es).
    disabled boolean
    The state of the security rule. Default: false.
    froms string[]
    The source security zone(s).
    id string
    The Id param.
    logSetting string
    The external log forwarding profile.
    name string
    The name of the security rule.
    negateDestination boolean
    Negate the destination addresses(es). Default: false.
    negateSource boolean
    Negate the source address(es). Default: false.
    profileSetting GetSecurityRuleProfileSetting
    The security profile object.
    services string[]
    The service(s) being accessed.
    sourceHips string[]
    The source Host Integrity Profile(s).
    sourceUsers string[]
    The source user(s) or group(s).
    sources string[]
    The source address(es).
    tags string[]
    The tags associated with the security rule.
    tfid string
    tos string[]
    The destination security zone(s).
    action str
    The action to be taken when the rule is matched. String must be one of these: "allow", "deny", "drop", "reset-client", "reset-server", "reset-both".
    applications Sequence[str]
    The application(s) being accessed.
    categories Sequence[str]
    The URL categories being accessed.
    description str
    The description of the security rule.
    destination_hips Sequence[str]
    The destination Host Integrity Profile(s).
    destinations Sequence[str]
    The destination address(es).
    disabled bool
    The state of the security rule. Default: false.
    froms Sequence[str]
    The source security zone(s).
    id str
    The Id param.
    log_setting str
    The external log forwarding profile.
    name str
    The name of the security rule.
    negate_destination bool
    Negate the destination addresses(es). Default: false.
    negate_source bool
    Negate the source address(es). Default: false.
    profile_setting GetSecurityRuleProfileSetting
    The security profile object.
    services Sequence[str]
    The service(s) being accessed.
    source_hips Sequence[str]
    The source Host Integrity Profile(s).
    source_users Sequence[str]
    The source user(s) or group(s).
    sources Sequence[str]
    The source address(es).
    tags Sequence[str]
    The tags associated with the security rule.
    tfid str
    tos Sequence[str]
    The destination security zone(s).
    action String
    The action to be taken when the rule is matched. String must be one of these: "allow", "deny", "drop", "reset-client", "reset-server", "reset-both".
    applications List<String>
    The application(s) being accessed.
    categories List<String>
    The URL categories being accessed.
    description String
    The description of the security rule.
    destinationHips List<String>
    The destination Host Integrity Profile(s).
    destinations List<String>
    The destination address(es).
    disabled Boolean
    The state of the security rule. Default: false.
    froms List<String>
    The source security zone(s).
    id String
    The Id param.
    logSetting String
    The external log forwarding profile.
    name String
    The name of the security rule.
    negateDestination Boolean
    Negate the destination addresses(es). Default: false.
    negateSource Boolean
    Negate the source address(es). Default: false.
    profileSetting Property Map
    The security profile object.
    services List<String>
    The service(s) being accessed.
    sourceHips List<String>
    The source Host Integrity Profile(s).
    sourceUsers List<String>
    The source user(s) or group(s).
    sources List<String>
    The source address(es).
    tags List<String>
    The tags associated with the security rule.
    tfid String
    tos List<String>
    The destination security zone(s).

    Supporting Types

    GetSecurityRuleProfileSetting

    Groups List<string>
    The security profile group.
    Groups []string
    The security profile group.
    groups List<String>
    The security profile group.
    groups string[]
    The security profile group.
    groups Sequence[str]
    The security profile group.
    groups List<String>
    The security profile group.

    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 v0.1.6 published on Wednesday, Oct 16, 2024 by Pulumi