Nephila RiskStore

<back to all web services

GetSeedRefreshStatus

Seed
Requires Authentication
Requires any of the roles:Riskstore.Read, Riskstore.Write, Riskstore.Admin
The following routes are available for this service:
GET/api/riskstore/seed/status/{RequestId}Get seed refresh status by request idReturns the current status of a seed refresh request. Status values: Queued, Processing, Successful, Failed.
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 GetSeedRefreshStatus
        : IGet
    {
        ///<summary>
        ///Request id returned by the POST /seed/refresh/{TableName} call
        ///</summary>
        [ApiMember(DataType="string", Description="Request id returned by the POST /seed/refresh/{TableName} call", Format="uuid", IsRequired=true)]
        public virtual Guid RequestId { 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; }
    }

}

C# GetSeedRefreshStatus DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /api/riskstore/seed/status/{RequestId} HTTP/1.1 
Host: riskstoreng-dev.nephila.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SeedRefreshStatusResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nephila.RiskStore.ServiceModel.Requests">
  <CompletedUtc>0001-01-01T00:00:00</CompletedUtc>
  <CreatedUtc>0001-01-01T00:00:00</CreatedUtc>
  <ErrorMessage>String</ErrorMessage>
  <FailedCount>0</FailedCount>
  <OutputPath>String</OutputPath>
  <ProcessedCount>0</ProcessedCount>
  <RequestId>00000000-0000-0000-0000-000000000000</RequestId>
  <RowCount>0</RowCount>
  <SkippedCount>0</SkippedCount>
  <StartedUtc>0001-01-01T00:00:00</StartedUtc>
  <Status>String</Status>
  <TableName>String</TableName>
  <TotalCount>0</TotalCount>
  <UpdatedUtc>0001-01-01T00:00:00</UpdatedUtc>
</SeedRefreshStatusResponse>