1. Registry
  2. Packages
  3. Files.com
  4. API Docs
  5. getAs2IncomingMessage
Viewing docs for Files.com v0.3.0
published on Thursday, Nov 5, 2026 by jschady
filescom logo Files.com
Viewing docs for Files.com v0.3.0
published on Thursday, Nov 5, 2026 by jschady

    An AS2IncomingMessage is a single record created for each individual AS2 file transfer incoming from a Partner. It contains the message details and tracks the lifecycle status with milestones of the transfer.

    Replaying a retained message creates a new incoming message. Its replayedFromMessageId identifies the incoming-message record that was replayed. The original AS2 messageId is preserved. The source record ID remains available after that record is removed by message retention.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as filescom from "pulumi-filescom";
    
    const exampleAs2IncomingMessage = filescom.getAs2IncomingMessage({
        id: 1,
    });
    
    import pulumi
    import pulumi_filescom as filescom
    
    example_as2_incoming_message = filescom.get_as2_incoming_message(id=1)
    
    package main
    
    import (
    	"github.com/jschady/pulumi-filescom/sdk/go/filescom"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := filescom.GetAs2IncomingMessage(ctx, &filescom.GetAs2IncomingMessageArgs{
    			Id: 1,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Filescom = Jschady.Filescom;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleAs2IncomingMessage = Filescom.GetAs2IncomingMessage.Invoke(new()
        {
            Id = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.filescom.FilescomFunctions;
    import com.pulumi.filescom.inputs.GetAs2IncomingMessageArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            final var exampleAs2IncomingMessage = FilescomFunctions.getAs2IncomingMessage(GetAs2IncomingMessageArgs.builder()
                .id(1)
                .build());
    
        }
    }
    
    variables:
      exampleAs2IncomingMessage:
        fn::invoke:
          function: filescom:getAs2IncomingMessage
          arguments:
            id: 1
    
    terraform {
      required_providers {
        filescom = {
          source = "pulumi/filescom"
        }
      }
    }
    
    data "filescom_as2_incoming_message" "exampleAs2IncomingMessage" {
      id = 1
    }
    

    Using getAs2IncomingMessage

    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 getAs2IncomingMessage(args: GetAs2IncomingMessageArgs, opts?: InvokeOptions): Promise<GetAs2IncomingMessageResult>
    function getAs2IncomingMessageOutput(args: GetAs2IncomingMessageOutputArgs, opts?: InvokeOutputOptions): Output<GetAs2IncomingMessageResult>
    def get_as2_incoming_message(id: Optional[int] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetAs2IncomingMessageResult
    def get_as2_incoming_message_output(id: pulumi.Input[Optional[int]] = None,
                                 opts: Optional[InvokeOutputOptions] = None) -> Output[GetAs2IncomingMessageResult]
    func GetAs2IncomingMessage(ctx *Context, args *GetAs2IncomingMessageArgs, opts ...InvokeOption) (*GetAs2IncomingMessageResult, error)
    func GetAs2IncomingMessageOutput(ctx *Context, args *GetAs2IncomingMessageOutputArgs, opts ...InvokeOption) GetAs2IncomingMessageResultOutput

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

    public static class GetAs2IncomingMessage 
    {
        public static Task<GetAs2IncomingMessageResult> InvokeAsync(GetAs2IncomingMessageArgs args, InvokeOptions? opts = null)
        public static Output<GetAs2IncomingMessageResult> Invoke(GetAs2IncomingMessageInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetAs2IncomingMessageResult> Invoke(GetAs2IncomingMessageInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetAs2IncomingMessageResult> getAs2IncomingMessage(GetAs2IncomingMessageArgs args, InvokeOptions options)
    public static Output<GetAs2IncomingMessageResult> getAs2IncomingMessage(GetAs2IncomingMessageArgs args, InvokeOptions options)
    public static Output<GetAs2IncomingMessageResult> getAs2IncomingMessage(GetAs2IncomingMessageArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: filescom:index/getAs2IncomingMessage:getAs2IncomingMessage
      arguments:
        # arguments dictionary
    data "filescom_get_as2_incoming_message" "name" {
        # arguments
    }

    The following arguments are supported:

    Id int
    ID of this AS2 incoming message record.
    Id int
    ID of this AS2 incoming message record.
    id number
    ID of this AS2 incoming message record.
    id Integer
    ID of this AS2 incoming message record.
    id number
    ID of this AS2 incoming message record.
    id int
    ID of this AS2 incoming message record.
    id Number
    ID of this AS2 incoming message record.

    getAs2IncomingMessage Result

    The following output properties are available:

    As2From string
    AS2 FROM header of message
    As2PartnerId int
    Id of the AS2 Partner associated with this message.
    As2StationId int
    Id of the AS2 Station associated with this message.
    As2To string
    AS2 TO header of message
    AttachmentFilename string
    Filename of the file being received.
    BodySize string
    Encrypted Payload Body Size
    ContentType string
    Content Type header of the incoming message.
    CreatedAt string
    Message creation date/time
    Date string
    Date Header
    EncryptedUri string
    URL to download the encrypted signed smime that is to sent as AS2 body
    HexRecipientSerial string
    Incoming Message Recipient(the Client Cert used to encrypt this message)'s serial in hex format.
    HttpHeaders object
    HTTP Headers sent with this message.
    HttpResponseCode string
    HTTP Response Code sent for this message
    HttpResponseHeaders object
    HTTP Headers sent for this message.
    Id int
    ID of this AS2 incoming message record.
    Ip string
    IP Address of the Sender
    MdnResponseUri string
    URL to download the http response body
    MessageDecrypted bool
    Message decrypted successfully?
    MessageId string
    AS2 Message Id
    MessageMdnReturned bool
    MDN returned?
    MessageProcessingSuccess bool
    Message processed successfully?
    MessageReceived bool
    Message body received?
    MessageSignatureVerified bool
    Message signature verified?
    Mic string
    AS2 Message Integrity Check
    MicAlgo string
    AS2 Message Integrity Check Algorithm Used
    ProcessingResult string
    Result of processing.
    ProcessingResultDescription string
    Result of processing description.
    RawUri string
    URL to download the original file contents
    RecipientIssuer string
    Incoming Message Recipient(the Client Cert used to encrypt this message)'s issuer
    RecipientSerial string
    Incoming Message Recipient(the Client Cert used to encrypt this message)'s serial
    ReplayedFromMessageId int
    ID of the incoming message record this message was replayed from. Empty for messages received directly from a trading partner.
    SmimeSignedUri string
    URL to download the file contents as smime with signature
    SmimeUri string
    URL to download the file contents encoded as smime
    Subject string
    AS2 Subject Header
    Uuid string
    UUID assigned to this message.
    WorkspaceId int
    ID of the Workspace associated with this AS2 Incoming Message.
    As2From string
    AS2 FROM header of message
    As2PartnerId int
    Id of the AS2 Partner associated with this message.
    As2StationId int
    Id of the AS2 Station associated with this message.
    As2To string
    AS2 TO header of message
    AttachmentFilename string
    Filename of the file being received.
    BodySize string
    Encrypted Payload Body Size
    ContentType string
    Content Type header of the incoming message.
    CreatedAt string
    Message creation date/time
    Date string
    Date Header
    EncryptedUri string
    URL to download the encrypted signed smime that is to sent as AS2 body
    HexRecipientSerial string
    Incoming Message Recipient(the Client Cert used to encrypt this message)'s serial in hex format.
    HttpHeaders interface{}
    HTTP Headers sent with this message.
    HttpResponseCode string
    HTTP Response Code sent for this message
    HttpResponseHeaders interface{}
    HTTP Headers sent for this message.
    Id int
    ID of this AS2 incoming message record.
    Ip string
    IP Address of the Sender
    MdnResponseUri string
    URL to download the http response body
    MessageDecrypted bool
    Message decrypted successfully?
    MessageId string
    AS2 Message Id
    MessageMdnReturned bool
    MDN returned?
    MessageProcessingSuccess bool
    Message processed successfully?
    MessageReceived bool
    Message body received?
    MessageSignatureVerified bool
    Message signature verified?
    Mic string
    AS2 Message Integrity Check
    MicAlgo string
    AS2 Message Integrity Check Algorithm Used
    ProcessingResult string
    Result of processing.
    ProcessingResultDescription string
    Result of processing description.
    RawUri string
    URL to download the original file contents
    RecipientIssuer string
    Incoming Message Recipient(the Client Cert used to encrypt this message)'s issuer
    RecipientSerial string
    Incoming Message Recipient(the Client Cert used to encrypt this message)'s serial
    ReplayedFromMessageId int
    ID of the incoming message record this message was replayed from. Empty for messages received directly from a trading partner.
    SmimeSignedUri string
    URL to download the file contents as smime with signature
    SmimeUri string
    URL to download the file contents encoded as smime
    Subject string
    AS2 Subject Header
    Uuid string
    UUID assigned to this message.
    WorkspaceId int
    ID of the Workspace associated with this AS2 Incoming Message.
    as2_from string
    AS2 FROM header of message
    as2_partner_id number
    Id of the AS2 Partner associated with this message.
    as2_station_id number
    Id of the AS2 Station associated with this message.
    as2_to string
    AS2 TO header of message
    attachment_filename string
    Filename of the file being received.
    body_size string
    Encrypted Payload Body Size
    content_type string
    Content Type header of the incoming message.
    created_at string
    Message creation date/time
    date string
    Date Header
    encrypted_uri string
    URL to download the encrypted signed smime that is to sent as AS2 body
    hex_recipient_serial string
    Incoming Message Recipient(the Client Cert used to encrypt this message)'s serial in hex format.
    http_headers any
    HTTP Headers sent with this message.
    http_response_code string
    HTTP Response Code sent for this message
    http_response_headers any
    HTTP Headers sent for this message.
    id number
    ID of this AS2 incoming message record.
    ip string
    IP Address of the Sender
    mdn_response_uri string
    URL to download the http response body
    message_decrypted bool
    Message decrypted successfully?
    message_id string
    AS2 Message Id
    message_mdn_returned bool
    MDN returned?
    message_processing_success bool
    Message processed successfully?
    message_received bool
    Message body received?
    message_signature_verified bool
    Message signature verified?
    mic string
    AS2 Message Integrity Check
    mic_algo string
    AS2 Message Integrity Check Algorithm Used
    processing_result string
    Result of processing.
    processing_result_description string
    Result of processing description.
    raw_uri string
    URL to download the original file contents
    recipient_issuer string
    Incoming Message Recipient(the Client Cert used to encrypt this message)'s issuer
    recipient_serial string
    Incoming Message Recipient(the Client Cert used to encrypt this message)'s serial
    replayed_from_message_id number
    ID of the incoming message record this message was replayed from. Empty for messages received directly from a trading partner.
    smime_signed_uri string
    URL to download the file contents as smime with signature
    smime_uri string
    URL to download the file contents encoded as smime
    subject string
    AS2 Subject Header
    uuid string
    UUID assigned to this message.
    workspace_id number
    ID of the Workspace associated with this AS2 Incoming Message.
    as2From String
    AS2 FROM header of message
    as2PartnerId Integer
    Id of the AS2 Partner associated with this message.
    as2StationId Integer
    Id of the AS2 Station associated with this message.
    as2To String
    AS2 TO header of message
    attachmentFilename String
    Filename of the file being received.
    bodySize String
    Encrypted Payload Body Size
    contentType String
    Content Type header of the incoming message.
    createdAt String
    Message creation date/time
    date String
    Date Header
    encryptedUri String
    URL to download the encrypted signed smime that is to sent as AS2 body
    hexRecipientSerial String
    Incoming Message Recipient(the Client Cert used to encrypt this message)'s serial in hex format.
    httpHeaders Object
    HTTP Headers sent with this message.
    httpResponseCode String
    HTTP Response Code sent for this message
    httpResponseHeaders Object
    HTTP Headers sent for this message.
    id Integer
    ID of this AS2 incoming message record.
    ip String
    IP Address of the Sender
    mdnResponseUri String
    URL to download the http response body
    messageDecrypted Boolean
    Message decrypted successfully?
    messageId String
    AS2 Message Id
    messageMdnReturned Boolean
    MDN returned?
    messageProcessingSuccess Boolean
    Message processed successfully?
    messageReceived Boolean
    Message body received?
    messageSignatureVerified Boolean
    Message signature verified?
    mic String
    AS2 Message Integrity Check
    micAlgo String
    AS2 Message Integrity Check Algorithm Used
    processingResult String
    Result of processing.
    processingResultDescription String
    Result of processing description.
    rawUri String
    URL to download the original file contents
    recipientIssuer String
    Incoming Message Recipient(the Client Cert used to encrypt this message)'s issuer
    recipientSerial String
    Incoming Message Recipient(the Client Cert used to encrypt this message)'s serial
    replayedFromMessageId Integer
    ID of the incoming message record this message was replayed from. Empty for messages received directly from a trading partner.
    smimeSignedUri String
    URL to download the file contents as smime with signature
    smimeUri String
    URL to download the file contents encoded as smime
    subject String
    AS2 Subject Header
    uuid String
    UUID assigned to this message.
    workspaceId Integer
    ID of the Workspace associated with this AS2 Incoming Message.
    as2From string
    AS2 FROM header of message
    as2PartnerId number
    Id of the AS2 Partner associated with this message.
    as2StationId number
    Id of the AS2 Station associated with this message.
    as2To string
    AS2 TO header of message
    attachmentFilename string
    Filename of the file being received.
    bodySize string
    Encrypted Payload Body Size
    contentType string
    Content Type header of the incoming message.
    createdAt string
    Message creation date/time
    date string
    Date Header
    encryptedUri string
    URL to download the encrypted signed smime that is to sent as AS2 body
    hexRecipientSerial string
    Incoming Message Recipient(the Client Cert used to encrypt this message)'s serial in hex format.
    httpHeaders any
    HTTP Headers sent with this message.
    httpResponseCode string
    HTTP Response Code sent for this message
    httpResponseHeaders any
    HTTP Headers sent for this message.
    id number
    ID of this AS2 incoming message record.
    ip string
    IP Address of the Sender
    mdnResponseUri string
    URL to download the http response body
    messageDecrypted boolean
    Message decrypted successfully?
    messageId string
    AS2 Message Id
    messageMdnReturned boolean
    MDN returned?
    messageProcessingSuccess boolean
    Message processed successfully?
    messageReceived boolean
    Message body received?
    messageSignatureVerified boolean
    Message signature verified?
    mic string
    AS2 Message Integrity Check
    micAlgo string
    AS2 Message Integrity Check Algorithm Used
    processingResult string
    Result of processing.
    processingResultDescription string
    Result of processing description.
    rawUri string
    URL to download the original file contents
    recipientIssuer string
    Incoming Message Recipient(the Client Cert used to encrypt this message)'s issuer
    recipientSerial string
    Incoming Message Recipient(the Client Cert used to encrypt this message)'s serial
    replayedFromMessageId number
    ID of the incoming message record this message was replayed from. Empty for messages received directly from a trading partner.
    smimeSignedUri string
    URL to download the file contents as smime with signature
    smimeUri string
    URL to download the file contents encoded as smime
    subject string
    AS2 Subject Header
    uuid string
    UUID assigned to this message.
    workspaceId number
    ID of the Workspace associated with this AS2 Incoming Message.
    as2_from str
    AS2 FROM header of message
    as2_partner_id int
    Id of the AS2 Partner associated with this message.
    as2_station_id int
    Id of the AS2 Station associated with this message.
    as2_to str
    AS2 TO header of message
    attachment_filename str
    Filename of the file being received.
    body_size str
    Encrypted Payload Body Size
    content_type str
    Content Type header of the incoming message.
    created_at str
    Message creation date/time
    date str
    Date Header
    encrypted_uri str
    URL to download the encrypted signed smime that is to sent as AS2 body
    hex_recipient_serial str
    Incoming Message Recipient(the Client Cert used to encrypt this message)'s serial in hex format.
    http_headers Any
    HTTP Headers sent with this message.
    http_response_code str
    HTTP Response Code sent for this message
    http_response_headers Any
    HTTP Headers sent for this message.
    id int
    ID of this AS2 incoming message record.
    ip str
    IP Address of the Sender
    mdn_response_uri str
    URL to download the http response body
    message_decrypted bool
    Message decrypted successfully?
    message_id str
    AS2 Message Id
    message_mdn_returned bool
    MDN returned?
    message_processing_success bool
    Message processed successfully?
    message_received bool
    Message body received?
    message_signature_verified bool
    Message signature verified?
    mic str
    AS2 Message Integrity Check
    mic_algo str
    AS2 Message Integrity Check Algorithm Used
    processing_result str
    Result of processing.
    processing_result_description str
    Result of processing description.
    raw_uri str
    URL to download the original file contents
    recipient_issuer str
    Incoming Message Recipient(the Client Cert used to encrypt this message)'s issuer
    recipient_serial str
    Incoming Message Recipient(the Client Cert used to encrypt this message)'s serial
    replayed_from_message_id int
    ID of the incoming message record this message was replayed from. Empty for messages received directly from a trading partner.
    smime_signed_uri str
    URL to download the file contents as smime with signature
    smime_uri str
    URL to download the file contents encoded as smime
    subject str
    AS2 Subject Header
    uuid str
    UUID assigned to this message.
    workspace_id int
    ID of the Workspace associated with this AS2 Incoming Message.
    as2From String
    AS2 FROM header of message
    as2PartnerId Number
    Id of the AS2 Partner associated with this message.
    as2StationId Number
    Id of the AS2 Station associated with this message.
    as2To String
    AS2 TO header of message
    attachmentFilename String
    Filename of the file being received.
    bodySize String
    Encrypted Payload Body Size
    contentType String
    Content Type header of the incoming message.
    createdAt String
    Message creation date/time
    date String
    Date Header
    encryptedUri String
    URL to download the encrypted signed smime that is to sent as AS2 body
    hexRecipientSerial String
    Incoming Message Recipient(the Client Cert used to encrypt this message)'s serial in hex format.
    httpHeaders Any
    HTTP Headers sent with this message.
    httpResponseCode String
    HTTP Response Code sent for this message
    httpResponseHeaders Any
    HTTP Headers sent for this message.
    id Number
    ID of this AS2 incoming message record.
    ip String
    IP Address of the Sender
    mdnResponseUri String
    URL to download the http response body
    messageDecrypted Boolean
    Message decrypted successfully?
    messageId String
    AS2 Message Id
    messageMdnReturned Boolean
    MDN returned?
    messageProcessingSuccess Boolean
    Message processed successfully?
    messageReceived Boolean
    Message body received?
    messageSignatureVerified Boolean
    Message signature verified?
    mic String
    AS2 Message Integrity Check
    micAlgo String
    AS2 Message Integrity Check Algorithm Used
    processingResult String
    Result of processing.
    processingResultDescription String
    Result of processing description.
    rawUri String
    URL to download the original file contents
    recipientIssuer String
    Incoming Message Recipient(the Client Cert used to encrypt this message)'s issuer
    recipientSerial String
    Incoming Message Recipient(the Client Cert used to encrypt this message)'s serial
    replayedFromMessageId Number
    ID of the incoming message record this message was replayed from. Empty for messages received directly from a trading partner.
    smimeSignedUri String
    URL to download the file contents as smime with signature
    smimeUri String
    URL to download the file contents encoded as smime
    subject String
    AS2 Subject Header
    uuid String
    UUID assigned to this message.
    workspaceId Number
    ID of the Workspace associated with this AS2 Incoming Message.

    Package Details

    Repository
    filescom jschady/pulumi-filescom
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the filescom Terraform Provider.
    filescom logo Files.com
    Viewing docs for Files.com v0.3.0
    published on Thursday, Nov 5, 2026 by jschady

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial