UNPKG

n8n-nodes-awx

Version:

n8n node to interact with Ansible AWX/Tower with improved type safety

45 lines 1.28 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AwxApi = void 0; class AwxApi { constructor() { this.name = 'awxApi'; this.displayName = 'AWX API'; this.documentationUrl = 'awx'; this.properties = [ { displayName: 'Base URL', name: 'baseUrl', type: 'string', default: '', placeholder: 'https://awx.example.com', required: true, }, { displayName: 'API Token', name: 'token', type: 'string', typeOptions: { password: true }, default: '', required: true, }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '=Bearer {{$credentials?.token}}', }, }, }; this.test = { request: { baseURL: '={{$credentials?.baseUrl}}/api/v2', url: '/ping/', method: 'GET', }, }; } } exports.AwxApi = AwxApi; //# sourceMappingURL=AwxApi.credentials.js.map