REST Connector

Version 24.1.8910

REST Connector

REST connectors support building dynamic REST requests to consume RESTful API web services.


REST connectors expose a simple interface to build the headers, authorization, body, and HTTP method for a REST request. The request body can be set statically in the connector configuration or dynamically generated based on the files processed by the connector.


  • Trigger は、スケジュールに従ってrequest を実行し、フローに送信されるファイルを生成する場合があります。このアクションはフローの起点として機能します。
  • Transform は、フローからのメッセージをrequest のインプットとして受け入れ、アウトプットを生成します。このアクションはフローの中間として機能します。
  • Terminal は、フローからのメッセージをrequest のインプットとして受け入れ、フローの終点として機能します。

Connector Settings

Settings Tab


Settings related to the core configuration of the connector.

  • コネクタId コネクタの静的な一意の識別子。
  • コネクタの種類 コネクタ名とその機能の説明が表示されます。
  • コネクタの説明 コネクタとフローにおけるロールについて自由形式の説明を記載するオプションのフィールド。
  • Action Which action the connector should execute. See above for details on the three action types: Trigger, Transform, and Terminal.
  • Method & URL The HTTP method and target HTTP URL for the REST request. The method options are: GET, POST, PUT, PATCH, and DELETE.


Settings related to authenticating with the REST service.

  • Authentication Type The type of authentication to use with the REST service. Options vary based on your selection. See the Authenticating section for details.

The Header section supports adding a list of HTTP headers to include in the outgoing REST request. Headers are specified as name-value pairs. You can use this section to specify the content-type of the message body when the Body Type is set to raw. See Static Requests for more information.


Settings related to generating the body of the REST request. Not applicable when the HTTP method is set to GET.

  • Body Type The type of body content supplied with the REST request. See Body Types for an explanation of each type.

TLS Server Authentication

Settings related to verifying the TLS server’s identity.

  • TLS Server Certificate The public key certificate used to verify the identity of a TLS server. You can upload a certificate, leave the field blank to allow the underlying OS/JVM to perform certificate validation, or set it to Any Certificate to trust the target server’s identity. Use Any Certificate with caution: the certificate verifies that you are connecting to the intended server.

Automation Tab

Automation Settings

Settings related to the automatic processing of files by the connector.

  • Send A toggle that instructs the connector to automatically send files when they are ready.
  • Retry Interval The interval the connector waits before retrying a failed send.
  • Max Attempts The number of attempts the connector makes to send the message. Setting this value to 1 instructs the connector to only make the initial send attempt without retrying. The connector waits the duration specified by Retry Interval between each attempt.
  • Receive A toggle that instructs the connector to automatically process files when they are ready and send them to the Output tab.
  • Receive Interval The interval at which the connector processes all pending files and sends them to the Output tab. The next field depends on the selection here:
    Hourly — A Minutes Past the Hour dropdown menu allows you to specify the number of minutes past the hour to process receive files.
    Daily — A Time field appears to specify the time of day (in UTC) to process receive files.
    Weekly — Two fields appear. Day allows you to select the day of the week for processing, and Time allows you to specify the time (in UTC) to process receive files.
    Monthly — Two fields appear. Day allows you to select the day of the month for processing, and Time allows you to specify the time (in UTC) to process receive files.
    Minute — A Minutes field appears to specify the number of minutes between processing intervals.
    Advanced — A five-position Cron Expression field allows you to specify exact processing intervals. Highlight the field in the connector for more information about these expressions.
  • Minutes Past the Hour The minutes offset for an hourly schedule. Only applicable when Receive Interval is set to Hourly. For example, if this value is set to 5, the automation service sends requests at 1:05, 2:05, 3:05, etc.



  • 最大ワーカー数 このコネクタでファイルを処理するためにスレッドプールで消費されるワーカースレッドの最大数。設定された場合、これは設定 > オートメーションページのデフォルト設定をオーバーライドします。
  • 最大ファイル数 コネクタに割り当てられた各スレッドが送信するファイルの最大数。設定された場合、これは設定 > オートメーションページのデフォルト設定をオーバーライドします。



コネクタのE メール設定

サービスレベル(SLA)を実行する前に、通知用のE メールアラートを設定する必要があります。アラートを設定をクリックすると、新しいブラウザウィンドウで設定ページが開き、システム全体のアラートを設定することができます。詳しくは、アラートを参照してください。


