Virima API



Home
Commons
Constructs
Error Codes
Tester


SERVICES
CertificateManagementService
AgentResourceMonitor
AndroidService
AnnouncementService
AssetLicenseEntitlementService
ConsumableService
HardwareAssetService
OtherAssetService
SoftwareLicenseAssetService
StockRoomService
StockRoomTypeService
UserLicenseEntitlementService
AuditRecordService
BSMService
AvailabilityService
CommitmentScheduleService
OutagesService
OutScopeService
BusinessService
ServiceCommitment
ServiceOffering
InScopeService
ChangeAttributeService
ChangeApprovalServices
CherwellIntegrationService
CmdbAuditService
CMDBCIRelationship
CMDBCIVersion
CMDBCIService
CommentService
CommonService
ConfigurationServices
ContractService
CorrelationService
CostCenterService
CredentialService
CustomerService
CustomizedColumnsService
CyberArkService
DemandService
DesignationService
DevOpsService
DiscoveryService
DiscoveryMonitoringProfileService
DiscoveryClientService
DiscoveryPattern
DiscoveryScanService
DiscoveryScanSplitService
Document
DuplicatesAndRemediation
EMEmailService
EventService
ExternalAlertService
FederationService
FileService
FinanceService
GetRecordService
GroupProbeService
HelpDeskDashboardService
HomePageService
ImportCIService
ImportITILService
IncidentService
PriorityService
TimescaleService
IncidentAttributeService
InfoBloxService
AssetsAuditService
ITILMetricService
ITSMChangeService
ITSMTicketMgtService
IvantiIntegrationService
JiraIntegrationService
KnowledgeAttributeService
KnowledgeManagementService
LocationService
LoginService
MajorSoftwareService
MFAService
MMCCertificateService
OwnerService
PreprocessorService
PurchaseOrderService
PurchaseOrderLineItemService
ReceivingSlipService
ReceivingSlipsLineService
RequestItemService
RequestProcurementService
TransferOrderService
ProbeService
ProblemService
ProblemAttributeService
ProcessNetworkConnections
ProcessjobsService
ProgramService
ProjectService
PropertyGroupService
ReleaseManagementService
ReportDashBoardService
ReportingService
ReportingClauseService
ReportingOrderService
ReportPresentationService
RequestService
RequestAttributeService
AssessmentMasterAndQuestionService
RiskMangaementService
RoleAccessService
RuleService
RunBookService
SAMLService
SampleService
ScanService
SDPService
SearchService
SensorService
ServiceCatalog
ServiceNowMappingService
ServiceNowRecordService
SLAService
SoftwareMetricsService
ImportSpiceWorkTicketsService
SurveyMastersAndQuestions
TagService
TaskService
TaskTimeTrackingService
TimeTrackingExportService
TimeTrackingService
UCFADService
UnfuddleService
UserDepartmentService
UserGroupService
UserRoleService
UserService
VCenterHeirarchyService
VCenterTagsService
VendorService
WorkflowService
MenuService

Virima API Specification - LoginService Services

The requests documented in this section are directed to LoginService resources, which represent User login, logout,createAccount and gets loggedin user -- as called by a partner or directly by a webapp using the API..

doLogin POST Interface

dologin Service (POST) is called when a partner, or the application is trying to login using user credential.

  • Checks for mandatory fields(user name and password)
  • User data is verified with existing data
  • if data is existing in our database. dose the authentication check
  • Create a session for a given email and password

Method: POST

Relative URL: login/dologin

Request Headers: Accept, Authorization

Response Headers: Content-Length, Content-Type.

Request Structure:

Field NameTypeDescription
credentialCredential

Response Structure:

Field NameTypeDescription
userUserDetails

Example Request:

DOLOGIN 
Host: example.com
Authorization: Basic xxxxxxxxxxxxxxxxxxx
Content-Type : nnn
{
   "email":"?",
   "password":"?",
   "demoUser":"?",
   "enableMFA":?,
   "customerId":"?",
   "clientName":"?",
   "oldSessionId":"?",
   "client": {
         "clientSessionId":"?",
         "state":?,
         "addedOn":?,
         "currentStateTime":?,
         "hostName":"?",
         "name":"?",
         "clientName":"?",
         "ipAddress":"?",
         "subnet":"?",
         "currentStatus":"?",
         "archive":?,
         "customerId":?,
         "uniqueId":"?",
         "location": {
               "stringobj":"?",
               "shortName":"?",
               "s3Name":"?",
               "uniqueId":"?",
               "lineType":"?",
            },
         "userId":"?",
         "operatingSystem":"?",
         "serverIpAddress":"?",
         "serverDNSName":"?",
         "noOfAssetsDiscovered":?,
         "version":"?",
         "proxy":?,
         "agentScanEnabled":?,
         "agentAutoUpdateThroughAppEnabled":?,
         "autoUpdateApp":?,
         "lastStatusUpdate":?,
         "latestVersionFoClient":"?",
         "fqdn":"?",
         "liveConnectionServerSSL":?,
         "liveConnectionServerPort":"?",
         "webservicesPort":"?",
         "certificate":"?",
         "serialNumber":"?"
      }
}

Example Response:

{
   "id":688446288,
   "email":"?",
   "password":"?",
   "userName":"?",
   "isAdmin":?,
   "isEndUser":?,
   "isCustomer":?,
   "firstName":"?",
   "lastName":"?",
   "displayName":"?",
   "phone":"?",
   "uniqueId":"?",
   "timeStamp":"?",
   "fileName":"?",
   "bucketName":"?",
   "wikiLink":"?",
   "logoPic":"?",
   "theme":"?",
   "Url":"?",
   "landingPage":"?",
   "currency":"?",
   "language":"?",
   "isVendor":?,
   "sessionId":"?",
   "isLocalStorage":"?",
   "downloadLink":"?",
   "storageType":"?",
   "driveLink":"?",
   "driveLinkForOrganization":"?",
   "chatServerAddress":"?",
   "isSuperAdmin":?,
   "organizationName":"?",
   "integrationEnabled":?,
   "serviceNowDomain":"?",
   "serverPort":"?",
   "nettyPort":"?",
   "severAddress":"?",
   "isSuperEndUser":?,
   "ivantiDomain":"?",
   "jiraDomain":"?",
   "isCherwellIntegrationEnabled":?,
   "subscribedModules":"?",
   "newUIEnabled":?,
   "enableMFA":?,
   "mfaChecked":?,
   "twoFactorSecretKey":"?",
   "mfaType":"?",
   "timezone":"?"
}

doLoginImpersonate POST Interface

    Impersionate user login

Method: POST

Relative URL: login/dologin-impersonate

Request Headers: Accept, Authorization

Response Headers: Content-Length, Content-Type.

Request Structure:

Field NameTypeDescription
credentialCredential

Response Structure:

Field NameTypeDescription
userUserDetails

Example Request:

DOLOGINIMPERSONATE 
Host: example.com
Authorization: Basic xxxxxxxxxxxxxxxxxxx
Content-Type : nnn
{
   "email":"?",
   "password":"?",
   "demoUser":"?",
   "enableMFA":?,
   "customerId":"?",
   "clientName":"?",
   "oldSessionId":"?",
   "client": {
         "clientSessionId":"?",
         "state":?,
         "addedOn":?,
         "currentStateTime":?,
         "hostName":"?",
         "name":"?",
         "clientName":"?",
         "ipAddress":"?",
         "subnet":"?",
         "currentStatus":"?",
         "archive":?,
         "customerId":?,
         "uniqueId":"?",
         "location": {
               "stringobj":"?",
               "shortName":"?",
               "s3Name":"?",
               "uniqueId":"?",
               "lineType":"?",
            },
         "userId":"?",
         "operatingSystem":"?",
         "serverIpAddress":"?",
         "serverDNSName":"?",
         "noOfAssetsDiscovered":?,
         "version":"?",
         "proxy":?,
         "agentScanEnabled":?,
         "agentAutoUpdateThroughAppEnabled":?,
         "autoUpdateApp":?,
         "lastStatusUpdate":?,
         "latestVersionFoClient":"?",
         "fqdn":"?",
         "liveConnectionServerSSL":?,
         "liveConnectionServerPort":"?",
         "webservicesPort":"?",
         "certificate":"?",
         "serialNumber":"?"
      }
}

Example Response:

