Child pages
  • Simple transition from ECHO REST to CMR REST ingest
Skip to end of metadata
Go to start of metadata

Your endpoint will change

 

ResourceCMR
 ProductionUATSIT
datasets/collectionshttps://cmr.earthdata.nasa.gov/ingest/providers/{provider_id}/collections/{dataset_id} https://cmr.uat.earthdata.nasa.gov/ingest/providers/{provider_id}/collections/{dataset_id} https://cmr.sit.earthdata.nasa.gov/ingest/providers/{provider_id}/collections/{dataset_id}
granules https://cmr.earthdata.nasa.gov/ingest/providers/{provider_id}/granules/{granule_ur} https://cmr.uat.earthdata.nasa.gov/ingest/providers/{provider_id}/granules/{granule_ur} https://cmr.sit.earthdata.nasa.gov/ingest/providers/{provider_id}/granules/{granule_ur}
ResourceECHO
 OperationsPartner TestTest Bed
datasets/collections https://api.echo.nasa.gov/catalog-rest/providers/{provider_id}/datasets/{dataset_id} https://api-test.echo.nasa.gov/catalog-rest/providers/{provider_id}/datasets/{dataset_id} https://testbed.echo.nasa.gov/catalog-rest/providers/{provider_id}/datasets/{dataset_id}
granules https://api.echo.nasa.gov/catalog-rest/providers/{provider_id}/granules/{granule_ur} https://api-test.echo.nasa.gov/catalog-rest/providers/{provider_id}/granules/{granule_ur} https://testbed.echo.nasa.gov/catalog-rest/providers/{provider_id}/granules/{granule_ur}

 

Essentially

  1. Operations: api.echo.nasa.gov/catalog-rest becomes cmr.earthdata.nasa.gov/ingest
  2. Partner Test: api-test.echo.nasa.gov/catalog-rest becomes cmr.uat.earthdata.nasa.gov/ingest
  3. Test Bed: testbed.echo.nasa.gov/catalog-rest becomes cmr.sit.earthdata.nasa.gov/ingest
  4. providers/{provider_id}/datasets/{dataset_id} becomes providers/{provider_id}/collections/{dataset_id}

You will need to add a Content-Type header to your HTTP requests

ECHO headersCMR headers
Echo-Token: fooEcho-Token: foo
 Content-Type: application/echo10+xml

Example

The ECHO dataset ingest

curl -i -XPUT -H "Echo-Token: XXXX" https://api-test.echo.nasa.gov/catalog-rest/providers/PROV1/datasets/LarcDatasetId -d \
"<Collection>
  <ShortName>ShortName_Larc</ShortName>
  <VersionId>Version01</VersionId>
  <InsertTime>1999-12-31T19:00:00-05:00</InsertTime>
  <LastUpdate>1999-12-31T19:00:00-05:00</LastUpdate>
  <DeleteTime>2015-05-23T22:30:59</DeleteTime>
  <LongName>LarcLongName</LongName>
  <DataSetId>LarcDatasetId</DataSetId>
  <Description>A minimal valid collection</Description>
  <Orderable>true</Orderable>
  <Visible>true</Visible>
</Collection>"

becomes the CMR collection ingest

curl -i -XPUT -H "Content-type: application/echo10+xml" -H "Echo-Token: XXXX" https://cmr.uat.earthdata.nasa.gov/ingest/providers/PROV1/collections/LarcDatasetId -d \
"<Collection>
  <ShortName>ShortName_Larc</ShortName>
  <VersionId>Version01</VersionId>
  <InsertTime>1999-12-31T19:00:00-05:00</InsertTime>
  <LastUpdate>1999-12-31T19:00:00-05:00</LastUpdate>
  <DeleteTime>2015-05-23T22:30:59</DeleteTime>
  <LongName>LarcLongName</LongName>
  <DataSetId>LarcDatasetId</DataSetId>
  <Description>A minimal valid collection</Description>
  <Orderable>true</Orderable>
  <Visible>true</Visible>
</Collection>"

Authoritative API documentation

This documentation is release-dependent

  • No labels