Salesforce

Javascript documentation for API endpoints

« Go Back
Information
Javascript documentation for API endpoints
000006272
Public
Product Selection
aiWare - API
Article Details

All URIs are relative to https://api.aiware.com/edge/v1

On this page:

AiwareJsClient.AdminAPI

MethodHTTP requestDescription
addEngineToResourcePOST /admin/resource/{ResourceID}/engineThis API adds the engine to the resource
addServiceToResourcePOST /admin/resource/{ResourceID}/serviceThis API adds the service to the resource
addserversServerTypePOST /admin/server_type/{ServerTypeID}/addThis API add servers to the specified server type
adminTerminateClusterPOST /admin/terminateThis terminates the cluster
applyLicensePOST /admin/licenses/applyThis applies a license to aiWARE
checkAuthPOST /admin/authThis check auth for a token
clearBacklogPOST /admin/backlog/clearThis clears some or all of the currently queued tasks
createAdminApplicationPOST /admin/applications/createThis creates a new application
createAdminCorePOST /admin/cores/createThis creates a new core
createAdminOrganizationPOST /admin/organizations/createThis updates the config for the cluster for a given key
createPermissionPOST /admin/users/permission/createThis creates a new permission
createResourcePOST /admin/resource/createThis API creates a new resource definition such as a database, nsq or redis DB.
createRolePOST /admin/users/role/createThis creates a new role
createServerTypePOST /admin/server_types/createThis creates a new server type
createServerTypeEngineRunningPOST /admin/server_types/running_engine/createThis creates a new server_type_engine_running
createServicePOST /admin/service/createThis API creates a new service definition.
createTokenPOST /admin/tokens/createThis creates a new token
createUserPOST /admin/users/createThis creates a new user
deleteApplicationPOST /admin/applications/{ApplicationID}/deleteThis deletes an application
deleteLicenseDELETE /admin/licenses/{LicenseID}/deleteThis deletes a license from aiWARE
deleteOrganizationPOST /admin/organization/{OrganizationID}/deleteThis deletes the specified organization
deleteResourcePOST /admin/resource/{ResourceID}/deleteThis deletes the specified resource
deleteRolePOST /admin/users/role/{RoleID}/deleteThis deletes a role
deleteServerTypeDELETE /admin/server_type/{ServerTypeID}/deleteThis API deletes the specified server type
deleteServerTypePostPOST /admin/server_type/{ServerTypeID}/deleteThis API deletes the specified server type
deleteServerTypeRunningEngineDELETE /admin/server_type/{ServerTypeID}/engine/{EngineID}/deleteThis API deletes the running engine for a server type
deleteServicePOST /admin/services/{ServiceID}/deleteThis API deletes a specific service
deleteTokenPOST /admin/token/{TokenID}/deleteThis deletes a token
deleteUserPOST /admin/user/{UserID}/deleteThis deletes a user
desiredserversServerTypePOST /admin/server_type/{ServerTypeID}/desiredThis API add servers to the specified server type
getAdminApplicationDetailGET /admin/application/{ApplicationID}/detailThis provides information on the given application.
getAdminCoreDetailGET /admin/core/{CoreID}/detailThis provides information on the given core.
getAdminCoresGET /admin/coresThis provides a list of core systems
getAdminEngineConfigSectionKeyGET /admin/engine/{EngineID}/config/{ConfigSection}/{ConfigKey}This provides a config section key for the engine
getAdminOrganizationDetailGET /admin/organization/{OrganizationID}/detailThis gets organization detail by ID
getAdminOrganizationTokensGET /admin/organization/{OrganizationID}/tokensThis provides information on the given organization tokens.
getAdminOrganizationsGET /admin/organizationsThis provides a list of organizations
getAdminPermissionDetailGET /admin/users/permission/{PermissionID}/detailThis gets permission detail by ID
getAdminRoleDetailGET /admin/users/role/{RoleID}/detailThis gets role detail by ID
getAdminServiceConfigGET /admin/service/{ServiceID}/configThis provides all the config for the service
getAdminServiceConfigSectionGET /admin/service/{ServiceID}/config/{ConfigSection}This provides all the config for the service
getAdminServiceConfigSectionKeyGET /admin/service/{ServiceID}/config/{ConfigSection}/{ConfigKey}This provides a config section key for the service
getAdminServiceInstancesGET /admin/service/instancesThis lists the service instances available for a system
getAdminServiceInstancesByServiceIDGET /admin/service/{ServiceID}/instancesThis lists the service instances available by service ID
getAdminStatusGET /admin/statusThis provides information on the status of the aiWARE edge
getAdminTokenDetailGET /admin/token/{TokenID}/detailGet the token info by ID
getAdminTokenPermissionsGET /admin/token/{TokenID}/permissionsThis provides a list of all token permissions for a token by TokenID
getAdminTokensGET /admin/tokensThis provides information about all tokens.
getAdminUserDetailGET /admin/user/{UserID}/detailThis provides information on the given user.
getAdminUserPermissionsGET /admin/user/{UserID}/permissionsThis provides a list of all user permissions for an user by UserID
getAdminUserTokensGET /admin/user/{UserID}/tokensThis provides information on the given user.
getAdminUsersGET /admin/usersThis provides a list of users in the system
getAdminUsersPermissionGET /admin/users/permissionsThis provides a list of all user permissions in the system
getAdminUsersRolesGET /admin/users/rolesThis provides a list of user role in the system
getApplicationsGET /admin/applicationsGet the list of applications deployed and available on aiWARE
getBacklogSummaryGET /admin/backlog/summaryThis provides summary information on the current backlog
getConfigGET /admin/configThis provides all the config for the cluster
getConfigSectionGET /admin/config/{ConfigSection}This provides all the config for the cluster
getConfigSectionKeyGET /admin/config/{ConfigSection}/{ConfigKey}This provides a config section key for the cluster
getEnginesForResourceGET /admin/resource/{ResourceID}/enginesGet list of engines for resource
getLicenseDetailGET /admin/licenses/{LicenseID}/detailThis gets detail on a license key
getLicensesGET /admin/licensesThis provides a licenses on the system
getMappingsForResourceGET /admin/resource/{ResourceID}/mappingsGet list of mappings for resource
getResourceGET /admin/resource/{ResourceID}Get a resource definition
getResourceMappingDetailGET /admin/resource/{ResourceID}/mapping/{ResourceMappingID}/detailGet resource mapping detail
getResourcesGET /admin/resourcesGet the list of resources
getResourcesForEngineGET /admin/engine/{EngineID}/resourcesGet list of resources for engine
getResourcesForHostGET /admin/host/{HostID}/resourcesGet list of resources for host
getResourcesForServiceGET /admin/service/{ServiceID}/resourcesGet list of resources for service
getServerTypeGET /admin/server_type/{ServerTypeID}/detailThis provides detail on the server type
getServerTypeEngineRunningGET /admin/server_types/running_enginesThis lists the running engine with server types
getServerTypeEngineRunningDetailGET /admin/server_type/{ServerTypeID}/engine/{EngineID}/detailThis gets the detail of server type - running engine
getServerTypesGET /admin/server_typesThis lists the server types available on the system
getServiceGET /admin/service/{ServiceID}/detailThis gets the service detail
getServicesGET /admin/servicesThis lists the services available on the system
loginUserPOST /admin/users/loginThis logs a user in if successful
oauthLoginUserPOST /admin/users/oauth2_loginThis logs a user in if successful with OAuth2
registerUserPOST /admin/users/registerThis registers a new user
removeEngineForResourcePOST /admin/resource/{ResourceID}/engine/{EngineID}/deleteThis API removes the engine to the resource
removeserversServerTypePOST /admin/server_type/{ServerTypeID}/removeThis API removes servers from the specified server type
resetAllocTablePOST /admin/backlog/reset-allocThis resets the alloc table
signupInitialUserPOST /admin/users/signup/initialThis registers a new initial user
updateAdminCorePOST /admin/core/{CoreID}/updateThis updates a core system
updateApplicationPOST /admin/applications/{ApplicationID}/updateThis updates an application
updateConfigAllPOST /admin/configThis gets the config for the cluster
updateConfigSectionPOST /admin/config/{ConfigSection}This gets the config for the cluster
updateConfigSectionKeyPOST /admin/config/{ConfigSection}/{ConfigKey}This updates the config for the cluster for a given key
updateEnginesForResourcePOST /admin/resource/{ResourceID}/engine/updateThis API updates the specified server type-running engine
updateOrganizationPOST /admin/organization/{OrganizationID}/updateThis updates a organization
updatePermissionPOST /admin/users/permission/{PermissionID}/updateThis updates a permission
updateResourcePOST /admin/resource/{ResourceID}/updateThis API updates the specified resource
updateResourceMappingPOST /admin/resource/{ResourceID}/mapping/{ResourceMappingID}/updateThis API updates the state of the specified resource mapping
updateResourceMappingStatePOST /admin/resource/{ResourceID}/mapping/{ResourceMappingID}/updatestateThis API updates the state of the specified resource mapping state
updateResourceStatePOST /admin/resource/{ResourceID}/updatestateThis API updates the state of the specified resource
updateRolePOST /admin/users/role/{RoleID}/updateThis updates a role
updateServerTypePOST /admin/server_type/{ServerTypeID}/updateThis API updates the specified server type
updateServerTypeEngineRunningPOST /admin/server_type/{ServerTypeID}/engine/{EngineID}/updateThis API updates the specified server type-running engine
updateServicePOST /admin/service/{ServiceID}/updateThis API updates a service.
updateTokenPOST /admin/token/{TokenID}/updateThis updates a token
updateUserPOST /admin/user/{UserID}/updateThis updates a user
upsertServerTypesPOST /admin/server_type/upsertThis API creates or updates the specified server types
userPasswordForgotPOST /admin/users/password/forgotThis api will help users to reset their password when they forgot
userPasswordResetPOST /admin/users/password/resetHelps users to reset their password
userPasswordUpdatePOST /admin/users/password/updateThis api will help users to update their password

