2020-02-24 09:23:15 +00:00
|
|
|
name: 'HTTP Request Action'
|
|
|
|
description: 'Create any HTTP Request'
|
|
|
|
inputs:
|
|
|
|
url:
|
|
|
|
description: 'Request URL'
|
|
|
|
required: true
|
|
|
|
method:
|
|
|
|
description: 'Request Method'
|
|
|
|
required: false
|
|
|
|
default: 'POST'
|
|
|
|
contentType:
|
|
|
|
description: 'Content Type'
|
|
|
|
required: false
|
|
|
|
data:
|
|
|
|
description: 'Request Body as JSON String'
|
|
|
|
required: false
|
|
|
|
default: '{}'
|
2021-01-24 12:14:13 +00:00
|
|
|
files:
|
|
|
|
description: 'Map of absolute file paths as JSON String'
|
|
|
|
required: false
|
|
|
|
default: '{}'
|
2022-02-10 03:14:07 +00:00
|
|
|
file:
|
|
|
|
description: 'A single absolute file path'
|
|
|
|
required: false
|
2020-02-24 09:23:15 +00:00
|
|
|
username:
|
|
|
|
description: 'Auth Username'
|
|
|
|
required: false
|
|
|
|
password:
|
|
|
|
description: 'Auth Password'
|
|
|
|
required: false
|
|
|
|
timeout:
|
2024-03-16 15:35:51 +00:00
|
|
|
description: 'Request Timeout in milliseconds'
|
2020-02-24 09:23:15 +00:00
|
|
|
required: false
|
|
|
|
default: '5000'
|
|
|
|
bearerToken:
|
|
|
|
description: 'Bearer Authentication Token'
|
|
|
|
required: false
|
2020-08-04 15:09:29 +00:00
|
|
|
customHeaders:
|
|
|
|
description: 'Custom HTTP Headers'
|
|
|
|
required: false
|
2020-07-30 16:27:27 +00:00
|
|
|
preventFailureOnNoResponse:
|
|
|
|
description: 'Prevent this Action to fail if the request respond without an response'
|
2020-07-21 07:26:48 +00:00
|
|
|
required: false
|
2021-03-19 16:28:53 +00:00
|
|
|
ignoreStatusCodes:
|
|
|
|
description: 'Prevent this Action to fail if the request respond with one of the configured StatusCodes'
|
|
|
|
required: false
|
2020-10-07 16:29:38 +00:00
|
|
|
escapeData:
|
|
|
|
description: 'Escape newlines in data string content'
|
|
|
|
required: false
|
2022-07-19 08:27:31 +00:00
|
|
|
httpsCA:
|
|
|
|
description: 'Certificate authority as string in PEM format'
|
|
|
|
required: false
|
2023-08-10 08:55:12 +00:00
|
|
|
httpsCert:
|
|
|
|
description: 'Client Certificate as string'
|
|
|
|
required: false
|
|
|
|
httpsKey:
|
|
|
|
description: 'Client Certificate Key as string'
|
|
|
|
required: false
|
2023-02-04 12:28:08 +00:00
|
|
|
responseFile:
|
|
|
|
description: 'Persist the response data to the specified file path'
|
|
|
|
required: false
|
2023-12-17 14:41:37 +00:00
|
|
|
maskResponse:
|
|
|
|
description: 'Allows to mark your response as secret and hide the output in the action logs'
|
|
|
|
required: false
|
|
|
|
default: 'false'
|
2023-03-06 15:07:02 +00:00
|
|
|
retry:
|
|
|
|
description: 'optional amount of retries if the request fails'
|
|
|
|
required: false
|
|
|
|
retryWait:
|
|
|
|
description: 'wait time between retries in milliseconds'
|
|
|
|
required: false
|
2024-04-20 12:34:12 +00:00
|
|
|
ignoreSsl:
|
|
|
|
description: 'ignore ssl verify (rejectUnauthorized: false)'
|
|
|
|
default: 'false'
|
2020-02-24 09:23:15 +00:00
|
|
|
outputs:
|
|
|
|
response:
|
|
|
|
description: 'HTTP Response Content'
|
2022-08-17 07:56:02 +00:00
|
|
|
headers:
|
|
|
|
description: 'HTTP Response Headers'
|
2024-05-30 14:11:49 +00:00
|
|
|
status:
|
|
|
|
description: 'HTTP status message'
|
2020-02-24 09:23:15 +00:00
|
|
|
runs:
|
2024-01-08 13:40:25 +00:00
|
|
|
using: 'node20'
|
2020-02-24 09:23:15 +00:00
|
|
|
main: 'dist/index.js'
|