1. Packages
  2. Checkpoint Provider
  3. API Docs
  4. getManagementMobileAccessProfileRule
checkpoint 2.9.0 published on Monday, Apr 14, 2025 by checkpointsw

checkpoint.getManagementMobileAccessProfileRule

Explore with Pulumi AI

checkpoint logo
checkpoint 2.9.0 published on Monday, Apr 14, 2025 by checkpointsw

    Use this data source to get information on an existing Check Point Mobile Access Profile Rule.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as checkpoint from "@pulumi/checkpoint";
    
    const example = new checkpoint.ManagementMobileAccessProfileRule("example", {
        mobileProfile: "Default_Profile",
        position: {
            top: "top",
        },
        userGroups: ["my_group"],
    });
    const data = checkpoint.getManagementMobileAccessProfileRuleOutput({
        name: example.name,
    });
    
    import pulumi
    import pulumi_checkpoint as checkpoint
    
    example = checkpoint.ManagementMobileAccessProfileRule("example",
        mobile_profile="Default_Profile",
        position={
            "top": "top",
        },
        user_groups=["my_group"])
    data = checkpoint.get_management_mobile_access_profile_rule_output(name=example.name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/checkpoint/v2/checkpoint"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := checkpoint.NewManagementMobileAccessProfileRule(ctx, "example", &checkpoint.ManagementMobileAccessProfileRuleArgs{
    			MobileProfile: pulumi.String("Default_Profile"),
    			Position: pulumi.StringMap{
    				"top": pulumi.String("top"),
    			},
    			UserGroups: pulumi.StringArray{
    				pulumi.String("my_group"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_ = checkpoint.LookupManagementMobileAccessProfileRuleOutput(ctx, checkpoint.GetManagementMobileAccessProfileRuleOutputArgs{
    			Name: example.Name,
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Checkpoint = Pulumi.Checkpoint;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Checkpoint.ManagementMobileAccessProfileRule("example", new()
        {
            MobileProfile = "Default_Profile",
            Position = 
            {
                { "top", "top" },
            },
            UserGroups = new[]
            {
                "my_group",
            },
        });
    
        var data = Checkpoint.GetManagementMobileAccessProfileRule.Invoke(new()
        {
            Name = example.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.checkpoint.ManagementMobileAccessProfileRule;
    import com.pulumi.checkpoint.ManagementMobileAccessProfileRuleArgs;
    import com.pulumi.checkpoint.CheckpointFunctions;
    import com.pulumi.checkpoint.inputs.GetManagementMobileAccessProfileRuleArgs;
    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) {
            var example = new ManagementMobileAccessProfileRule("example", ManagementMobileAccessProfileRuleArgs.builder()
                .mobileProfile("Default_Profile")
                .position(Map.of("top", "top"))
                .userGroups("my_group")
                .build());
    
            final var data = CheckpointFunctions.getManagementMobileAccessProfileRule(GetManagementMobileAccessProfileRuleArgs.builder()
                .name(example.name())
                .build());
    
        }
    }
    
    resources:
      example:
        type: checkpoint:ManagementMobileAccessProfileRule
        properties:
          mobileProfile: Default_Profile
          position:
            top: top
          userGroups:
            - my_group
    variables:
      data:
        fn::invoke:
          function: checkpoint:getManagementMobileAccessProfileRule
          arguments:
            name: ${example.name}
    

    Using getManagementMobileAccessProfileRule

    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 getManagementMobileAccessProfileRule(args: GetManagementMobileAccessProfileRuleArgs, opts?: InvokeOptions): Promise<GetManagementMobileAccessProfileRuleResult>
    function getManagementMobileAccessProfileRuleOutput(args: GetManagementMobileAccessProfileRuleOutputArgs, opts?: InvokeOptions): Output<GetManagementMobileAccessProfileRuleResult>
    def get_management_mobile_access_profile_rule(id: Optional[str] = None,
                                                  name: Optional[str] = None,
                                                  uid: Optional[str] = None,
                                                  opts: Optional[InvokeOptions] = None) -> GetManagementMobileAccessProfileRuleResult
    def get_management_mobile_access_profile_rule_output(id: Optional[pulumi.Input[str]] = None,
                                                  name: Optional[pulumi.Input[str]] = None,
                                                  uid: Optional[pulumi.Input[str]] = None,
                                                  opts: Optional[InvokeOptions] = None) -> Output[GetManagementMobileAccessProfileRuleResult]
    func LookupManagementMobileAccessProfileRule(ctx *Context, args *LookupManagementMobileAccessProfileRuleArgs, opts ...InvokeOption) (*LookupManagementMobileAccessProfileRuleResult, error)
    func LookupManagementMobileAccessProfileRuleOutput(ctx *Context, args *LookupManagementMobileAccessProfileRuleOutputArgs, opts ...InvokeOption) LookupManagementMobileAccessProfileRuleResultOutput

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

    public static class GetManagementMobileAccessProfileRule 
    {
        public static Task<GetManagementMobileAccessProfileRuleResult> InvokeAsync(GetManagementMobileAccessProfileRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementMobileAccessProfileRuleResult> Invoke(GetManagementMobileAccessProfileRuleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementMobileAccessProfileRuleResult> getManagementMobileAccessProfileRule(GetManagementMobileAccessProfileRuleArgs args, InvokeOptions options)
    public static Output<GetManagementMobileAccessProfileRuleResult> getManagementMobileAccessProfileRule(GetManagementMobileAccessProfileRuleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: checkpoint:index/getManagementMobileAccessProfileRule:getManagementMobileAccessProfileRule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Name string
    Object name. Should be unique in the domain.
    Uid string
    Object unique identifier.
    Id string
    Name string
    Object name. Should be unique in the domain.
    Uid string
    Object unique identifier.
    id String
    name String
    Object name. Should be unique in the domain.
    uid String
    Object unique identifier.
    id string
    name string
    Object name. Should be unique in the domain.
    uid string
    Object unique identifier.
    id str
    name str
    Object name. Should be unique in the domain.
    uid str
    Object unique identifier.
    id String
    name String
    Object name. Should be unique in the domain.
    uid String
    Object unique identifier.

    getManagementMobileAccessProfileRule Result

    The following output properties are available:

    Comments string
    Enabled bool
    Id string
    MobileProfile string
    Tags List<string>
    UserGroups List<string>
    Name string
    Uid string
    Comments string
    Enabled bool
    Id string
    MobileProfile string
    Tags []string
    UserGroups []string
    Name string
    Uid string
    comments String
    enabled Boolean
    id String
    mobileProfile String
    tags List<String>
    userGroups List<String>
    name String
    uid String
    comments string
    enabled boolean
    id string
    mobileProfile string
    tags string[]
    userGroups string[]
    name string
    uid string
    comments str
    enabled bool
    id str
    mobile_profile str
    tags Sequence[str]
    user_groups Sequence[str]
    name str
    uid str
    comments String
    enabled Boolean
    id String
    mobileProfile String
    tags List<String>
    userGroups List<String>
    name String
    uid String

    Package Details

    Repository
    checkpoint checkpointsw/terraform-provider-checkpoint
    License
    Notes
    This Pulumi package is based on the checkpoint Terraform Provider.
    checkpoint logo
    checkpoint 2.9.0 published on Monday, Apr 14, 2025 by checkpointsw