AiwareJsClient.EngineAPI

createBuildPOST /admin/build/createThis API creates a new engine build
createEnginePOST /admin/engine/createThis API creates a new engine
createEngineCategoryPOST /admin/engine/category/createThis API creates a new engine category
createJobForEnginePOST /engine/{EngineID}/createjobThis API create a job for the engine
deleteBuildPostPOST /admin/build/{BuildID}/deleteThis API deletes a specific build
deleteEnginePostPOST /admin/engine/{EngineID}/deleteThis API delets an engine
deleteEngineTemplateDELETE /engine/{EngineID}/template/{EngineTemplateName}Delete the template of the engine given its ID and template name
getEngineBuildGET /admin/build/{BuildID}/detailThis gets a particular build
getEngineBuildsGET /admin/engine/{EngineID}/buildsGet the list of builds deployed and available on aiWARE for a particular engine
getEngineBuildsByStateGET /engine/buildsThe api returns engine build records by build state
getEngineBuildsToDownloadGET /engine/builds/downloadsThe api returns latest downloadable engine build records for each engine
getEngineCategoriesGET /admin/engine/categoriesThis provides a list of engine categories
getEngineCategoryDetailGET /admin/engine/category/{EngineCategoryID}/detailThis provides detail for an engine category
getEngineContainerCountGET /engine/container_countGet engine container count
getEngineDetailGET /admin/engine/{EngineID}/detailThis API provides the engine detail result
getEngineInstanceDetailGET /engine/instance/{EngineInstanceID}/detailGet information about an engine Instance
getEngineInstanceListGET /engine/instancesGet engines instances with filtering
getEngineInstanceLogsGET /engine/instance/{EngineInstanceID}/logsGet engine instance logs as a zip file
getEngineInstanceStatusGET /engine/instance/{EngineInstanceID}/statusGet the latest status of the engine instance
getEngineInstanceWorkPOST /engine/instance/{EngineInstanceID}/getworkGet a work request
getEngineInstanceWorkDetailGET /engine/instance/{EngineInstanceID}/workdetailGet detail of the work being done by the engine instance
getEngineInstancesGET /engine/{EngineID}/instancesGet information about the instances of an engine
getEngineLaunchDetailGET /engine/{EngineID}/launch/{LaunchID}/detailThis API returns the list of launches for this engine
getEngineLaunchesGET /engine/{EngineID}/launchesThis API returns the list of launches for this engine
getEngineStatsGET /admin/engine/statsThis gets useful engine statistics
getEngineTemplateGET /engine/{EngineID}/template/{EngineTemplateName}Get the template of the engine given its ID and template name -- if EngineTeamplateName==`all`, all the templates for the engines will be returned
getEnginesGET /admin/enginesGet the list of engines deployed and available on aiWARE
getJobsBacklogCountByEnginePOST /proc/jobs/backlog_count_by_engineGet backlog count by engine
getResourcesForEngineInstanceGET /engine/instance/{EngineInstanceID}/resourcesGet resources for engine instance
pauseBuildPOST /admin/build/{BuildID}/pauseThis API pauses a build so that tasks based on this engine build will not run.
pauseEnginePOST /admin/engine/{EngineID}/pauseThis API pauses an engine so that tasks based on this engine will not run.
registerEngineInstanceNoAuthPOST /engine/instance/registerRegister a new engine instance without authorization
replaceEnginePOST /admin/engine/{EngineID}/replaceThis API replaced an engine so that tasks based on this engine will not run.
resumeBuildPOST /admin/build/{BuildID}/resumeThis API resumes a build so that tasks based on this engine build will start running.
resumeEnginePOST /admin/engine/{EngineID}/resumeThis API resumes a build so that tasks based on this engine build will start running.
terminateEngineInstancePOST /engine/instance/{EngineInstanceID}/terminateDelete the engine instance record
updateEnginePOST /admin/engine/{EngineID}/updateThis API updates the specified engine
updateEngineBuildPOST /admin/build/{BuildID}/updateThis API updates the specified engine
updateEngineBuildStatePOST /engine/build/{BuildID}/stateUpdate the Engine Build State
updateEngineCategoryPOST /admin/engine/category/{EngineCategoryID}/updateThis updates the specified engine category
updateEngineInstanceStatusPOST /engine/instance/{EngineInstanceID}/updatestatusUpdate the Engine Instance Status. Heartbeat to communicate back to controller both aggregated work and delta work from last heartbeat
upsertEngineTemplatePOST /engine/{EngineID}/template/{EngineTemplateName}Create or Update the template of the engine given its ID and template name

