Forum / Devolutions Password Server - API and SDKs

Documentation of the SDK

  • Create an Issue
  • Cancel


Helle dear support team,

is there a in-depth documentation of the SDK?

I've already downloaded it and started to get code working to log in and off, but there seems to be no documentation on how to create a password document. The DVLS_functions.txt file that is included in the source files isn't even up to date and I can't make sense out of simply the code that is provided.

Can you give me a simple working example on how to create an entry as a username / password document? It would be great to see how I would go about creating an entry that has a password included.

I hope you can help me out with this.

best wishes,

Niklas Heine

Clock19 days

Hello,

I would need to verify with our business architect, but he's on vacation right now. We will get back to you as soon as we can.

Best regards,



Jeff Dagenais

OFFICE CLOSURE!
Although our various support queues will be monitored for emergencies, Devolutions' offices will be closed on September 2nd 2019.

signaturesignature

Clock15 days


Hello,

has there been an update on this issue yet?

best wishes,
Niklas Heine

Clock5 days

Hello,

This is my first day back from vacation and I need to see what we can offer in the short term. My colleague Erica has a bunch of scripts for automated testing of our server, I will ask her to sanitize them and to post them as samples.

Best regards,



Maurice Côté

signaturesignature

Clock5 days


Hello,

From what I have tested, I can create a Credential entry and saving almost all properties except for the most important one, the password! So it is not working as it should.

A ticket has been sent to our engineering department and once I will get any information, I will let you know.

Sorry about that.

Best regards,



Érica Poirier

signaturesignature

Clock3 days


Hello,

For your information, here is the Python script I use to create a Credential entry (username/password). In fact, because the creation doesn't save the password in the right place, the get_connection_password returns an empty string. When I look on the web UI, the entry has been created without any password.

from dvlssdk import DVLSConnection
from dvlssdk.EntryType import *

DPS_URI = 'http://Your_DPS_URL'
DPS = DVLSConnection(DPS_URI, errorLevelLog='INFO')
DPS_ADMIN_USER = 'YourUsername'
DPS_ADMIN_PW = 'YourPassword'

DPS.login(DPS_ADMIN_USER, DPS_ADMIN_PW)

response = DPS.create_credential_entry("Default",
"MyCredentialEntry",
UserName='MyUserName',
MnemonicPassword='MyPassword',
Password='MyPassword',
Domain='MyDomain')

### Check the entry's password
Credentials_Entries_result = DPS.get_connections_by_name("MyCredentialEntry" )
Credentials_id = ''
if Credentials_Entries_result.success:
Credentials_id = Credentials_Entries_result.data[0].get('id')
pwd_response = DPS.get_connection_password(Credentials_id)
pwd = pwd_response.data
print("The password is : " + pwd)

DPS.logout(DPS_ADMIN_USER)

Best regards,



Érica Poirier

signaturesignature

Clock3 days


Hello,

thank you very much, I will test this code later today.

Also, is there a way to create a folder through the SDK as well? That would be crucial to us, since we already have a system with many folders and up to 6 hierarchy levels.

best wishes,

Niklas Heine

Clock1 day

Hello,

Here is some sample commands you can use to create folders and subfolders. The Group property is used for creating subfolders. Without this property, the folder will be created as a top level folder (under root folder).

response = DPS.create_connection(name='MyTestFolder',
entry_type='Group',
Description='Folder created from PythonSDK')

response = DPS.create_connection(name='MySubTestFolder',
entry_type='Group',
Description='Folder created from PythonSDK',
Group='MyTestFolder')

response = DPS.create_connection(name='MyDeepSubTestFolder',
entry_type='Group',
Description='Folder created from PythonSDK',
Group='MyTestFolder\MySubTestFolder')


Best regards,



Érica Poirier

signaturesignature

Clock19 hrs