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

checkpoint.getManagementMultipleKeyExchanges

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 Multiple Key Exchanges.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as checkpoint from "@pulumi/checkpoint";
    
    const example = new checkpoint.ManagementMultipleKeyExchanges("example", {
        additionalKeyExchange1Methods: ["kyber-1024"],
        keyExchangeMethods: ["group-2"],
    });
    const data = checkpoint.getManagementMultipleKeyExchanges({
        name: checkpoint_management_multiple_key_exchanges.test.name,
    });
    
    import pulumi
    import pulumi_checkpoint as checkpoint
    
    example = checkpoint.ManagementMultipleKeyExchanges("example",
        additional_key_exchange1_methods=["kyber-1024"],
        key_exchange_methods=["group-2"])
    data = checkpoint.get_management_multiple_key_exchanges(name=checkpoint_management_multiple_key_exchanges["test"]["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 {
    		_, err := checkpoint.NewManagementMultipleKeyExchanges(ctx, "example", &checkpoint.ManagementMultipleKeyExchangesArgs{
    			AdditionalKeyExchange1Methods: pulumi.StringArray{
    				pulumi.String("kyber-1024"),
    			},
    			KeyExchangeMethods: pulumi.StringArray{
    				pulumi.String("group-2"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = checkpoint.LookupManagementMultipleKeyExchanges(ctx, &checkpoint.LookupManagementMultipleKeyExchangesArgs{
    			Name: pulumi.StringRef(checkpoint_management_multiple_key_exchanges.Test.Name),
    		}, 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 example = new Checkpoint.ManagementMultipleKeyExchanges("example", new()
        {
            AdditionalKeyExchange1Methods = new[]
            {
                "kyber-1024",
            },
            KeyExchangeMethods = new[]
            {
                "group-2",
            },
        });
    
        var data = Checkpoint.GetManagementMultipleKeyExchanges.Invoke(new()
        {
            Name = checkpoint_management_multiple_key_exchanges.Test.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.checkpoint.ManagementMultipleKeyExchanges;
    import com.pulumi.checkpoint.ManagementMultipleKeyExchangesArgs;
    import com.pulumi.checkpoint.CheckpointFunctions;
    import com.pulumi.checkpoint.inputs.GetManagementMultipleKeyExchangesArgs;
    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 example = new ManagementMultipleKeyExchanges("example", ManagementMultipleKeyExchangesArgs.builder()
                .additionalKeyExchange1Methods("kyber-1024")
                .keyExchangeMethods("group-2")
                .build());
    
            final var data = CheckpointFunctions.getManagementMultipleKeyExchanges(GetManagementMultipleKeyExchangesArgs.builder()
                .name(checkpoint_management_multiple_key_exchanges.test().name())
                .build());
    
        }
    }
    
    resources:
      example:
        type: checkpoint:ManagementMultipleKeyExchanges
        properties:
          additionalKeyExchange1Methods:
            - kyber-1024
          keyExchangeMethods:
            - group-2
    variables:
      data:
        fn::invoke:
          function: checkpoint:getManagementMultipleKeyExchanges
          arguments:
            name: ${checkpoint_management_multiple_key_exchanges.test.name}
    

    Using getManagementMultipleKeyExchanges

    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 getManagementMultipleKeyExchanges(args: GetManagementMultipleKeyExchangesArgs, opts?: InvokeOptions): Promise<GetManagementMultipleKeyExchangesResult>
    function getManagementMultipleKeyExchangesOutput(args: GetManagementMultipleKeyExchangesOutputArgs, opts?: InvokeOptions): Output<GetManagementMultipleKeyExchangesResult>
    def get_management_multiple_key_exchanges(id: Optional[str] = None,
                                              name: Optional[str] = None,
                                              uid: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetManagementMultipleKeyExchangesResult
    def get_management_multiple_key_exchanges_output(id: Optional[pulumi.Input[str]] = None,
                                              name: Optional[pulumi.Input[str]] = None,
                                              uid: Optional[pulumi.Input[str]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetManagementMultipleKeyExchangesResult]
    func LookupManagementMultipleKeyExchanges(ctx *Context, args *LookupManagementMultipleKeyExchangesArgs, opts ...InvokeOption) (*LookupManagementMultipleKeyExchangesResult, error)
    func LookupManagementMultipleKeyExchangesOutput(ctx *Context, args *LookupManagementMultipleKeyExchangesOutputArgs, opts ...InvokeOption) LookupManagementMultipleKeyExchangesResultOutput

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

    public static class GetManagementMultipleKeyExchanges 
    {
        public static Task<GetManagementMultipleKeyExchangesResult> InvokeAsync(GetManagementMultipleKeyExchangesArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementMultipleKeyExchangesResult> Invoke(GetManagementMultipleKeyExchangesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementMultipleKeyExchangesResult> getManagementMultipleKeyExchanges(GetManagementMultipleKeyExchangesArgs args, InvokeOptions options)
    public static Output<GetManagementMultipleKeyExchangesResult> getManagementMultipleKeyExchanges(GetManagementMultipleKeyExchangesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: checkpoint:index/getManagementMultipleKeyExchanges:getManagementMultipleKeyExchanges
      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.

    getManagementMultipleKeyExchanges Result

    The following output properties are available:

    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