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

checkpoint.getManagementDataAccessRole

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 Role.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as checkpoint from "@pulumi/checkpoint";
    
    const accessRole = new checkpoint.ManagementAccessRole("accessRole", {
        comments: "my-Access-Role",
        machines: [{
            selections: ["all identified"],
            source: "all identified",
        }],
        users: [{
            selections: ["any"],
            source: "any",
        }],
    });
    const dataAccessRole = checkpoint.getManagementDataAccessRoleOutput({
        name: accessRole.name,
    });
    
    import pulumi
    import pulumi_checkpoint as checkpoint
    
    access_role = checkpoint.ManagementAccessRole("accessRole",
        comments="my-Access-Role",
        machines=[{
            "selections": ["all identified"],
            "source": "all identified",
        }],
        users=[{
            "selections": ["any"],
            "source": "any",
        }])
    data_access_role = checkpoint.get_management_data_access_role_output(name=access_role.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 {
    		accessRole, err := checkpoint.NewManagementAccessRole(ctx, "accessRole", &checkpoint.ManagementAccessRoleArgs{
    			Comments: pulumi.String("my-Access-Role"),
    			Machines: checkpoint.ManagementAccessRoleMachineArray{
    				&checkpoint.ManagementAccessRoleMachineArgs{
    					Selections: pulumi.StringArray{
    						pulumi.String("all identified"),
    					},
    					Source: pulumi.String("all identified"),
    				},
    			},
    			Users: checkpoint.ManagementAccessRoleUserArray{
    				&checkpoint.ManagementAccessRoleUserArgs{
    					Selections: pulumi.StringArray{
    						pulumi.String("any"),
    					},
    					Source: pulumi.String("any"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_ = checkpoint.GetManagementDataAccessRoleOutput(ctx, checkpoint.GetManagementDataAccessRoleOutputArgs{
    			Name: accessRole.Name,
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Checkpoint = Pulumi.Checkpoint;
    
    return await Deployment.RunAsync(() => 
    {
        var accessRole = new Checkpoint.ManagementAccessRole("accessRole", new()
        {
            Comments = "my-Access-Role",
            Machines = new[]
            {
                new Checkpoint.Inputs.ManagementAccessRoleMachineArgs
                {
                    Selections = new[]
                    {
                        "all identified",
                    },
                    Source = "all identified",
                },
            },
            Users = new[]
            {
                new Checkpoint.Inputs.ManagementAccessRoleUserArgs
                {
                    Selections = new[]
                    {
                        "any",
                    },
                    Source = "any",
                },
            },
        });
    
        var dataAccessRole = Checkpoint.GetManagementDataAccessRole.Invoke(new()
        {
            Name = accessRole.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.checkpoint.ManagementAccessRole;
    import com.pulumi.checkpoint.ManagementAccessRoleArgs;
    import com.pulumi.checkpoint.inputs.ManagementAccessRoleMachineArgs;
    import com.pulumi.checkpoint.inputs.ManagementAccessRoleUserArgs;
    import com.pulumi.checkpoint.CheckpointFunctions;
    import com.pulumi.checkpoint.inputs.GetManagementDataAccessRoleArgs;
    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 accessRole = new ManagementAccessRole("accessRole", ManagementAccessRoleArgs.builder()
                .comments("my-Access-Role")
                .machines(ManagementAccessRoleMachineArgs.builder()
                    .selections("all identified")
                    .source("all identified")
                    .build())
                .users(ManagementAccessRoleUserArgs.builder()
                    .selections("any")
                    .source("any")
                    .build())
                .build());
    
            final var dataAccessRole = CheckpointFunctions.getManagementDataAccessRole(GetManagementDataAccessRoleArgs.builder()
                .name(accessRole.name())
                .build());
    
        }
    }
    
    resources:
      accessRole:
        type: checkpoint:ManagementAccessRole
        properties:
          comments: my-Access-Role
          machines:
            - selections:
                - all identified
              source: all identified
          users:
            - selections:
                - any
              source: any
    variables:
      dataAccessRole:
        fn::invoke:
          function: checkpoint:getManagementDataAccessRole
          arguments:
            name: ${accessRole.name}
    

    Using getManagementDataAccessRole

    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 getManagementDataAccessRole(args: GetManagementDataAccessRoleArgs, opts?: InvokeOptions): Promise<GetManagementDataAccessRoleResult>
    function getManagementDataAccessRoleOutput(args: GetManagementDataAccessRoleOutputArgs, opts?: InvokeOptions): Output<GetManagementDataAccessRoleResult>
    def get_management_data_access_role(id: Optional[str] = None,
                                        name: Optional[str] = None,
                                        uid: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetManagementDataAccessRoleResult
    def get_management_data_access_role_output(id: Optional[pulumi.Input[str]] = None,
                                        name: Optional[pulumi.Input[str]] = None,
                                        uid: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetManagementDataAccessRoleResult]
    func GetManagementDataAccessRole(ctx *Context, args *GetManagementDataAccessRoleArgs, opts ...InvokeOption) (*GetManagementDataAccessRoleResult, error)
    func GetManagementDataAccessRoleOutput(ctx *Context, args *GetManagementDataAccessRoleOutputArgs, opts ...InvokeOption) GetManagementDataAccessRoleResultOutput

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

    public static class GetManagementDataAccessRole 
    {
        public static Task<GetManagementDataAccessRoleResult> InvokeAsync(GetManagementDataAccessRoleArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementDataAccessRoleResult> Invoke(GetManagementDataAccessRoleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementDataAccessRoleResult> getManagementDataAccessRole(GetManagementDataAccessRoleArgs args, InvokeOptions options)
    public static Output<GetManagementDataAccessRoleResult> getManagementDataAccessRole(GetManagementDataAccessRoleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: checkpoint:index/getManagementDataAccessRole:getManagementDataAccessRole
      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.

    getManagementDataAccessRole Result

    The following output properties are available:

    color String
    comments String
    id String
    machines List<Property Map>
    networks List<String>
    remoteAccessClients String
    tags List<String>
    users List<Property Map>
    name String
    uid String

    Supporting Types

    GetManagementDataAccessRoleMachine

    BaseDn string
    Selections List<string>
    Source string
    BaseDn string
    Selections []string
    Source string
    baseDn String
    selections List<String>
    source String
    baseDn string
    selections string[]
    source string
    base_dn str
    selections Sequence[str]
    source str
    baseDn String
    selections List<String>
    source String

    GetManagementDataAccessRoleUser

    BaseDn string
    Selections List<string>
    Source string
    BaseDn string
    Selections []string
    Source string
    baseDn String
    selections List<String>
    source String
    baseDn string
    selections string[]
    source string
    base_dn str
    selections Sequence[str]
    source str
    baseDn String
    selections List<String>
    source 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