Webservice: Tenant

handling of tenants [Commercial editions only]

Index Method Request(s) Response Description
1 deleteTenant sid
tenantId
deletes an existing tenant
2 getTenant sid
name
tenant gets a specific tenant by it's name
3 getTenantById sid
tenantId
tenant gets a specific tenant by it's identifier
4 storeTenant sid
tenant
tenantId creates/updates a tenant; returns the identifier of the created/updated instance
5 listTenants sid
tenant gets all existing tenants

Method #1: deleteTenant

deletes an existing tenant

Request

Name Type Required Multiple Description
     sid
String Y
     tenantId
Long Y

Method #2: getTenant

gets a specific tenant by it's name

Request

Name Type Required Multiple Description
     sid
String Y
     name
String Y

Response

Name Type Required Multiple Description
     tenant
WSTenant Y
          id
Long Y unique identifier
          lastModified
String the last modified date (format must be 'yyyy-MM-dd HH:mm:ss' or 'yyyy-MM-dd')
          name
String Y
          displayName
String
          street
String
          postalCode
String
          city
String
          state
String
          country
String
          email
String
          telephone
String
          type
Int Y must be 0
          maxUsers
Integer maximum number of users
          maxSessions
Integer maximum number of concurrent sessions
          maxRepoDocs
Long maximum number of documents
          enabled
Int Y 1 = enabled, 0 = disabled
          expire
String an expiration date (format must be 'yyyy-MM-dd HH:mm:ss' or 'yyyy-MM-dd')
          maxRepoSize
Long maximum repository's size expressed in MB

Method #3: getTenantById

gets a specific tenant by it's identifier

Request

Name Type Required Multiple Description
     sid
String Y
     tenantId
Long Y

Response

Name Type Required Multiple Description
     tenant
WSTenant Y
          id
Long Y unique identifier
          lastModified
String the last modified date (format must be 'yyyy-MM-dd HH:mm:ss' or 'yyyy-MM-dd')
          name
String Y
          displayName
String
          street
String
          postalCode
String
          city
String
          state
String
          country
String
          email
String
          telephone
String
          type
Int Y must be 0
          maxUsers
Integer maximum number of users
          maxSessions
Integer maximum number of concurrent sessions
          maxRepoDocs
Long maximum number of documents
          enabled
Int Y 1 = enabled, 0 = disabled
          expire
String an expiration date (format must be 'yyyy-MM-dd HH:mm:ss' or 'yyyy-MM-dd')
          maxRepoSize
Long maximum repository's size expressed in MB

Method #4: storeTenant

creates/updates a tenant; returns the identifier of the created/updated instance

Request

Name Type Required Multiple Description
     sid
String Y
     tenant
WSTenant Y
          id
Long Y unique identifier
          lastModified
String the last modified date (format must be 'yyyy-MM-dd HH:mm:ss' or 'yyyy-MM-dd')
          name
String Y
          displayName
String
          street
String
          postalCode
String
          city
String
          state
String
          country
String
          email
String
          telephone
String
          type
Int Y must be 0
          maxUsers
Integer maximum number of users
          maxSessions
Integer maximum number of concurrent sessions
          maxRepoDocs
Long maximum number of documents
          enabled
Int Y 1 = enabled, 0 = disabled
          expire
String an expiration date (format must be 'yyyy-MM-dd HH:mm:ss' or 'yyyy-MM-dd')
          maxRepoSize
Long maximum repository's size expressed in MB

Response

Name Type Required Multiple Description
     tenantId
Long Y

Method #5: listTenants

gets all existing tenants

Request

Name Type Required Multiple Description
     sid
String Y

Response

Name Type Required Multiple Description
     tenant
WSTenant Y Y
          id
Long Y unique identifier
          lastModified
String the last modified date (format must be 'yyyy-MM-dd HH:mm:ss' or 'yyyy-MM-dd')
          name
String Y
          displayName
String
          street
String
          postalCode
String
          city
String
          state
String
          country
String
          email
String
          telephone
String
          type
Int Y must be 0
          maxUsers
Integer maximum number of users
          maxSessions
Integer maximum number of concurrent sessions
          maxRepoDocs
Long maximum number of documents
          enabled
Int Y 1 = enabled, 0 = disabled
          expire
String an expiration date (format must be 'yyyy-MM-dd HH:mm:ss' or 'yyyy-MM-dd')
          maxRepoSize
Long maximum repository's size expressed in MB