You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/edge/rest/edge-job-results.js

15 lines
614 B

angular.module('portainer.edge').factory('EdgeJobResults', EdgeJobResultsFactory);
function EdgeJobResultsFactory($resource, API_ENDPOINT_EDGE_JOBS) {
return $resource(
API_ENDPOINT_EDGE_JOBS + '/:id/tasks/:taskId/:action',
{},
{
query: { method: 'GET', isArray: true, params: { id: '@id' } },
logFile: { method: 'GET', params: { id: '@id', taskId: '@taskId', action: 'logs' } },
clearLogs: { method: 'DELETE', params: { id: '@id', taskId: '@taskId', action: 'logs' } },
collectLogs: { method: 'POST', params: { id: '@id', taskId: '@taskId', action: 'logs' } },
}
);
}