http/action.yml
Frank Jogeleit df00cdf429 Add input for custom CA
Signed-off-by: Frank Jogeleit <frank.jogeleit@lovoo.com>
2022-07-19 10:27:31 +02:00

58 lines
1.7 KiB
YAML

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: '{}'
files:
description: 'Map of absolute file paths as JSON String'
required: false
default: '{}'
file:
description: 'A single absolute file path'
required: false
username:
description: 'Auth Username'
required: false
password:
description: 'Auth Password'
required: false
timeout:
description: 'Request Timeout in Sec'
required: false
default: '5000'
bearerToken:
description: 'Bearer Authentication Token'
required: false
customHeaders:
description: 'Custom HTTP Headers'
required: false
preventFailureOnNoResponse:
description: 'Prevent this Action to fail if the request respond without an response'
required: false
ignoreStatusCodes:
description: 'Prevent this Action to fail if the request respond with one of the configured StatusCodes'
required: false
escapeData:
description: 'Escape newlines in data string content'
required: false
httpsCA:
description: 'Certificate authority as string in PEM format'
required: false
outputs:
response:
description: 'HTTP Response Content'
runs:
using: 'node16'
main: 'dist/index.js'