Cloud APIs
/- Managed Planning Data Foundation
- Core Services
Storage Service
- Create schema
Get schema
Create schema
The API allows the creation of a new schema for the given kind. Required roles: 'users.datalake.editors' or 'users.datalake.admins'.
Security
bearer
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": {} } ]
- SLB Saas OSDU (SGP)https://as5.api.enterprisedata.slb.com/api/storage/v2/schemas
- SLB SaaS OSDU (BRS)https://br5.api.enterprisedata.slb.com/api/storage/v2/schemas
- SLB Saas OSDU (WEU)https://eu5.api.enterprisedata.slb.com/api/storage/v2/schemas
- SLB SaaS OSDU (EUT)https://eu6.api.enterprisedata.slb.com/api/storage/v2/schemas
- SLB Saas OSDU (MDE)https://eu7.api.enterprisedata.slb.com/api/storage/v2/schemas
- SLB Saas OSDU (PSC)https://us5.api.enterprisedata.slb.com/api/storage/v2/schemas
- SLB Saas OSDU (USC)https://us7.api.enterprisedata.slb.com/api/storage/v2/schemas
- SLB Saas OSDU (WUS)https://us8.api.enterprisedata.slb.com/api/storage/v2/schemas
- SLB Saas OSDU (SAS)https://as6.api.enterprisedata.slb.com/api/storage/v2/schemas
- SLB Saas OSDU (SWC)https://eu8.api.enterprisedata.slb.com/api/storage/v2/schemas
- SLB Saas OSDU (MYW)https://as7.api.enterprisedata.slb.com/api/storage/v2/schemas
- SLB Saas OSDU (ZAN)https://za1.api.enterprisedata.slb.com/api/storage/v2/schemas
- Mock serverhttps://developer.slb.com/_mock/solutions/core-service/apis/osdu-storage-service/schemas
curl -i -X POST \
https://as5.api.enterprisedata.slb.com/api/storage/v2/schemas \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'data-partition-id: string' \
-d '{
"kind": "slb-osdu-prod-des-prod-testing:wks:work-product-component--WellLog:1.0.0",
"schema": [
{
"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": {}
}
]
}'