サービスレベルでは、フロー内のコネクタが送受信すると予想される処理量を設定し、その量が満たされると予想される時間枠を設定できます。CData Arc は、サービスレベルが満たされていない場合にユーザーに警告するE メールを送信し、SLA を At Risk(危険) としてマークします。これは、サービスレベルがすぐに満たされない場合に Violated(違反) としてマークされることを意味します。これにより、ユーザーはサービスレベルが満たされていない理由を特定し、適切な措置を講じることができます。At Risk の期間内にサービスレベルが満たされなかった場合、SLA はViolated としてマークされ、ユーザーに再度通知されます。


  • コネクタに個別の送信アクションと受信アクションがある場合は、ラジオボタンを使用してSLA に関連する方向を指定します。
  • 検知基準(最小)を、処理が予想されるトランザクションの最小値(量)に設定し、フィールドを使用して期間を指定します。
  • デフォルトでは、SLA は毎日有効です。これを変更するには、毎日のチェックをOFF にし、希望する曜日のチェックをON にします。
  • 期間終了前にステータスを’At Risk’ に設定するタイミングを使用して、SLA がAt Risk としてマークされるようにします。
  • デフォルトでは、通知はSLA が違反のステータスになるまで送信されません。これを変更するには、‘At Risk’ 通知を送信のチェックをON にします。

次の例は、月曜日から金曜日まで毎日1000ファイルを受信すると予想されるコネクタに対して構成されたSLA を示しています。1000ファイルが受信されていない場合、期間終了の1時間前にAt Risk 通知が送信されます。

Advanced Tab

TLS Client Authentication

Settings related to client authentication when two-way TLS authentication is required.

  • Private Certificate The private certificate presented during TLS client authentication.
  • Certificate Password The password required to access the TLS client certificate.

Proxy Settings

Settings for using a proxy with the connector.

  • Use Global A toggle that instructs the connector to use the proxy settings configured under the Settings tab of Arc.
  • Proxy Type The type of proxy to use. Select None to not use a proxy. Otherwise, select Tunnel, SOCKS4, SOCKS5, or HTTP.
  • Proxy Host The proxy server. Formatting depends on the Proxy Type selected.
  • Proxy Port The port to use when connecting to the proxy.
  • Proxy User The username to use when connecting to the proxy.
  • Proxy Password The password for the associated username.
  • Authentication Scheme The protocol to use when connecting to the proxy. Options include Basic, Digest, Proprietary, and NTLM.

Advanced Settings

Settings not included in the previous categories.

  • ArcScript in Headers Allows for the evaluation of ArcScript expressions in the headers before the query is issued. See the URL section for examples.
  • ArcScript in URL Allows for the evaluation of ArcScript expressions in the URL before the query is issued. See the Header section for examples.
  • Output Error Responses By default, the connector does not output a message to the flow when the response is sent with a status code that does not indicate success. Enable this setting to have the connector output a message to the flow for these error responses. You can use the HTTP-Status-Code header to filter messages later in the flow.
  • Chunked Encoding Whether to use HTTP Chunked Transfer Encoding when sending requests. This allows the application to send portions (chunks) of the message sequentially to avoid overloading the connection.
  • Chunk Size The size, in bytes, of each chunk when Chunked Encoding is enabled.
  • GET Request Body Allows GET requests to use the input message data as the body of the request.
  • HTTP Version Whether to use HTTP 1.0, 1.1, or 2.0 when connecting to the REST service.
  • Output Behavior By default, the connector outputs a message containing the Response data. The other options allow you to output the Input Message so it can be processed further, or to not output a message at all.
  • 処理の遅延 インプットフォルダに置かれたファイルの処理を遅延させる時間(秒)。これは旧式の設定です。代替として、ローカルファイルシステムの管理にはFile コネクタの使用がベストプラクティスです。
  • Timeout The duration in seconds to wait for a response from the REST server before throwing a timeout error.
  • Response Headers When set, the connector promotes the specified headers from the REST message as metadata on the downloaded message. You can specify multiple headers in a comma-separated list.
  • ローカルファイルスキーム コネクタがアウトプットするメッセージにファイル名を割り当てるスキーム。ファイル名にマクロを動的に使用して、識別子やタイムスタンプなどの情報を含めることができます。詳しくは、マクロ を参照してください。
  • TLS Enabled Protocols The list of TLS/SSL protocols supported when establishing outgoing connections. Best practice is to only use TLS protocols. Some obsolete operating systems do not support TLS 1.2.


