ScannerVision Web Server

<back to all web services

GetConnections

The following routes are available for this service:
GET/connections

export class GetConnections
{

    public constructor(init?: Partial<GetConnections>) { (Object as any).assign(this, init); }
}

export enum PermissionType
{
    Group = 'Group',
    User = 'User',
}

export interface IConnectionPermission extends IInterface
{
    Allow: boolean;
    Connection: IConnectorConnection;
    Type: PermissionType;
}

export enum PropertyType
{
    Binary = 1,
    Boolean = 2,
    ConnectionString = 3,
    Credential = 4,
    Integer = 5,
    Picklist = 6,
    String = 7,
    OAuth2 = 8,
    Certificate = 9,
}

export interface IConnectionPropertyDescription extends IInterface
{
    Description: string;
    Name: string;
    PropertyId: string;
    PropertyType: PropertyType;
}

export interface IUserGroup extends IIdTemplatesItem, IGroup
{
    Users: ReadOnlyCollection<IUser>;
}

export interface IUser extends IIdTemplatesItem
{
    Groups: ReadOnlyCollection<IUserGroup>;
    EmailAddress: string;
    HasPassword: boolean;
    HomeFolder: string;
    Password: string;
    SbcUser?: boolean;
}

export interface IConnectorConnection extends IStatus
{
    ConnectorId: string;
    Description: string;
    Id: string;
    MaxConnections: number;
    Name: string;
    Permissions: ReadOnlyCollection<IConnectionPermission>;
    PropertyDescriptions: ReadOnlyCollection<IConnectionPropertyDescription>;
    SetupUser: IUser;
}

export class GetConnectionsResponse
{
    public Connections: IConnectorConnection[];
    public IsAuthenticated: boolean;

    public constructor(init?: Partial<GetConnectionsResponse>) { (Object as any).assign(this, init); }
}

TypeScript GetConnections DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /connections HTTP/1.1 
Host: buildmax.org 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{Unable to show example output for type 'GetConnectionsResponse' using the custom 'csv' filter}No parameterless constructor defined for this object.