AiwareJsClient.EngineAgentApi

requestEnginesToLaunchPOST /ai13s/engine_agent/request_enginesRequest engines to launch in the cluster
updateEngineAgentStatusPOST /ai13s/engine_agent/update_statusUpdate information for engine nodes in the cluster
upsertK8sHostsPOST /ai13s/engine_agent/hostsAdds or updates K8s nodes to AIWARE hosts

AiwareJsClient.FlowAPI

cleanAutomateRequestsGET /flowaction/requests/cleanClean old automate requests.
createNodeRedContainerInfoPOST /flow/nrcontainer/createCreate node-red container information
deleteAutomateContainerPOST /flow/delete/{ContainerID}Delete automate container.
getAutomateContainersGET /automate/containersGet automate containers info.
updateAutomateRequestStatusPOST /flow/request/updatePut this automate request into update status mode. This automate request will be updated to new status.
updateAutomateStatusPOST /flow/{HostID}/updatestatusGet updated information to launch node-red container, terminate node-red container.

aiwareJsClient.HostAPI

drainHostPOST /host/{HostID}/drainPut this host into drain mode. A host in drain mode will not have work assigned to engines on the host.
getHostCpuUsageGET /hosts/cpu_usageGet host cpu usage
getHostDetailGET /host/{HostID}/detailGet the latest info of the host
getHostMemoryUsageGET /engine/memory_usageGet host memory usage
getHostStatusGET /host/{HostID}/statusGet the latest status of the host
getHostsGET /hostsThis provides a list of hosts in the system
getHostsCountsGET /hosts/countsGet the server counts in a time-range
getHostsCountsByTypeGET /hosts/counts_by_typeGet the server counts in a time-range
getHostsLaunchGET /host/{HostID}/launchThis provides a list of host launches in the system
hostAlertPOST /host/alertNotifies the controller about a system alert.
launchHostPOST /host/launchLaunch a new host with a particular server type
pauseHostPOST /host/{HostID}/pausePause all engines on this host.
registerEngineInstancePOST /host/{HostID}/engine/registerRegister a new engine instance
registerHostPOST /host/registerUpdate the Host Status
resumeHostPOST /host/{HostID}/resumeResume all engines on this host.
terminateHostPOST /host/{HostID}/terminateDelete the host/agent record. Any work still running on this host will be restarted on other hosts.
updateHostStatusPOST /host/{HostID}/updatestatusUpdate the Host Status

