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

checkpoint.getManagementDataHttpsSection

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as checkpoint from "@pulumi/checkpoint";
    
    const httpsSection = new checkpoint.ManagementHttpsSection("httpsSection", {
        layer: "Default Layer",
        position: {
            top: "top",
        },
    });
    const dataHttpsSection = checkpoint.getManagementDataHttpsSectionOutput({
        layer: httpsSection.layer,
        name: httpsSection.name,
    });
    
    import pulumi
    import pulumi_checkpoint as checkpoint
    
    https_section = checkpoint.ManagementHttpsSection("httpsSection",
        layer="Default Layer",
        position={
            "top": "top",
        })
    data_https_section = checkpoint.get_management_data_https_section_output(layer=https_section.layer,
        name=https_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 {
    		httpsSection, err := checkpoint.NewManagementHttpsSection(ctx, "httpsSection", &checkpoint.ManagementHttpsSectionArgs{
    			Layer: pulumi.String("Default Layer"),
    			Position: pulumi.StringMap{
    				"top": pulumi.String("top"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_ = checkpoint.GetManagementDataHttpsSectionOutput(ctx, checkpoint.GetManagementDataHttpsSectionOutputArgs{
    			Layer: httpsSection.Layer,
    			Name:  httpsSection.Name,
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Checkpoint = Pulumi.Checkpoint;
    
    return await Deployment.RunAsync(() => 
    {
        var httpsSection = new Checkpoint.ManagementHttpsSection("httpsSection", new()
        {
            Layer = "Default Layer",
            Position = 
            {
                { "top", "top" },
            },
        });
    
        var dataHttpsSection = Checkpoint.GetManagementDataHttpsSection.Invoke(new()
        {
            Layer = httpsSection.Layer,
            Name = httpsSection.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.checkpoint.ManagementHttpsSection;
    import com.pulumi.checkpoint.ManagementHttpsSectionArgs;
    import com.pulumi.checkpoint.CheckpointFunctions;
    import com.pulumi.checkpoint.inputs.GetManagementDataHttpsSectionArgs;
    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 httpsSection = new ManagementHttpsSection("httpsSection", ManagementHttpsSectionArgs.builder()
                .layer("Default Layer")
                .position(Map.of("top", "top"))
                .build());
    
            final var dataHttpsSection = CheckpointFunctions.getManagementDataHttpsSection(GetManagementDataHttpsSectionArgs.builder()
                .layer(httpsSection.layer())
                .name(httpsSection.name())
                .build());
    
        }
    }
    
    resources:
      httpsSection:
        type: checkpoint:ManagementHttpsSection
        properties:
          layer: Default Layer
          position:
            top: top
    variables:
      dataHttpsSection:
        fn::invoke:
          function: checkpoint:getManagementDataHttpsSection
          arguments:
            layer: ${httpsSection.layer}
            name: ${httpsSection.name}
    

    Using getManagementDataHttpsSection

    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 getManagementDataHttpsSection(args: GetManagementDataHttpsSectionArgs, opts?: InvokeOptions): Promise<GetManagementDataHttpsSectionResult>
    function getManagementDataHttpsSectionOutput(args: GetManagementDataHttpsSectionOutputArgs, opts?: InvokeOptions): Output<GetManagementDataHttpsSectionResult>
    def get_management_data_https_section(id: Optional[str] = None,
                                          layer: Optional[str] = None,
                                          name: Optional[str] = None,
                                          uid: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetManagementDataHttpsSectionResult
    def get_management_data_https_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[GetManagementDataHttpsSectionResult]
    func GetManagementDataHttpsSection(ctx *Context, args *GetManagementDataHttpsSectionArgs, opts ...InvokeOption) (*GetManagementDataHttpsSectionResult, error)
    func GetManagementDataHttpsSectionOutput(ctx *Context, args *GetManagementDataHttpsSectionOutputArgs, opts ...InvokeOption) GetManagementDataHttpsSectionResultOutput

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

    public static class GetManagementDataHttpsSection 
    {
        public static Task<GetManagementDataHttpsSectionResult> InvokeAsync(GetManagementDataHttpsSectionArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementDataHttpsSectionResult> Invoke(GetManagementDataHttpsSectionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementDataHttpsSectionResult> getManagementDataHttpsSection(GetManagementDataHttpsSectionArgs args, InvokeOptions options)
    public static Output<GetManagementDataHttpsSectionResult> getManagementDataHttpsSection(GetManagementDataHttpsSectionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: checkpoint:index/getManagementDataHttpsSection:getManagementDataHttpsSection
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Layer string
    Layer that holds the Object. Identified by the Name or UID.
    Id string
    Name string
    Object name.
    Uid string
    Object unique identifier.
    Layer string
    Layer that holds the Object. Identified by the Name or UID.
    Id string
    Name string
    Object name.
    Uid string
    Object unique identifier.
    layer String
    Layer that holds the Object. Identified by the Name or UID.
    id String
    name String
    Object name.
    uid String
    Object unique identifier.
    layer string
    Layer that holds the Object. Identified by the Name or UID.
    id string
    name string
    Object name.
    uid string
    Object unique identifier.
    layer str
    Layer that holds the Object. Identified by the Name or UID.
    id str
    name str
    Object name.
    uid str
    Object unique identifier.
    layer String
    Layer that holds the Object. Identified by the Name or UID.
    id String
    name String
    Object name.
    uid String
    Object unique identifier.

    getManagementDataHttpsSection 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