docs: Branding tweaks for Cal and Citrix ADC (no-changelog) (#10042)

This commit is contained in:
Jon
2024-07-15 15:16:41 +01:00
committed by GitHub
parent 0b021ab6a5
commit ef8c867ec7
12 changed files with 45 additions and 27 deletions

View File

@@ -0,0 +1,58 @@
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class NetscalerAdcApi implements ICredentialType {
name = 'citrixAdcApi';
displayName = 'Netscaler ADC API';
documentationUrl = 'netscaleradc';
properties: INodeProperties[] = [
{
displayName: 'URL',
name: 'url',
type: 'string',
default: '',
required: true,
},
{
displayName: 'Username',
name: 'username',
type: 'string',
default: '',
required: true,
},
{
displayName: 'Password',
name: 'password',
type: 'string',
default: '',
required: true,
typeOptions: {
password: true,
},
},
];
authenticate: IAuthenticateGeneric = {
type: 'generic',
properties: {
headers: {
'X-NITRO-USER': '={{$credentials.username}}',
'X-NITRO-PASS': '={{$credentials.password}}',
},
},
};
test: ICredentialTestRequest = {
request: {
baseURL: '={{$credentials.url}}',
url: '/nitro/v1/config/nspartition?view=summary',
},
};
}