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

checkpoint.getManagementResourceCifs

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 Resource Cifs.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as checkpoint from "@pulumi/checkpoint";
    
    const cifs = new checkpoint.ManagementResourceCifs("cifs", {
        allowedDiskAndPrintShares: [
            {
                serverName: "server1",
                shareName: "share1",
            },
            {
                serverName: "server2",
                shareName: "share2",
            },
        ],
        blockRemoteRegistryAccess: false,
        logAccessViolation: true,
        logMappedShares: true,
    });
    const data = checkpoint.getManagementResourceCifs({
        uid: checkpoint_management_resource_cifs.test.id,
    });
    
    import pulumi
    import pulumi_checkpoint as checkpoint
    
    cifs = checkpoint.ManagementResourceCifs("cifs",
        allowed_disk_and_print_shares=[
            {
                "server_name": "server1",
                "share_name": "share1",
            },
            {
                "server_name": "server2",
                "share_name": "share2",
            },
        ],
        block_remote_registry_access=False,
        log_access_violation=True,
        log_mapped_shares=True)
    data = checkpoint.get_management_resource_cifs(uid=checkpoint_management_resource_cifs["test"]["id"])
    
    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 {
    		_, err := checkpoint.NewManagementResourceCifs(ctx, "cifs", &checkpoint.ManagementResourceCifsArgs{
    			AllowedDiskAndPrintShares: checkpoint.ManagementResourceCifsAllowedDiskAndPrintShareArray{
    				&checkpoint.ManagementResourceCifsAllowedDiskAndPrintShareArgs{
    					ServerName: pulumi.String("server1"),
    					ShareName:  pulumi.String("share1"),
    				},
    				&checkpoint.ManagementResourceCifsAllowedDiskAndPrintShareArgs{
    					ServerName: pulumi.String("server2"),
    					ShareName:  pulumi.String("share2"),
    				},
    			},
    			BlockRemoteRegistryAccess: pulumi.Bool(false),
    			LogAccessViolation:        pulumi.Bool(true),
    			LogMappedShares:           pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = checkpoint.LookupManagementResourceCifs(ctx, &checkpoint.LookupManagementResourceCifsArgs{
    			Uid: pulumi.StringRef(checkpoint_management_resource_cifs.Test.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Checkpoint = Pulumi.Checkpoint;
    
    return await Deployment.RunAsync(() => 
    {
        var cifs = new Checkpoint.ManagementResourceCifs("cifs", new()
        {
            AllowedDiskAndPrintShares = new[]
            {
                new Checkpoint.Inputs.ManagementResourceCifsAllowedDiskAndPrintShareArgs
                {
                    ServerName = "server1",
                    ShareName = "share1",
                },
                new Checkpoint.Inputs.ManagementResourceCifsAllowedDiskAndPrintShareArgs
                {
                    ServerName = "server2",
                    ShareName = "share2",
                },
            },
            BlockRemoteRegistryAccess = false,
            LogAccessViolation = true,
            LogMappedShares = true,
        });
    
        var data = Checkpoint.GetManagementResourceCifs.Invoke(new()
        {
            Uid = checkpoint_management_resource_cifs.Test.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.checkpoint.ManagementResourceCifs;
    import com.pulumi.checkpoint.ManagementResourceCifsArgs;
    import com.pulumi.checkpoint.inputs.ManagementResourceCifsAllowedDiskAndPrintShareArgs;
    import com.pulumi.checkpoint.CheckpointFunctions;
    import com.pulumi.checkpoint.inputs.GetManagementResourceCifsArgs;
    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 cifs = new ManagementResourceCifs("cifs", ManagementResourceCifsArgs.builder()
                .allowedDiskAndPrintShares(            
                    ManagementResourceCifsAllowedDiskAndPrintShareArgs.builder()
                        .serverName("server1")
                        .shareName("share1")
                        .build(),
                    ManagementResourceCifsAllowedDiskAndPrintShareArgs.builder()
                        .serverName("server2")
                        .shareName("share2")
                        .build())
                .blockRemoteRegistryAccess(false)
                .logAccessViolation(true)
                .logMappedShares(true)
                .build());
    
            final var data = CheckpointFunctions.getManagementResourceCifs(GetManagementResourceCifsArgs.builder()
                .uid(checkpoint_management_resource_cifs.test().id())
                .build());
    
        }
    }
    
    resources:
      cifs:
        type: checkpoint:ManagementResourceCifs
        properties:
          allowedDiskAndPrintShares:
            - serverName: server1
              shareName: share1
            - serverName: server2
              shareName: share2
          blockRemoteRegistryAccess: false
          logAccessViolation: true
          logMappedShares: true
    variables:
      data:
        fn::invoke:
          function: checkpoint:getManagementResourceCifs
          arguments:
            uid: ${checkpoint_management_resource_cifs.test.id}
    

    Using getManagementResourceCifs

    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 getManagementResourceCifs(args: GetManagementResourceCifsArgs, opts?: InvokeOptions): Promise<GetManagementResourceCifsResult>
    function getManagementResourceCifsOutput(args: GetManagementResourceCifsOutputArgs, opts?: InvokeOptions): Output<GetManagementResourceCifsResult>
    def get_management_resource_cifs(id: Optional[str] = None,
                                     name: Optional[str] = None,
                                     uid: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetManagementResourceCifsResult
    def get_management_resource_cifs_output(id: Optional[pulumi.Input[str]] = None,
                                     name: Optional[pulumi.Input[str]] = None,
                                     uid: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetManagementResourceCifsResult]
    func LookupManagementResourceCifs(ctx *Context, args *LookupManagementResourceCifsArgs, opts ...InvokeOption) (*LookupManagementResourceCifsResult, error)
    func LookupManagementResourceCifsOutput(ctx *Context, args *LookupManagementResourceCifsOutputArgs, opts ...InvokeOption) LookupManagementResourceCifsResultOutput

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

    public static class GetManagementResourceCifs 
    {
        public static Task<GetManagementResourceCifsResult> InvokeAsync(GetManagementResourceCifsArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementResourceCifsResult> Invoke(GetManagementResourceCifsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementResourceCifsResult> getManagementResourceCifs(GetManagementResourceCifsArgs args, InvokeOptions options)
    public static Output<GetManagementResourceCifsResult> getManagementResourceCifs(GetManagementResourceCifsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: checkpoint:index/getManagementResourceCifs:getManagementResourceCifs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Name string
    Object name.
    Uid string
    Object unique identifier.
    Id string
    Name string
    Object name.
    Uid string
    Object unique identifier.
    id String
    name String
    Object name.
    uid String
    Object unique identifier.
    id string
    name string
    Object name.
    uid string
    Object unique identifier.
    id str
    name str
    Object name.
    uid str
    Object unique identifier.
    id String
    name String
    Object name.
    uid String
    Object unique identifier.

    getManagementResourceCifs Result

    The following output properties are available:

    Supporting Types

    GetManagementResourceCifsAllowedDiskAndPrintShare

    ServerName string
    Blocks the ability to remotely manipulate a the window's registry.
    ShareName string
    Disk shares.
    ServerName string
    Blocks the ability to remotely manipulate a the window's registry.
    ShareName string
    Disk shares.
    serverName String
    Blocks the ability to remotely manipulate a the window's registry.
    shareName String
    Disk shares.
    serverName string
    Blocks the ability to remotely manipulate a the window's registry.
    shareName string
    Disk shares.
    server_name str
    Blocks the ability to remotely manipulate a the window's registry.
    share_name str
    Disk shares.
    serverName String
    Blocks the ability to remotely manipulate a the window's registry.
    shareName String
    Disk shares.

    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