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

checkpoint.getManagementDataAccessSection

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 Access Section.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as checkpoint from "@pulumi/checkpoint";
    
    const accessLayer = new checkpoint.ManagementAccessLayer("accessLayer", {
        applicationsAndUrlFiltering: true,
        detectUsingXForwardFor: false,
    });
    const accessSection = new checkpoint.ManagementAccessSection("accessSection", {
        layer: accessLayer.name,
        position: {
            top: "top",
        },
    });
    const dataAccessSection = checkpoint.getManagementDataAccessSectionOutput({
        layer: accessSection.layer,
        name: accessSection.name,
    });
    
    import pulumi
    import pulumi_checkpoint as checkpoint
    
    access_layer = checkpoint.ManagementAccessLayer("accessLayer",
        applications_and_url_filtering=True,
        detect_using_x_forward_for=False)
    access_section = checkpoint.ManagementAccessSection("accessSection",
        layer=access_layer.name,
        position={
            "top": "top",
        })
    data_access_section = checkpoint.get_management_data_access_section_output(layer=access_section.layer,
        name=access_section.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 {
    		accessLayer, err := checkpoint.NewManagementAccessLayer(ctx, "accessLayer", &checkpoint.ManagementAccessLayerArgs{
    			ApplicationsAndUrlFiltering: pulumi.Bool(true),
    			DetectUsingXForwardFor:      pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		accessSection, err := checkpoint.NewManagementAccessSection(ctx, "accessSection", &checkpoint.ManagementAccessSectionArgs{
    			Layer: accessLayer.Name,
    			Position: pulumi.StringMap{
    				"top": pulumi.String("top"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_ = checkpoint.GetManagementDataAccessSectionOutput(ctx, checkpoint.GetManagementDataAccessSectionOutputArgs{
    			Layer: accessSection.Layer,
    			Name:  accessSection.Name,
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Checkpoint = Pulumi.Checkpoint;
    
    return await Deployment.RunAsync(() => 
    {
        var accessLayer = new Checkpoint.ManagementAccessLayer("accessLayer", new()
        {
            ApplicationsAndUrlFiltering = true,
            DetectUsingXForwardFor = false,
        });
    
        var accessSection = new Checkpoint.ManagementAccessSection("accessSection", new()
        {
            Layer = accessLayer.Name,
            Position = 
            {
                { "top", "top" },
            },
        });
    
        var dataAccessSection = Checkpoint.GetManagementDataAccessSection.Invoke(new()
        {
            Layer = accessSection.Layer,
            Name = accessSection.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.checkpoint.ManagementAccessLayer;
    import com.pulumi.checkpoint.ManagementAccessLayerArgs;
    import com.pulumi.checkpoint.ManagementAccessSection;
    import com.pulumi.checkpoint.ManagementAccessSectionArgs;
    import com.pulumi.checkpoint.CheckpointFunctions;
    import com.pulumi.checkpoint.inputs.GetManagementDataAccessSectionArgs;
    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 accessLayer = new ManagementAccessLayer("accessLayer", ManagementAccessLayerArgs.builder()
                .applicationsAndUrlFiltering(true)
                .detectUsingXForwardFor(false)
                .build());
    
            var accessSection = new ManagementAccessSection("accessSection", ManagementAccessSectionArgs.builder()
                .layer(accessLayer.name())
                .position(Map.of("top", "top"))
                .build());
    
            final var dataAccessSection = CheckpointFunctions.getManagementDataAccessSection(GetManagementDataAccessSectionArgs.builder()
                .layer(accessSection.layer())
                .name(accessSection.name())
                .build());
    
        }
    }
    
    resources:
      accessLayer:
        type: checkpoint:ManagementAccessLayer
        properties:
          applicationsAndUrlFiltering: true
          detectUsingXForwardFor: false
      accessSection:
        type: checkpoint:ManagementAccessSection
        properties:
          layer: ${accessLayer.name}
          position:
            top: top
    variables:
      dataAccessSection:
        fn::invoke:
          function: checkpoint:getManagementDataAccessSection
          arguments:
            layer: ${accessSection.layer}
            name: ${accessSection.name}
    

    Using getManagementDataAccessSection

    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 getManagementDataAccessSection(args: GetManagementDataAccessSectionArgs, opts?: InvokeOptions): Promise<GetManagementDataAccessSectionResult>
    function getManagementDataAccessSectionOutput(args: GetManagementDataAccessSectionOutputArgs, opts?: InvokeOptions): Output<GetManagementDataAccessSectionResult>
    def get_management_data_access_section(id: Optional[str] = None,
                                           layer: Optional[str] = None,
                                           name: Optional[str] = None,
                                           uid: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetManagementDataAccessSectionResult
    def get_management_data_access_section_output(id: Optional[pulumi.Input[str]] = None,
                                           layer: Optional[pulumi.Input[str]] = None,
                                           name: Optional[pulumi.Input[str]] = None,
                                           uid: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetManagementDataAccessSectionResult]
    func GetManagementDataAccessSection(ctx *Context, args *GetManagementDataAccessSectionArgs, opts ...InvokeOption) (*GetManagementDataAccessSectionResult, error)
    func GetManagementDataAccessSectionOutput(ctx *Context, args *GetManagementDataAccessSectionOutputArgs, opts ...InvokeOption) GetManagementDataAccessSectionResultOutput

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

    public static class GetManagementDataAccessSection 
    {
        public static Task<GetManagementDataAccessSectionResult> InvokeAsync(GetManagementDataAccessSectionArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementDataAccessSectionResult> Invoke(GetManagementDataAccessSectionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementDataAccessSectionResult> getManagementDataAccessSection(GetManagementDataAccessSectionArgs args, InvokeOptions options)
    public static Output<GetManagementDataAccessSectionResult> getManagementDataAccessSection(GetManagementDataAccessSectionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: checkpoint:index/getManagementDataAccessSection:getManagementDataAccessSection
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Layer string
    Layer that the rule belongs to identified by the name or UID.
    Id string
    Name string
    Object name.
    Uid string
    Object unique identifier.
    Layer string
    Layer that the rule belongs to identified by the name or UID.
    Id string
    Name string
    Object name.
    Uid string
    Object unique identifier.
    layer String
    Layer that the rule belongs to identified by the name or UID.
    id String
    name String
    Object name.
    uid String
    Object unique identifier.
    layer string
    Layer that the rule belongs to identified by the name or UID.
    id string
    name string
    Object name.
    uid string
    Object unique identifier.
    layer str
    Layer that the rule belongs to identified by the name or UID.
    id str
    name str
    Object name.
    uid str
    Object unique identifier.
    layer String
    Layer that the rule belongs to identified by the name or UID.
    id String
    name String
    Object name.
    uid String
    Object unique identifier.

    getManagementDataAccessSection Result

    The following output properties are available:

    Id string
    Layer string
    Name string
    Uid string
    Id string
    Layer string
    Name string
    Uid string
    id String
    layer String
    name String
    uid String
    id string
    layer string
    name string
    uid string
    id str
    layer str
    name str
    uid str
    id String
    layer 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