| Requires any of the roles: | Riskstore.Read, Riskstore.Write, Riskstore.Admin |
| GET | /api/riskstore/seed/status | List recent seed refresh requests | Returns all seed refresh entries known to the running host process, newest first. Entries are lost on restart. |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Nephila.RiskStore.ServiceModel.Requests;
namespace Nephila.RiskStore.ServiceModel.Requests
{
public partial class ListSeedRefreshStatus
: IGet
{
}
public partial class ListSeedRefreshStatusResponse
{
public virtual List<SeedRefreshStatusResponse> Entries { get; set; }
}
public partial class SeedRefreshStatusResponse
{
public virtual Guid RequestId { get; set; }
public virtual string TableName { get; set; }
public virtual string Status { get; set; }
public virtual DateTime CreatedUtc { get; set; }
public virtual DateTime UpdatedUtc { get; set; }
public virtual DateTime? StartedUtc { get; set; }
public virtual DateTime? CompletedUtc { get; set; }
public virtual long? RowCount { get; set; }
public virtual string ErrorMessage { get; set; }
public virtual string OutputPath { get; set; }
public virtual int? TotalCount { get; set; }
public virtual int? ProcessedCount { get; set; }
public virtual int? SkippedCount { get; set; }
public virtual int? FailedCount { get; set; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/riskstore/seed/status HTTP/1.1 Host: riskstoreng-dev.nephila.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"entries":[{"requestId":"00000000000000000000000000000000","tableName":"String","status":"String","createdUtc":"0001-01-01T00:00:00.0000000Z","updatedUtc":"0001-01-01T00:00:00.0000000Z","startedUtc":"0001-01-01T00:00:00.0000000Z","completedUtc":"0001-01-01T00:00:00.0000000Z","rowCount":0,"errorMessage":"String","outputPath":"String","totalCount":0,"processedCount":0,"skippedCount":0,"failedCount":0}]}