n8n-nodes-ovh
Version:
Comprehensive n8n nodes for OVH API integration - Developed by Ascenzia, experts in AI agent creation
98 lines • 3.4 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OvhApi = void 0;
class OvhApi {
constructor() {
this.name = 'ovhApi';
this.displayName = 'OVH API';
this.documentationUrl = 'https://api.ovh.com/console/';
this.properties = [
{
displayName: 'Endpoint',
name: 'endpoint',
type: 'options',
options: [
{
name: 'OVH Europe',
value: 'https://eu.api.ovh.com/1.0',
},
{
name: 'OVH Canada',
value: 'https://ca.api.ovh.com/1.0',
},
{
name: 'OVH US',
value: 'https://api.us.ovhcloud.com/1.0',
},
{
name: 'So you Start Europe',
value: 'https://eu.api.soyoustart.com/1.0',
},
{
name: 'So you Start Canada',
value: 'https://ca.api.soyoustart.com/1.0',
},
{
name: 'Kimsufi Europe',
value: 'https://eu.api.kimsufi.com/1.0',
},
{
name: 'Kimsufi Canada',
value: 'https://ca.api.kimsufi.com/1.0',
},
],
default: 'https://eu.api.ovh.com/1.0',
description: 'The OVH API endpoint to use.',
},
{
displayName: 'Application Key',
name: 'applicationKey',
type: 'string',
typeOptions: { password: true },
default: '',
description: 'Your OVH application key.',
required: true,
},
{
displayName: 'Application Secret',
name: 'applicationSecret',
type: 'string',
typeOptions: {
password: true,
},
default: '',
description: 'Your OVH application secret.',
required: true,
},
{
displayName: 'Consumer Key',
name: 'consumerKey',
type: 'string',
typeOptions: {
password: true,
},
default: '',
description: 'Your OVH consumer key.',
required: true,
},
];
this.test = {
request: {
baseURL: '={{$credentials.endpoint}}',
url: '/auth/time',
method: 'GET',
},
rules: [
{
type: 'responseCode',
properties: {
value: 200,
message: 'Connection successful! Authentication will be verified when using the nodes. Make sure your Application Key, Application Secret, and Consumer Key are correct.',
},
},
],
};
}
}
exports.OvhApi = OvhApi;
//# sourceMappingURL=OvhApi.credentials.js.map