{
   "id":2147483647,
   "email":"?",
   "password":"?",
   "userName":"?",
   "isAdmin":?,
   "isEndUser":?,
   "isCustomer":?,
   "firstName":"?",
   "lastName":"?",
   "displayName":"?",
   "phone":"?",
   "uniqueId":"?",
   "timeStamp":"?",
   "fileName":"?",
   "bucketName":"?",
   "wikiLink":"?",
   "logoPic":"?",
   "theme":"?",
   "Url":"?",
   "landingPage":"?",
   "currency":"?",
   "language":"?",
   "isVendor":?,
   "sessionId":"?",
   "isLocalStorage":"?",
   "downloadLink":"?",
   "storageType":"?",
   "driveLink":"?",
   "driveLinkForOrganization":"?",
   "chatServerAddress":"?",
   "isSuperAdmin":?,
   "organizationName":"?",
   "integrationEnabled":?,
   "serviceNowDomain":"?",
   "serverPort":"?",
   "nettyPort":"?",
   "severAddress":"?",
   "isSuperEndUser":?,
   "ivantiDomain":"?",
   "jiraDomain":"?",
   "isCherwellIntegrationEnabled":?,
   "subscribedModules":"?",
   "newUIEnabled":?,
   "enableMFA":?,
   "mfaChecked":?,
   "twoFactorSecretKey":"?",
   "mfaType":"?",
   "timezone":"?"
}

doLogout GET Interface

dologout Service (GET) is called when a partner, or the application is trying to logout.

  • Kills an active session

Method: GET

Relative URL: login/dologout

Request Headers: Accept, Authorization

Response Headers: Content-Length, Content-Type.

Response Structure:

Field NameTypeDescription
transactionMeassageTransactionMessage

Example Request:

Example Response:

{
   "id":2147483647,
   "recordId":"?",
   "message":"?",
   "status":?
}

getLoggedInUser GET Interface

GetLoggedInUser Service (GET) is called when a partner, or the application is trying to create an account.

  • Checks for mandatory fields(user name and password)
  • Returns the loggedin user

Method: GET

Relative URL: login/get-logged-in-user

Request Headers: Accept, Authorization

Response Headers: Content-Length, Content-Type.

Response Structure:

Field NameTypeDescription
userUserDetails

Example Request:

Example Response:

{
   "id":2147483647,
   "email":"?",
   "password":"?",
   "userName":"?",
   "isAdmin":?,
   "isEndUser":?,
   "isCustomer":?,
   "firstName":"?",
   "lastName":"?",
   "displayName":"?",
   "phone":"?",
   "uniqueId":"?",
   "timeStamp":"?",
   "fileName":"?",
   "bucketName":"?",
   "wikiLink":"?",
   "logoPic":"?",
   "theme":"?",
   "Url":"?",
   "landingPage":"?",
   "currency":"?",
   "language":"?",
   "isVendor":?,
   "sessionId":"?",
   "isLocalStorage":"?",
   "downloadLink":"?",
   "storageType":"?",
   "driveLink":"?",
   "driveLinkForOrganization":"?",
   "chatServerAddress":"?",
   "isSuperAdmin":?,
   "organizationName":"?",
   "integrationEnabled":?,
   "serviceNowDomain":"?",
   "serverPort":"?",
   "nettyPort":"?",
   "severAddress":"?",
   "isSuperEndUser":?,
   "ivantiDomain":"?",
   "jiraDomain":"?",
   "isCherwellIntegrationEnabled":?,
   "subscribedModules":"?",
   "newUIEnabled":?,
   "enableMFA":?,
   "mfaChecked":?,
   "twoFactorSecretKey":"?",
   "mfaType":"?",
   "timezone":"?"
}

resetPasswordSendMail POST Interface

dologin Service (POST) is called when a partner, or the application wants to reset the credentials.

  • An email will be sent to the corresponding user with a unique link to reset password.

Method: POST

Relative URL: login/reset-password-send-mail

Request Headers: Accept, Authorization

Response Headers: Content-Length, Content-Type.

Request Structure:

Field NameTypeDescription
credentialCredential

Response Structure:

Field NameTypeDescription
respResponse

Example Request:

