The API returns the schema specified by the given kind, which must follow the naming convention {data-partition-id}:{dataset}:{type}:{version}. Required roles: 'users.datalake.viewers' or 'users.datalake.editors' or 'users.datalake.admins'
Security
bearer
- SLB Saas OSDU (SGP)https://as5.api.enterprisedata.slb.com/api/storage/v2/schemas/{kind}
- SLB SaaS OSDU (BRS)https://br5.api.enterprisedata.slb.com/api/storage/v2/schemas/{kind}
- SLB Saas OSDU (WEU)https://eu5.api.enterprisedata.slb.com/api/storage/v2/schemas/{kind}
- SLB SaaS OSDU (EUT)https://eu6.api.enterprisedata.slb.com/api/storage/v2/schemas/{kind}
- SLB Saas OSDU (MDE)https://eu7.api.enterprisedata.slb.com/api/storage/v2/schemas/{kind}
- SLB Saas OSDU (PSC)https://us5.api.enterprisedata.slb.com/api/storage/v2/schemas/{kind}
- SLB Saas OSDU (USC)https://us7.api.enterprisedata.slb.com/api/storage/v2/schemas/{kind}
- SLB Saas OSDU (WUS)https://us8.api.enterprisedata.slb.com/api/storage/v2/schemas/{kind}
- SLB Saas OSDU (SAS)https://as6.api.enterprisedata.slb.com/api/storage/v2/schemas/{kind}
- SLB Saas OSDU (SWC)https://eu8.api.enterprisedata.slb.com/api/storage/v2/schemas/{kind}
- SLB Saas OSDU (MYW)https://as7.api.enterprisedata.slb.com/api/storage/v2/schemas/{kind}
- SLB Saas OSDU (ZAN)https://za1.api.enterprisedata.slb.com/api/storage/v2/schemas/{kind}
- Mock serverhttps://developer.slb.com/_mock/solutions/core-service/apis/osdu-storage-service/schemas/{kind}
curl -i -X GET \
'https://as5.api.enterprisedata.slb.com/api/storage/v2/schemas/{kind}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'data-partition-id: string'Schema obtained successfully.
Record kind for which the schema information is applied to.
Example:"slb-osdu-prod-des-prod-testing:wks:work-product-component--WellLog:1.0.0"
List of schema items which compose the schema.
Example:
[ { "path": "msg", "kind": "string", "ext": {} }, { "path": "year", "kind": "int", "ext": {} }, { "path": "weight", "kind": "float", "ext": {} }, { "path": "location", "kind": "core:dl:geopoint:1.0.0", "ext": {} }, { "path": "valid", "kind": "bool", "ext": {} } ]
Response
{ "kind": "slb-osdu-prod-des-prod-testing:wks:work-product-component--WellLog:1.0.0", "schema": [ { … }, { … }, { … }, { … }, { … } ] }