Creates a new location in the landing zone to upload a file. If a FileID isn't provided in the request, the File service generates a Universally Unique Identifier (UUID) to be stored in FileID. If a FileID is provided and is already registered in the system, an error is returned.
Required roles: 'service.file.editors'. Users added to groups 'users.datalake.editors', 'users.datalake.admins', 'users.datalake.ops' would be added to group 'service.file.editors' by default.
Security
bearer
Unique Identifier for the file
- SLB Saas OSDU (SGP)https://as5.api.enterprisedata.slb.com/api/file/v2/getLocation
- SLB SaaS OSDU (BRS)https://br5.api.enterprisedata.slb.com/api/file/v2/getLocation
- SLB Saas OSDU (WEU)https://eu5.api.enterprisedata.slb.com/api/file/v2/getLocation
- SLB SaaS OSDU (EUT)https://eu6.api.enterprisedata.slb.com/api/file/v2/getLocation
- SLB Saas OSDU (MDE)https://eu7.api.enterprisedata.slb.com/api/file/v2/getLocation
- SLB Saas OSDU (PSC)https://us5.api.enterprisedata.slb.com/api/file/v2/getLocation
- SLB Saas OSDU (USC)https://us7.api.enterprisedata.slb.com/api/file/v2/getLocation
- SLB Saas OSDU (WUS)https://us8.api.enterprisedata.slb.com/api/file/v2/getLocation
- SLB Saas OSDU (SAS)https://as6.api.enterprisedata.slb.com/api/file/v2/getLocation
- SLB Saas OSDU (SWC)https://eu8.api.enterprisedata.slb.com/api/file/v2/getLocation
- SLB Saas OSDU (MYW)https://as7.api.enterprisedata.slb.com/api/file/v2/getLocation
- SLB Saas OSDU (ZAN)https://za1.api.enterprisedata.slb.com/api/file/v2/getLocation
- Mock serverhttps://developer.slb.com/_mock/solutions/core-service/apis/osdu-file-service/v2/getLocation
curl -i -X POST \
https://as5.api.enterprisedata.slb.com/api/file/v2/getLocation \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'data-partition-id: slb-osdu-prod-des-prod-testing' \
-d '{
"FileID": "string"
}'Created location
Unique Identifier for the file
Response
{ "FileID": "string", "Location": { "SignedURL": "GCS signed URL" } }