RESETPASSWORDSENDMAIL 
Host: example.com
Authorization: Basic xxxxxxxxxxxxxxxxxxx
Content-Type : nnn
{
   "email":"?",
   "password":"?",
   "demoUser":"?",
   "enableMFA":?,
   "customerId":"?",
   "clientName":"?",
   "oldSessionId":"?",
   "client": {
         "clientSessionId":"?",
         "state":?,
         "addedOn":?,
         "currentStateTime":?,
         "hostName":"?",
         "name":"?",
         "clientName":"?",
         "ipAddress":"?",
         "subnet":"?",
         "currentStatus":"?",
         "archive":?,
         "customerId":?,
         "uniqueId":"?",
         "location": {
               "stringobj":"?",
               "shortName":"?",
               "s3Name":"?",
               "uniqueId":"?",
               "lineType":"?",
            },
         "userId":"?",
         "operatingSystem":"?",
         "serverIpAddress":"?",
         "serverDNSName":"?",
         "noOfAssetsDiscovered":?,
         "version":"?",
         "proxy":?,
         "agentScanEnabled":?,
         "agentAutoUpdateThroughAppEnabled":?,
         "autoUpdateApp":?,
         "lastStatusUpdate":?,
         "latestVersionFoClient":"?",
         "fqdn":"?",
         "liveConnectionServerSSL":?,
         "liveConnectionServerPort":"?",
         "webservicesPort":"?",
         "certificate":"?",
         "serialNumber":"?"
      }
}

Example Response:

{
   "id":2147483647,
   "response":"?"
}

resetPassword POST Interface

dologin Service (POST) is called when a partner, or the application is trying to reset the credential.

  • Checks if the user and instance is valid
  • If so resets the password to the new password

Method: POST

Relative URL: login/reset-password

Request Headers: Accept, Authorization

Response Headers: Content-Length, Content-Type.

Request Structure:

Field NameTypeDescription
resetPasswordResetPassword

Response Structure:

Field NameTypeDescription
respResponse

Example Request:

RESETPASSWORD 
Host: example.com
Authorization: Basic xxxxxxxxxxxxxxxxxxx
Content-Type : nnn
{
   "email":"?",
   "instance":"?",
   "password":"?",
   "directPasswordChange":?
}

Example Response:

{
   "id":2147483647,
   "response":"?"
}

initialSetUpWizard POST Interface

initialSetUpWizard Service (POST) is called when user sign in immediate after once user signed up.

  • Get details about creating new users, department, designation, location, holidays and operational hours

Method: POST

Relative URL: login/initial-set-up-wizard

Request Headers: Accept, Authorization

Response Headers: Content-Length, Content-Type.

Request Structure:

Field NameTypeDescription
wizardInputSetUpWizard

Response Structure:

Field NameTypeDescription
respUserDetails

Example Request:

INITIALSETUPWIZARD 
Host: example.com
Authorization: Basic xxxxxxxxxxxxxxxxxxx
Content-Type : nnn
{
   "email":"?",
   "password":"?",
   "wizardJson":"?"
}

Example Response:

{
   "id":2147483647,
   "email":"?",
   "password":"?",
   "userName":"?",
   "isAdmin":?,
   "isEndUser":?,
   "isCustomer":?,
   "firstName":"?",
   "lastName":"?",
   "displayName":"?",
   "phone":"?",
   "uniqueId":"?",
   "timeStamp":"?",
   "fileName":"?",
   "bucketName":"?",
   "wikiLink":"?",
   "logoPic":"?",
   "theme":"?",
   "Url":"?",
   "landingPage":"?",
   "currency":"?",
   "language":"?",
   "isVendor":?,
   "sessionId":"?",
   "isLocalStorage":"?",
   "downloadLink":"?",
   "storageType":"?",
   "driveLink":"?",
   "driveLinkForOrganization":"?",
   "chatServerAddress":"?",
   "isSuperAdmin":?,
   "organizationName":"?",
   "integrationEnabled":?,
   "serviceNowDomain":"?",
   "serverPort":"?",
   "nettyPort":"?",
   "severAddress":"?",
   "isSuperEndUser":?,
   "ivantiDomain":"?",
   "jiraDomain":"?",
   "isCherwellIntegrationEnabled":?,
   "subscribedModules":"?",
   "newUIEnabled":?,
   "enableMFA":?,
   "mfaChecked":?,
   "twoFactorSecretKey":"?",
   "mfaType":"?",
   "timezone":"?"
}