AiwareJsClient.ProcessAPI

addTaskPOST /proc/job/{JobID}/addtaskAdds a Task to a current job
addTaskRoutePOST /proc/job/{JobID}/addtaskrouteAdds a Task Route to a current job
cancelJobsPOST /proc/jobs/cancelThis cancels jobs
createJobPOST /proc/job/createThis creates a new Job
deleteJobPOST /proc/job/{JobID}/deleteThis API deletes the specified job
deleteScheduledJobPOST /proc/scheduled_job/{ScheduledJobID}/deleteThis deletes a scheduled job
deleteTaskPOST /proc/task/{TaskID}/deleteThis API deletes the specified task
getEngineErrorTimeRangesGET /proc/tasks/error/engine_error_time_rangesThis gets engine error count by error tasks grouped by time ranges and sorted by a range start time
getJobDetailGET /proc/job/{JobID}/detailGets Job Detail
getJobDownloadGET /proc/job/{JobID}/download/{JobOutputName}Returns the contents of the job's output
getJobOutputGET /proc/job/{JobID}/output/{JobOutputName}Returns the contents of the job's output
getJobOutputsGET /proc/job/{JobID}/outputsReturns a list of output information about this job
getJobPerformanceGET /proc/job/{JobID}/performanceThis gets cpu/gpu, memory state of the hosts grouped by time ranges and sorted by a range start time
getJobStatusGET /proc/job/{JobID}/statusGets Job Status
getJobWorkRequestsGET /proc/job/{JobID}/workrequestsThis provides a list of workrequests of a job
getJobsGET /proc/jobsThis gets a list of jobs
getJobsOrganizationStatsGET /proc/jobs/stats/organizationThis gets processing stats of the jobs by organization
getJobsPerformanceGET /proc/jobs/performanceThis gets cpu/gpu, memory state of the hosts grouped by time ranges and sorted by a range start time
getJobsStatsGET /proc/jobs/statsThis gets processing stats of the jobs
getJobsTimeRangesStatsGET /proc/jobs/stats/time_rangesThis gets processing stats of the jobs grouped by time ranges and sorted by a range start time
getRatePendingScheduledJobsGET /proc/scheduled_jobs/rate_pending_time_rangesThis gets the rate of pending scheduled jobs by time ranges
getScheduledJobDetailGET /proc/scheduled_job/{ScheduledJobID}/detailThis gets scheduled job detail
getScheduledJobsGET /proc/scheduled_jobsThis gets a list of scheduled jobs
getServerErrorCountsGET /proc/tasks/error/server_error_countsGet server error counts in a time-range
getTaskDetailGET /proc/task/{TaskID}/detailGets Task Detail
getTaskDownloadGET /proc/task/{TaskID}/download/{TaskOutputName}Returns the contents of the task's output
getTaskLogsGET /proc/task/{TaskID}/logsGets logs associated with a task
getTaskOutputGET /proc/task/{TaskID}/output/{TaskOutputName}Returns the contents of the task's output
getTaskOutputsGET /proc/task/{TaskID}/outputsGets Task Output
getTaskReportsGET /proc/task/reportsGets task reports
getTaskReportsPerMonthGET /proc/task/reports/{ReportMonth}Gets task reports for the month
getTaskSyncBacklogGET /proc/tasks/sync_backlogGets task sync backlog in a time-range
getTaskTimingsGET /proc/task/{TaskID}/timingsReturns the timings associated with a task as collected by engine toolkit.
getTasksGET /proc/tasksThis gets a list of tasks based on the provided criteria
getTasksErrorTypeCountByEngineGET /proc/tasks/error/count_type_by_engineThis gets error type count by engines
getTasksErrorsGET /proc/tasks/errorsThis provides a error list in a time range
getTasksInstancesGET /proc/tasks/instances/by_category_hostThis gets processing stats of the tasks
getTasksStatsGET /proc/tasks/statsThis gets processing stats of the tasks
getTasksStatsCategoriesGET /proc/tasks/stats/categoriesThis gets processing stats of the tasks grouped by engine categories
getTasksStatsEnginesGET /proc/tasks/stats/enginesThis gets processing stats of the tasks grouped by engine
getTasksStatsOrganizationsGET /proc/tasks/stats/organizationsThis gets processing stats of the tasks grouped by engine, filter by organizations
getTasksStatsTimeRangesGET /proc/tasks/stats/time_rangesThis gets processing stats of the tasks grouped by time ranges and sorted by a range start time
getTotalPendingScheduledJobsGET /proc/scheduled_jobs/total_pending_time_rangesThis gets the total pending scheduled jobs by time ranges
getWorkRequestGET /proc/workrequest/{WorkRequestID}/detailThis provides detail of workrequest
launchJobTemplatePOST /proc/template/{TemplateID}/launchThis launch a job based on the given job template
listTaskReportsGET /proc/task/listreportsGets a list of task report links
pushContentToEndpointPOST /proc/endpoint/{Endpoint}Whatever is posted to this endpoint will be added to the child input folder(s) for the task_routes that have this endpoint. If more than one task_routes have this endpoint, it will be added to all child input folders.
recheckJobStatusGET /proc/job/{JobID}/recheck_statusForce a recalculation of job status from tasks
tasksStatusExportGET /proc/tasks/stats/exportExport a task status report as a excel file
updateTaskStatusPOST /proc/tasks/update_statusThis updates the status for a bulk of tasks by taskID

