mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 09:34:07 -08:00
25 lines
470 B
TypeScript
25 lines
470 B
TypeScript
|
import {
|
||
|
ICredentialType,
|
||
|
NodePropertyTypes,
|
||
|
} from 'n8n-workflow';
|
||
|
|
||
|
export class CockpitApi implements ICredentialType {
|
||
|
name = 'cockpitApi';
|
||
|
displayName = 'Cockpit API';
|
||
|
properties = [
|
||
|
{
|
||
|
displayName: 'Cockpit URL',
|
||
|
name: 'url',
|
||
|
type: 'string' as NodePropertyTypes,
|
||
|
default: '',
|
||
|
placeholder: 'https://example.com',
|
||
|
},
|
||
|
{
|
||
|
displayName: 'Access Token',
|
||
|
name: 'accessToken',
|
||
|
type: 'string' as NodePropertyTypes,
|
||
|
default: '',
|
||
|
},
|
||
|
];
|
||
|
}
|