Getting Started
Authentication
The Eratos Workspace API uses Basic Authentication and Bearer Token Authentication to authenticate requests.
Basic Authentication
To authenticate with the Eratos Workspace API using Basic Authentication, an Eratos key and secret is required.
Visit Eratos Workspace: https://workspace.eratos.com/development to generate Eratos credentials
Basic Authentication typically requires a username and password to be sent in the Authorization request header however instead a key and secret is used:
Authorization: Basic key:secretkey:secret is a placeholder that represents a base64 encoded string. Most request libraries will generate a base64 string for you automatically.
Example
To test locally, run the example below replacing your_key and your_secret with your key and secret.
echo -n your_key:your_secret | base64 -w 0
eW91cl9rZXk6eW91cl9zZWNyZXQ=
curl https://api.eratos.com/api/workspace/v1/resources -H \"Authorization: Basic eW91cl9rZXk6eW91cl9zZWNyZXQ=\"Basic Authentication requires HTTPS to keep the credentials secure while in transit.
Key Concepts:
Identifiers
ern(Eratos Resource Name)
A ERN is a globally unique identifier that identifies a resource within the Eratos ecosystem. It is a structured string that identifies aresource,schema,policy,user,account, ornode.
Structure of anern:ern:{node}:{type}:{id}{node}- identifies the location or lookup address of a resource. May blank if the resource is not location specific.{type}: - the type of entity this ern representsresourcenodeschemapolicyuseraccount
{id}: - the unique identifier of theern- Either:
- 24 character alpha-numeric (e.g.
XYZABC123456ABCDEF123456) - A prefixed custom id (common id) in the form
{namespace}.{customer_id}
- 24 character alpha-numeric (e.g.
- examples:
ern:e-pn.io:resource:AAAAAAAAAAAAAAAAAAAAAAAAern:e-pn.io:resource:eratos.block.testern::node:e-pn.ioern:e-pn.io:schema:spaceern::user:AAAAAAAAAAAAAAAAAAAAAAAAern::account:AAAAAAAAAAAAAAAAAAAAAAAA
- Either:
Eratos Entities
resource- Provides structured metadata about a thing or a concept.- Every resource has the following minimum required properties:
@id- the identifyingernof the resource@type- theschemaof the resource identified by aschema ern@owner- the owner of a resource identified by anern. Can be auserorresourceern.@policy- thepolicythat applies to theresourceidentified by apolicy ern
- Additional properties are defined by the
schemaof the resource.
- Every resource has the following minimum required properties:
schema- Defines the structure of aresourceincluding the properties and constraints.policy- A set of rules that govern the access to aresourceornodenode- Either be a Primary or a Gateway node identified by anode ern- Primary Node - Provides management of
resources,policies, andschemas.- Eratos Managed Primary Node:
ern::node:e-pn.io
- Eratos Managed Primary Node:
- Gateway Node - Provides access to raw data and additional query processing services.
- Eratos Managed Gateway Node:
ern::node:au-1.e-gn.io
- Eratos Managed Gateway Node:
- Primary Node - Provides management of
user- A user identified by auser ernaccount- An account or billing entity identified by anaccount ern
Support
For any support-related questions or feature requests, please contact:
- Support Team: [email protected]
Terms of service: https://www.eratos.com/license-terms
