n8n/packages/nodes-base/credentials/CockpitApi.credentials.ts

27 lines
512 B
TypeScript
Raw Normal View History

import { ICredentialType, INodeProperties } from 'n8n-workflow';
2020-04-04 07:04:25 -07:00
export class CockpitApi implements ICredentialType {
name = 'cockpitApi';
2020-04-04 07:04:25 -07:00
displayName = 'Cockpit API';
documentationUrl = 'cockpit';
properties: INodeProperties[] = [
2020-04-04 07:04:25 -07:00
{
displayName: 'Cockpit URL',
name: 'url',
type: 'string',
2020-04-04 07:04:25 -07:00
default: '',
placeholder: 'https://example.com',
},
{
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
2020-04-04 07:04:25 -07:00
default: '',
},
];
}