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

checkpoint.ManagementGetAttachment

Explore with Pulumi AI

checkpoint logo
checkpoint 2.9.0 published on Monday, Apr 14, 2025 by checkpointsw

    This command resource allows you to execute Check Point Get Attachment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as checkpoint from "@pulumi/checkpoint";
    
    const example = new checkpoint.ManagementGetAttachment("example", {attachmentId: "MjY5HlNtYXJ0RGVmZW5zZR5jbj1jcF9tZ210LG89aHVnbzEtYmxvYkFwaS1uZXctdGFrZS0yLmNoZWNrcG9pbnQuY29tLnM2MjdvMx57MHg1OTg4"});
    
    import pulumi
    import pulumi_checkpoint as checkpoint
    
    example = checkpoint.ManagementGetAttachment("example", attachment_id="MjY5HlNtYXJ0RGVmZW5zZR5jbj1jcF9tZ210LG89aHVnbzEtYmxvYkFwaS1uZXctdGFrZS0yLmNoZWNrcG9pbnQuY29tLnM2MjdvMx57MHg1OTg4")
    
    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.NewManagementGetAttachment(ctx, "example", &checkpoint.ManagementGetAttachmentArgs{
    			AttachmentId: pulumi.String("MjY5HlNtYXJ0RGVmZW5zZR5jbj1jcF9tZ210LG89aHVnbzEtYmxvYkFwaS1uZXctdGFrZS0yLmNoZWNrcG9pbnQuY29tLnM2MjdvMx57MHg1OTg4"),
    		})
    		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.ManagementGetAttachment("example", new()
        {
            AttachmentId = "MjY5HlNtYXJ0RGVmZW5zZR5jbj1jcF9tZ210LG89aHVnbzEtYmxvYkFwaS1uZXctdGFrZS0yLmNoZWNrcG9pbnQuY29tLnM2MjdvMx57MHg1OTg4",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.checkpoint.ManagementGetAttachment;
    import com.pulumi.checkpoint.ManagementGetAttachmentArgs;
    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 ManagementGetAttachment("example", ManagementGetAttachmentArgs.builder()
                .attachmentId("MjY5HlNtYXJ0RGVmZW5zZR5jbj1jcF9tZ210LG89aHVnbzEtYmxvYkFwaS1uZXctdGFrZS0yLmNoZWNrcG9pbnQuY29tLnM2MjdvMx57MHg1OTg4")
                .build());
    
        }
    }
    
    resources:
      example:
        type: checkpoint:ManagementGetAttachment
        properties:
          attachmentId: MjY5HlNtYXJ0RGVmZW5zZR5jbj1jcF9tZ210LG89aHVnbzEtYmxvYkFwaS1uZXctdGFrZS0yLmNoZWNrcG9pbnQuY29tLnM2MjdvMx57MHg1OTg4
    

    How To Use

    Make sure this command will be executed in the right execution order.

    Create ManagementGetAttachment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ManagementGetAttachment(name: string, args?: ManagementGetAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def ManagementGetAttachment(resource_name: str,
                                args: Optional[ManagementGetAttachmentArgs] = None,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def ManagementGetAttachment(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                attachment_id: Optional[str] = None,
                                management_get_attachment_id: Optional[str] = None,
                                uid: Optional[str] = None)
    func NewManagementGetAttachment(ctx *Context, name string, args *ManagementGetAttachmentArgs, opts ...ResourceOption) (*ManagementGetAttachment, error)
    public ManagementGetAttachment(string name, ManagementGetAttachmentArgs? args = null, CustomResourceOptions? opts = null)
    public ManagementGetAttachment(String name, ManagementGetAttachmentArgs args)
    public ManagementGetAttachment(String name, ManagementGetAttachmentArgs args, CustomResourceOptions options)
    
    type: checkpoint:ManagementGetAttachment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ManagementGetAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ManagementGetAttachmentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ManagementGetAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ManagementGetAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ManagementGetAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var managementGetAttachmentResource = new Checkpoint.ManagementGetAttachment("managementGetAttachmentResource", new()
    {
        AttachmentId = "string",
        ManagementGetAttachmentId = "string",
        Uid = "string",
    });
    
    example, err := checkpoint.NewManagementGetAttachment(ctx, "managementGetAttachmentResource", &checkpoint.ManagementGetAttachmentArgs{
    	AttachmentId:              pulumi.String("string"),
    	ManagementGetAttachmentId: pulumi.String("string"),
    	Uid:                       pulumi.String("string"),
    })
    
    var managementGetAttachmentResource = new ManagementGetAttachment("managementGetAttachmentResource", ManagementGetAttachmentArgs.builder()
        .attachmentId("string")
        .managementGetAttachmentId("string")
        .uid("string")
        .build());
    
    management_get_attachment_resource = checkpoint.ManagementGetAttachment("managementGetAttachmentResource",
        attachment_id="string",
        management_get_attachment_id="string",
        uid="string")
    
    const managementGetAttachmentResource = new checkpoint.ManagementGetAttachment("managementGetAttachmentResource", {
        attachmentId: "string",
        managementGetAttachmentId: "string",
        uid: "string",
    });
    
    type: checkpoint:ManagementGetAttachment
    properties:
        attachmentId: string
        managementGetAttachmentId: string
        uid: string
    

    ManagementGetAttachment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ManagementGetAttachment resource accepts the following input properties:

    AttachmentId string
    Attachment identifier from a log record.
    ManagementGetAttachmentId string
    Uid string
    Log id from a log record.
    AttachmentId string
    Attachment identifier from a log record.
    ManagementGetAttachmentId string
    Uid string
    Log id from a log record.
    attachmentId String
    Attachment identifier from a log record.
    managementGetAttachmentId String
    uid String
    Log id from a log record.
    attachmentId string
    Attachment identifier from a log record.
    managementGetAttachmentId string
    uid string
    Log id from a log record.
    attachment_id str
    Attachment identifier from a log record.
    management_get_attachment_id str
    uid str
    Log id from a log record.
    attachmentId String
    Attachment identifier from a log record.
    managementGetAttachmentId String
    uid String
    Log id from a log record.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ManagementGetAttachment resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    TaskId string
    Asynchronous task unique identifier.
    Id string
    The provider-assigned unique ID for this managed resource.
    TaskId string
    Asynchronous task unique identifier.
    id String
    The provider-assigned unique ID for this managed resource.
    taskId String
    Asynchronous task unique identifier.
    id string
    The provider-assigned unique ID for this managed resource.
    taskId string
    Asynchronous task unique identifier.
    id str
    The provider-assigned unique ID for this managed resource.
    task_id str
    Asynchronous task unique identifier.
    id String
    The provider-assigned unique ID for this managed resource.
    taskId String
    Asynchronous task unique identifier.

    Look up Existing ManagementGetAttachment Resource

    Get an existing ManagementGetAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ManagementGetAttachmentState, opts?: CustomResourceOptions): ManagementGetAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            attachment_id: Optional[str] = None,
            management_get_attachment_id: Optional[str] = None,
            task_id: Optional[str] = None,
            uid: Optional[str] = None) -> ManagementGetAttachment
    func GetManagementGetAttachment(ctx *Context, name string, id IDInput, state *ManagementGetAttachmentState, opts ...ResourceOption) (*ManagementGetAttachment, error)
    public static ManagementGetAttachment Get(string name, Input<string> id, ManagementGetAttachmentState? state, CustomResourceOptions? opts = null)
    public static ManagementGetAttachment get(String name, Output<String> id, ManagementGetAttachmentState state, CustomResourceOptions options)
    resources:  _:    type: checkpoint:ManagementGetAttachment    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AttachmentId string
    Attachment identifier from a log record.
    ManagementGetAttachmentId string
    TaskId string
    Asynchronous task unique identifier.
    Uid string
    Log id from a log record.
    AttachmentId string
    Attachment identifier from a log record.
    ManagementGetAttachmentId string
    TaskId string
    Asynchronous task unique identifier.
    Uid string
    Log id from a log record.
    attachmentId String
    Attachment identifier from a log record.
    managementGetAttachmentId String
    taskId String
    Asynchronous task unique identifier.
    uid String
    Log id from a log record.
    attachmentId string
    Attachment identifier from a log record.
    managementGetAttachmentId string
    taskId string
    Asynchronous task unique identifier.
    uid string
    Log id from a log record.
    attachment_id str
    Attachment identifier from a log record.
    management_get_attachment_id str
    task_id str
    Asynchronous task unique identifier.
    uid str
    Log id from a log record.
    attachmentId String
    Attachment identifier from a log record.
    managementGetAttachmentId String
    taskId String
    Asynchronous task unique identifier.
    uid String
    Log id from a log record.

    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