Message settings determine how the connector searches for messages and manages them after processing. You can save messages to your Sent folder or you can group them based on a Sent folder scheme, as described below.

  • Sent フォルダに保存 チェックすると、コネクタで処理されたファイルをコネクタのSent フォルダにコピーします。
  • Sent Folder Scheme Instructs the connector to group files in the Sent folder according to the selected interval. For example, the Weekly option instructs the connector to create a new subfolder each week and store all sent files for the week in that folder. The blank setting instructs the connector to save all files directly in the Sent folder. For connectors that process many transactions, using subfolders can help keep files organized and improve performance.


  • Log Level The verbosity of logs generated by the connector. When you request support, set this to Debug.
  • Log Subfolder Scheme Instructs the connector to group files in the Logs folder according to the selected interval. For example, the Weekly option instructs the connector to create a new subfolder each week and store all logs for the week in that folder. The blank setting tells the connector to save all logs directly in the Logs folder. For connectors that process many transactions, using subfolders helps keep logs organized and improves performance.
  • Log Messages Check this to have the log entry for a processed file include a copy of the file itself. If you disable this, you might not be able to download a copy of the file from the Input or Output tabs.


Miscellaneous settings are for specific use cases.

  • Other Settings Enables you to configure hidden connector settings in a semicolon-separated list (for example, setting1=value1;setting2=value2). Normal connector use cases and functionality should not require the use of these settings.

Establishing a Connection

A valid target URL is required to establish a connection to any REST service. The service URL can support various HTTP methods, and you should configure the Method based on the particular web service action or data set to retrieve. Some services might also require authentication or a set of custom headers in order to consume the service.

If the target URL is an HTTPS URL, set the TLS Server Certificate to the public key certificate identifying the server. To implicitly trust the target endpoint, set the field to Any Certificate.


The REST connector supports a number of authentication types, and each type has its own requirements:

  • Basic (plain text), Digest (encrypted), and NTLM require username-password authentication. These credentials are supplied to the REST service as headers in the request.

  • OAuth authentication requires an app registration in the REST service’s web portal or development console. The Callback URL to include in the app registration is shown in the Arc UI. Choose the Grant Type that applies to the REST service, and specify the remaining settings from the details shown in the REST service’s web portal or development console. Then click Get New Access Token to obtain the necessary tokens to interact with the service. Once the initial tokens have been retrieved, the application refreshes the tokens as they approach expiration.

  • Bearer Token authentication requires a token from the service’s web portal or development console.

  • AWS Signature authentication, for authenticating against Amazon, requires configuration credentials provided by Amazon: Access Key, Secret Key, and so forth.

Body Types

Use the connector Settings tab to specify how the body is configured, and what type of information is supplied. The following list describes each option in more detail.

  • none: No body is supplied with the REST request.
  • form-data: The body is supplied as a set of name-value pairs (fields). Use the dropdown list next to Name to select the field type.
    • Static: Supply both the Name and the Value.
    • XML: Supply the Name in the UI. The Value is dynamically read from the input file processed by the connector. For more information, see Dynamic Form Data.
    • File: Each connector can have one body field set to File. This causes the input file to be sent in the body of the request. The Value field is greyed out since the connector uses the input file itself as the form data.

      Note: The File option is incompatible with dynamic requests and other file requests. If you use this option, you can only combine it with static fields.
    • Header: Use the Value field to specify which header from the input message to read from for the body.
    • ArcScript: The Value supplied is rendered as ArcScript, and the resulting value is used in the request body.
  • x-www-urlencoded: The body is configured in the same way as form-data; however, the name-value pairs are encoded as a URL query string instead of multipart form data.
  • raw: The body is set to the contents of the input file processed by the connector. Select the Content Type of the body using the dropdown, or by specifying it as a custom header in the Header section.

Static Requests

REST requests that have entirely static content (such as requests that use the HTTP GET method) do not require an input file, since the request content is configured entirely in the connector UI. Simply add any necessary name-value pairs as custom headers in the Header section or form data in the Body section.

Static requests can be automatically sent according to a schedule if Receive Automation is enabled. The response to each request is stored in the output folder or passed along to the next connector in the flow.

If Send Automation is enabled, files arriving at the connector input folder also trigger a static request. The content of the input file is ignored, and the request is sent according to the configuration in the UI.

Dynamic Requests

REST requests can be dynamically populated with data from files that arrive in the connector input folder.

Raw Input Data

If you set the Body Type of the request to raw, the content of input files are sent as the body of the REST request.

Use the Content Type dropdown to set the specific content type of the data. If the content type you need is not listed, you can add a Content-Type header in the Header section.

Dynamic Form Data

If you set the Body Type of the request to form-data or x-www-urlencoded, the connector looks for specific values from the input file to populate the request. For each name-value pair that is set to XML, the connector scans input files for an XML element that shares the same name as the field name, and that uses a specific XML structure, as shown below:


To fit this structure, CData strongly recommends that you use an XML Map connector prior to the REST connector in the flow, as described below.

When the connector finds an element that matches the field name and required XML structure, the value in this element is used as the value in the name-value pair. For example, if the body has a dynamic field with the name CustomerID, and the input file has the XML shown below, the REST connector sets the value of the CustomerID field to 12354.


Dynamic Templates with XML Map

Use the XML Map connector in conjunction with the REST connector to easily build dynamic requests out of other XML data structures. The XML Map connector converts custom XML structures into the XML structure that the REST connector expects.

First, configure the REST connector with the set of dynamic (and static) Body fields that should be present in the request. Next, connect an XML Map connector to the REST connector in the Arc flow and save the flow changes. This allows the XML Map connector to detect which fields the REST connector expects in incoming input files.

Then, inside the XML Map connector, the Destination File dropdown includes the REST request schema. Select this as the Destination, and set the Source File to a custom XML structure. This populates the XML Map Mapping Editor, and you can drag and drop the data that needs to be included in the REST request from the source structure into the destination structure. Once the mapping is complete, the XML Map connector automatically converts files that match the source file into a valid REST request structure.

For more information on using the XML Map connector, please see the XML Map connector documentation.


If you select Allow ArcScript in URL on the Advanced tab of the connector configuration pane, expressions in ArcScript can be evaluated to generate dynamic strings as URLs. For example, the following URL includes the date and time:[_ | now('yyyyMMdd')]

The URL below includes a header on the incoming message for queries triggered through send automation:[_message.header:customerid]


If you select Allow ArcScript in Headers on the Advanced tab of the connector configuration pane, expressions in ArcScript can be evaluated to generate dynamic strings as header values. For example, the following header contains the date and time:

Timestamp [_ | now('yyyyMMdd')]

The header below contains a customer Id for queries triggered through send automation:

Customer [_message.header:customerid]



CData Arc はこれらのマクロをサポートしており、すべて次の構文を使用します:%Macro%

Macro 説明
ConnectorID コネクタのConnectorID を返します。
Ext コネクタが処理中のファイルの拡張子を返します。
Filename コネクタが処理中のファイルのファイル名(拡張子を含む)を返します。
FilenameNoExt コネクタが処理中のファイルのファイル名(拡張子なし)を返します。
MessageId コネクタがアウトプットするメッセージのMessageId を返します。
RegexFilename:pattern コネクタで処理中のファイルのファイル名にRegEx パターンを適用します。
Header:headername コネクタが処理中のメッセージのヘッダー(headername)の値を返します。
LongDate システムの現在の日時を長い形式(例:Wednesday, January 24, 2024)で返します。
ShortDate システムの現在の日時をyyyy-MM-dd 形式(例:2024-01-24)で返します。
DateFormat:format システムの現在の日時を指定されたフォーマット(format)で返します。使用可能な日付フォーマットについては、サンプル日付フォーマット を参照してください。
Vault:vaultitem 指定されたvault 項目の値を返します。

%Ext% や%ShortDate% などの引数を必要としないマクロもありますが、引数を必要とするマクロもあります。引数を渡すマクロはすべて次の構文を用います:%Macro:argument%


  • %Header:headername%:headername はメッセージのヘッダー名です。
  • %Header:mycustomheader% は、インプットメッセージで設定されたmycustomheader ヘッダーの値を返します。
  • %Header:ponum% は、インプットメッセージで設定されたponum ヘッダーの値に対応します。
  • %RegexFilename:pattern%:pattern は正規表現パターンです。例えば、%RegexFilename:^([\w][A-Za-z]+)% はファイル名の最初の単語と照合し、大文字と小文字を区別せずに結果を返します(test_file.xmltest に変換されます)。
  • %Vault:vaultitem%:vaultitem は、vault のアイテム名です。例えば、%Vault:companyname% はVault に保存されているcompanyname アイテムの値を返します。
  • %DateFormat:format%:format は使用可能な日付フォーマットです(詳細はサンプル日付フォーマット を参照してください)。例えば、%DateFormat:yyyy-MM-dd-HH-mm-ss-fff% はファイルの日付とタイムスタンプを返します。


  • 複数のマクロを1つのファイル名にまとめる:%DateFormat:yyyy-MM-dd-HH-mm-ss-fff%%EXT%
  • マクロの外側にテキストを含める:MyFile_%DateFormat:yyyy-MM-dd-HH-mm-ss-fff%
  • マクロ内にテキストを含める:%DateFormat:'DateProcessed-'yyyy-MM-dd_'TimeProcessed-'HH-mm-ss%