AiwareJsClient.ProxyAPI

proxyGetWorkForEngineInstancesPOST /proxy/{HostID}/getworkGet work for engine instances running on the host
proxyRegisterEngineInstancesPOST /proxy/{HostID}/registerRegister engine instances running on the host
proxyTerminateEngineInstancesPOST /proxy/{HostID}/terminateTerminate engine instances running on this host.
proxyUpdateEngineInstanceStatusesPOST /proxy/{HostID}/updateUpdate statuses of engine instances running on the host

SecurityAPI

getStorageServerPublicKeysetPOST /security/getstorageserverpublickeysetGet public storage server keyset for verification

ServiceAPI

createServiceInstancePOST /service/instance/createThis creates a new service instance
deleteServiceInstancePOST /service/instance/{ServiceInstanceID}/deleteThis deletes a service instance
getResourcesForServiceInstanceGET /service/instance/{ServiceInstanceID}/resourcesGet resources for service instance

AiwareJsClient.StorageAPI

registerStoragePOST /storage/registerRegister Storage Instance
updateStorageInstanceStatusPOST /storage/{StorageInstanceID}/updatestatusUpdate the Storage Instance Status
Additional Technical Documentation Information
Properties
11/21/2024 12:33 AM
11/21/2024 12:33 AM
11/21/2024 12:33 AM
Documentation
Documentation
000006272
Translation Information
English

Powered by