# Nexus restapi timestamp in docker repo

**URL:** <https://community.sonatype.com/t/nexus-restapi-timestamp-in-docker-repo/924>\
**Category:** Sonatype Nexus Repository\
**Tags:** rest\
**Created:** [December 11, 2018, 6:01pm UTC](https://community.sonatype.com/t/nexus-restapi-timestamp-in-docker-repo/924 "2018-12-11T18:01:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![morten\_bjoernsvik](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@morten\_bjoernsvik](https://community.sonatype.com/u/morten_bjoernsvik)\
**Post date:** [December 11, 2018, 6:01pm UTC](https://community.sonatype.com/t/nexus-restapi-timestamp-in-docker-repo/924/1 "2018-12-11T18:01:58Z")

</div>

I see in the web-gui browse there is a blob created/blob updated parameter, but I’ve not found this in rest api /v1/search, /v1/search/assets or /v1/components{id}

```
DEBUG:urllib3.connectionpool:https://nexus.XXXXXXXXX:443 "GET /service/rest/v1/search?continuationToken=35303a6662623731386563326536386534306164613562663030326165663836336633 HTTP/1.1" 200 32607
DEBUG:nexusapi:{
  "items" : [ {
    "id" : "c2Vuc2lvOjc2ZDdkN2U0MTg2YTM5MGYxYmZjYjdmNDI2MmFiZDFh",
    "repository" : "sensio",
    "format" : "docker",
    "group" : null,
    "name" : "sensio/build-spux-x86",
    "version" : "6.2",
    "assets" : [ {
      "downloadUrl" : "https://nexus.XXXXXXXXX/repository/sensio/v2/sensio/build-spux-x86/manifests/6.2",
      "path" : "v2/sensio/build-spux-x86/manifests/6.2",
      "id" : "c2Vuc2lvOjEzYjI5ZTQ0OWYwZTNiOGRlZmQzMzVhZTMxOTBjZTRh",
      "repository" : "sensio",
      "format" : "docker",
      "checksum" : {
        "sha1" : "7d8401450db7a530f4b82a8ec38e94bf370e8ad4",
        "sha256" : "1f397b5bba3f8b9fcb5e12455f7363d24d8f616156cfcafeea5f852843c28ddf"
      }
    } ]
  },

DEBUG:urllib3.connectionpool:https://nexus.XXXXXXXXX:443 "GET /service/rest/v1/components/c2Vuc2lvOmRmYmVmMDllZmUxNjQ0ZWE2ZGU3MDM3MDM5MGU0OTFl HTTP/1.1" 200 637
INFO:nexusapi:component:{
  "id" : "c2Vuc2lvOmRmYmVmMDllZmUxNjQ0ZWE2ZGU3MDM3MDM5MGU0OTFl",
  "repository" : "sensio",
  "format" : "docker",
  "group" : null,
  "name" : "sensio/ips",
  "version" : "1.2.3",
  "assets" : [ {
    "downloadUrl" : "https://nexus.XXXXXXXXX/repository/sensio/v2/sensio/ips/manifests/1.2.3",
    "path" : "v2/sensio/ips/manifests/1.2.3",
    "id" : "c2Vuc2lvOmQ0ODExNzU0MWRjYjg5ZWM1NmUxZjk2ZDZkYzdkZDVm",
    "repository" : "sensio",
    "format" : "docker",
    "checksum" : {
      "sha1" : "81fbf5b7dada65fb969f40ae4d7427414e3cce54",
      "sha256" : "e4361ca6d2cd9b079f3d06c5d398f30aadbe7a17ab05f53c51299f79f6925503"
    }
  } ]
}

```

How can I get hold of this timestamp?

---

<div class="post-metadata">

**Author:** ![rseddon](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/rseddon/32/341_2.png) [@rseddon](https://community.sonatype.com/u/rseddon)\
**Post date:** [December 11, 2018, 8:57pm UTC](https://community.sonatype.com/t/nexus-restapi-timestamp-in-docker-repo/924/2 "2018-12-11T20:57:42Z")

</div>

There is an open request here to add this information: [https://issues.sonatype.org/browse/NEXUS-17917](https://issues.sonatype.org/browse/NEXUS-17917)

Please comment on that issue and vote for it.

Regards,

Rich

---

<div class="post-metadata">

**Author:** ![jreis78pt](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/jreis78pt/32/2165_2.png) [@jreis78pt](https://community.sonatype.com/u/jreis78pt)\
**Post date:** [January 19, 2022, 7:56pm UTC](https://community.sonatype.com/t/nexus-restapi-timestamp-in-docker-repo/924/3 "2022-01-19T19:56:30Z")

</div>

Need confirmation from who knows this data best, but for me it worked making an extra call to the endpoint given by _assets.downloadUrl_ which in turn gives .history[0].v1Compatibility.created.
