deviceMgmtPkisResult Data Type

DeviceMgmtPki is a container for a list of DeviceMgmtCerticate returned by a list deviceMgmt pki call. It contains the list of requested DeviceMgmtPki and a flag signaling whether the limit for the maximum number of returned entities has been reached. If limitExceeded is set, the client is requested to paginate through the result by moving the offset forward and issue a new request to get more data.

Example to get all devices:

    String apiPath = "deviceMgmtPki.xml";
    WebResource apisWeb = client.resource(API_URL).path(apiPath);
    
    DeviceMgmtPkiResult result;
    int offset = 0;
    do {
       // if the "limit" queryParam is not initialized, limit default value = 50
       // if the "offset" queryParam is not initialized, offset default value = 0
       apisWeb = apisWeb.queryParam("limit", "" + limit);
       if (offset > 0) 
          apisWeb = apisWeb.queryParam("offset", "" + offset);
       result = apisWeb.get(DeviceMgmtPkiResult.class);
       offset += limit;
    } while (result.isLimitExceeded()):
 

Namespace
http://eurotech.com/edc/2.0
Schema
edc.xsd
Properties
name data type type namespace min/max occurs constraints description
deviceMgmtPki list of deviceMgmtPki element edc 0/unbounded    
limitExceeded boolean element edc 1/1 required  

Example

<deviceMgmtPkiResult xmlns="http://eurotech.com/edc/2.0">
  <limitExceeded>...</limitExceeded>
  <deviceMgmtPki>
    <privateKey xmlns="">...</privateKey>
    <password xmlns="">...</password>
    <isDefault xmlns="">...</isDefault>
    <caId xmlns="">...</caId>
    <isCa xmlns="">...</isCa>
    <pkiStatus xmlns="">...</pkiStatus>
    <id xmlns="">...</id>
    <certificate xmlns="">...</certificate>
    <accountId xmlns="">...</accountId>
    <version xmlns="">...</version>
    <serial xmlns="">...</serial>
    <algorithm xmlns="">...</algorithm>
    <subject xmlns="">...</subject>
    <issuer xmlns="">...</issuer>
    <notBefore xmlns="">...</notBefore>
    <notAfter xmlns="">...</notAfter>
    <createdOn xmlns="">...</createdOn>
    <createdBy xmlns="">...</createdBy>
    <modifiedOn xmlns="">...</modifiedOn>
    <modifiedBy xmlns="">...</modifiedBy>
    <name xmlns="">...</name>
    <optlock xmlns="">...</optlock>
  </deviceMgmtPki>
</deviceMgmtPkiResult>