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

checkpoint.getManagementGaiaBestPractice

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as checkpoint from "@pulumi/checkpoint";
    
    const gaiaBestPractice = new checkpoint.ManagementGaiaBestPractice("gaiaBestPractice", {
        actionItem: "Validate that the Telnet settings are disabled on the configuration set on the GAIA OS.",
        description: "This Gaia Best Practice makes sure that the network access, via Telnet, is disabled.",
        expectedOutputText: "Success",
        practiceScriptBase64: "IyEvYmluL2Jhc2gKCnRlbG5ldF9vZmY9JChjbGlzaCAtYyAic2hvdyBjb25maWd1cmF0aW9uIiB8IGdyZXAgInNldCBuZXQtYWNjZXNzIHRlbG5ldCIgfCBncmVwICJvZmYiKQppZiBbICEgLXogIiR0ZWxuZXRfb2ZmIiBdOyB0aGVuCgllY2hvIFN1Y2Nlc3MKZWxzZQoJZWNobyBGYWlsCmZp",
    });
    const dataGaiaBestPractice = checkpoint.getManagementGaiaBestPracticeOutput({
        name: gaiaBestPractice.name,
    });
    
    import pulumi
    import pulumi_checkpoint as checkpoint
    
    gaia_best_practice = checkpoint.ManagementGaiaBestPractice("gaiaBestPractice",
        action_item="Validate that the Telnet settings are disabled on the configuration set on the GAIA OS.",
        description="This Gaia Best Practice makes sure that the network access, via Telnet, is disabled.",
        expected_output_text="Success",
        practice_script_base64="IyEvYmluL2Jhc2gKCnRlbG5ldF9vZmY9JChjbGlzaCAtYyAic2hvdyBjb25maWd1cmF0aW9uIiB8IGdyZXAgInNldCBuZXQtYWNjZXNzIHRlbG5ldCIgfCBncmVwICJvZmYiKQppZiBbICEgLXogIiR0ZWxuZXRfb2ZmIiBdOyB0aGVuCgllY2hvIFN1Y2Nlc3MKZWxzZQoJZWNobyBGYWlsCmZp")
    data_gaia_best_practice = checkpoint.get_management_gaia_best_practice_output(name=gaia_best_practice.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 {
    		gaiaBestPractice, err := checkpoint.NewManagementGaiaBestPractice(ctx, "gaiaBestPractice", &checkpoint.ManagementGaiaBestPracticeArgs{
    			ActionItem:           pulumi.String("Validate that the Telnet settings are disabled on the configuration set on the GAIA OS."),
    			Description:          pulumi.String("This Gaia Best Practice makes sure that the network access, via Telnet, is disabled."),
    			ExpectedOutputText:   pulumi.String("Success"),
    			PracticeScriptBase64: pulumi.String("IyEvYmluL2Jhc2gKCnRlbG5ldF9vZmY9JChjbGlzaCAtYyAic2hvdyBjb25maWd1cmF0aW9uIiB8IGdyZXAgInNldCBuZXQtYWNjZXNzIHRlbG5ldCIgfCBncmVwICJvZmYiKQppZiBbICEgLXogIiR0ZWxuZXRfb2ZmIiBdOyB0aGVuCgllY2hvIFN1Y2Nlc3MKZWxzZQoJZWNobyBGYWlsCmZp"),
    		})
    		if err != nil {
    			return err
    		}
    		_ = checkpoint.LookupManagementGaiaBestPracticeOutput(ctx, checkpoint.GetManagementGaiaBestPracticeOutputArgs{
    			Name: gaiaBestPractice.Name,
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Checkpoint = Pulumi.Checkpoint;
    
    return await Deployment.RunAsync(() => 
    {
        var gaiaBestPractice = new Checkpoint.ManagementGaiaBestPractice("gaiaBestPractice", new()
        {
            ActionItem = "Validate that the Telnet settings are disabled on the configuration set on the GAIA OS.",
            Description = "This Gaia Best Practice makes sure that the network access, via Telnet, is disabled.",
            ExpectedOutputText = "Success",
            PracticeScriptBase64 = "IyEvYmluL2Jhc2gKCnRlbG5ldF9vZmY9JChjbGlzaCAtYyAic2hvdyBjb25maWd1cmF0aW9uIiB8IGdyZXAgInNldCBuZXQtYWNjZXNzIHRlbG5ldCIgfCBncmVwICJvZmYiKQppZiBbICEgLXogIiR0ZWxuZXRfb2ZmIiBdOyB0aGVuCgllY2hvIFN1Y2Nlc3MKZWxzZQoJZWNobyBGYWlsCmZp",
        });
    
        var dataGaiaBestPractice = Checkpoint.GetManagementGaiaBestPractice.Invoke(new()
        {
            Name = gaiaBestPractice.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.checkpoint.ManagementGaiaBestPractice;
    import com.pulumi.checkpoint.ManagementGaiaBestPracticeArgs;
    import com.pulumi.checkpoint.CheckpointFunctions;
    import com.pulumi.checkpoint.inputs.GetManagementGaiaBestPracticeArgs;
    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 gaiaBestPractice = new ManagementGaiaBestPractice("gaiaBestPractice", ManagementGaiaBestPracticeArgs.builder()
                .actionItem("Validate that the Telnet settings are disabled on the configuration set on the GAIA OS.")
                .description("This Gaia Best Practice makes sure that the network access, via Telnet, is disabled.")
                .expectedOutputText("Success")
                .practiceScriptBase64("IyEvYmluL2Jhc2gKCnRlbG5ldF9vZmY9JChjbGlzaCAtYyAic2hvdyBjb25maWd1cmF0aW9uIiB8IGdyZXAgInNldCBuZXQtYWNjZXNzIHRlbG5ldCIgfCBncmVwICJvZmYiKQppZiBbICEgLXogIiR0ZWxuZXRfb2ZmIiBdOyB0aGVuCgllY2hvIFN1Y2Nlc3MKZWxzZQoJZWNobyBGYWlsCmZp")
                .build());
    
            final var dataGaiaBestPractice = CheckpointFunctions.getManagementGaiaBestPractice(GetManagementGaiaBestPracticeArgs.builder()
                .name(gaiaBestPractice.name())
                .build());
    
        }
    }
    
    resources:
      gaiaBestPractice:
        type: checkpoint:ManagementGaiaBestPractice
        properties:
          actionItem: Validate that the Telnet settings are disabled on the configuration set on the GAIA OS.
          description: This Gaia Best Practice makes sure that the network access, via Telnet, is disabled.
          expectedOutputText: Success
          practiceScriptBase64: IyEvYmluL2Jhc2gKCnRlbG5ldF9vZmY9JChjbGlzaCAtYyAic2hvdyBjb25maWd1cmF0aW9uIiB8IGdyZXAgInNldCBuZXQtYWNjZXNzIHRlbG5ldCIgfCBncmVwICJvZmYiKQppZiBbICEgLXogIiR0ZWxuZXRfb2ZmIiBdOyB0aGVuCgllY2hvIFN1Y2Nlc3MKZWxzZQoJZWNobyBGYWlsCmZp
    variables:
      dataGaiaBestPractice:
        fn::invoke:
          function: checkpoint:getManagementGaiaBestPractice
          arguments:
            name: ${gaiaBestPractice.name}
    

    Using getManagementGaiaBestPractice

    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 getManagementGaiaBestPractice(args: GetManagementGaiaBestPracticeArgs, opts?: InvokeOptions): Promise<GetManagementGaiaBestPracticeResult>
    function getManagementGaiaBestPracticeOutput(args: GetManagementGaiaBestPracticeOutputArgs, opts?: InvokeOptions): Output<GetManagementGaiaBestPracticeResult>
    def get_management_gaia_best_practice(best_practice_id: Optional[str] = None,
                                          id: Optional[str] = None,
                                          name: Optional[str] = None,
                                          uid: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetManagementGaiaBestPracticeResult
    def get_management_gaia_best_practice_output(best_practice_id: Optional[pulumi.Input[str]] = None,
                                          id: Optional[pulumi.Input[str]] = None,
                                          name: Optional[pulumi.Input[str]] = None,
                                          uid: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetManagementGaiaBestPracticeResult]
    func LookupManagementGaiaBestPractice(ctx *Context, args *LookupManagementGaiaBestPracticeArgs, opts ...InvokeOption) (*LookupManagementGaiaBestPracticeResult, error)
    func LookupManagementGaiaBestPracticeOutput(ctx *Context, args *LookupManagementGaiaBestPracticeOutputArgs, opts ...InvokeOption) LookupManagementGaiaBestPracticeResultOutput

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

    public static class GetManagementGaiaBestPractice 
    {
        public static Task<GetManagementGaiaBestPracticeResult> InvokeAsync(GetManagementGaiaBestPracticeArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementGaiaBestPracticeResult> Invoke(GetManagementGaiaBestPracticeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementGaiaBestPracticeResult> getManagementGaiaBestPractice(GetManagementGaiaBestPracticeArgs args, InvokeOptions options)
    public static Output<GetManagementGaiaBestPracticeResult> getManagementGaiaBestPractice(GetManagementGaiaBestPracticeArgs args, InvokeOptions options)
    
    fn::invoke:
      function: checkpoint:index/getManagementGaiaBestPractice:getManagementGaiaBestPractice
      arguments:
        # arguments dictionary

    The following arguments are supported:

    BestPracticeId string
    Best Practice ID.
    Id string
    Name string
    Best Practice Name.
    Uid string
    Best Practice UID.
    BestPracticeId string
    Best Practice ID.
    Id string
    Name string
    Best Practice Name.
    Uid string
    Best Practice UID.
    bestPracticeId String
    Best Practice ID.
    id String
    name String
    Best Practice Name.
    uid String
    Best Practice UID.
    bestPracticeId string
    Best Practice ID.
    id string
    name string
    Best Practice Name.
    uid string
    Best Practice UID.
    best_practice_id str
    Best Practice ID.
    id str
    name str
    Best Practice Name.
    uid str
    Best Practice UID.
    bestPracticeId String
    Best Practice ID.
    id String
    name String
    Best Practice Name.
    uid String
    Best Practice UID.

    getManagementGaiaBestPractice Result

    The following output properties are available:

    Supporting Types

    GetManagementGaiaBestPracticeRegulation

    RegulationName string
    The name of the regulation.
    RequirementDescription string
    The description of the requirement.
    RequirementId string
    The id of the requirement.
    RequirementStatus string
    The status of the requirement.
    RegulationName string
    The name of the regulation.
    RequirementDescription string
    The description of the requirement.
    RequirementId string
    The id of the requirement.
    RequirementStatus string
    The status of the requirement.
    regulationName String
    The name of the regulation.
    requirementDescription String
    The description of the requirement.
    requirementId String
    The id of the requirement.
    requirementStatus String
    The status of the requirement.
    regulationName string
    The name of the regulation.
    requirementDescription string
    The description of the requirement.
    requirementId string
    The id of the requirement.
    requirementStatus string
    The status of the requirement.
    regulation_name str
    The name of the regulation.
    requirement_description str
    The description of the requirement.
    requirement_id str
    The id of the requirement.
    requirement_status str
    The status of the requirement.
    regulationName String
    The name of the regulation.
    requirementDescription String
    The description of the requirement.
    requirementId String
    The id of the requirement.
    requirementStatus String
    The status of the requirement.

    GetManagementGaiaBestPracticeRelevantObject

    Enabled bool
    Determines if the relevant object is enabled or not.
    Name string
    The name of the relevant object.
    Status string
    The status of the relevant object.
    Uid string
    The uid of the relevant object.
    Enabled bool
    Determines if the relevant object is enabled or not.
    Name string
    The name of the relevant object.
    Status string
    The status of the relevant object.
    Uid string
    The uid of the relevant object.
    enabled Boolean
    Determines if the relevant object is enabled or not.
    name String
    The name of the relevant object.
    status String
    The status of the relevant object.
    uid String
    The uid of the relevant object.
    enabled boolean
    Determines if the relevant object is enabled or not.
    name string
    The name of the relevant object.
    status string
    The status of the relevant object.
    uid string
    The uid of the relevant object.
    enabled bool
    Determines if the relevant object is enabled or not.
    name str
    The name of the relevant object.
    status str
    The status of the relevant object.
    uid str
    The uid of the relevant object.
    enabled Boolean
    Determines if the relevant object is enabled or not.
    name String
    The name of the relevant object.
    status String
    The status of the relevant object.
    uid String
    The uid of the relevant object.

    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