2022-07-24 08:36:17 -07:00
|
|
|
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2021-09-22 08:48:50 -07:00
|
|
|
|
|
|
|
export class ElasticSecurityApi implements ICredentialType {
|
|
|
|
name = 'elasticSecurityApi';
|
|
|
|
displayName = 'Elastic Security API';
|
|
|
|
documentationUrl = 'elasticSecurity';
|
|
|
|
properties: INodeProperties[] = [
|
|
|
|
{
|
|
|
|
displayName: 'Username',
|
|
|
|
name: 'username',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Password',
|
|
|
|
name: 'password',
|
|
|
|
type: 'string',
|
|
|
|
typeOptions: {
|
|
|
|
password: true,
|
|
|
|
},
|
|
|
|
default: '',
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Base URL',
|
|
|
|
name: 'baseUrl',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
placeholder: 'e.g. https://mydeployment.kb.us-central1.gcp.cloud.es.io:9243',
|
2022-07-24 08:36:17 -07:00
|
|
|
description: "Referred to as Kibana 'endpoint' in the Elastic deployment dashboard",
|
2021-09-22 08:48:50 -07:00
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|