M19 GCP Unable to create metadata for uploaded file using Postman and sdutil
By Using Postman
Step: 06 Create File Metadata Success Scenario for download URL tests
curl --location 'https://preship.gcp.gnrg-osdu.projects.epam.com/api/file/v2/files/metadata' \
--header 'Data-Partition-Id: m19' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ya29.a0AfB_byDWDyhoomXRAXE4l8Pg-1_xPn5bO1yl6l2KsvqUZxoMAISXXdbxgf3jWAlZf-Du1eF9DyXx5Y1ZLT8zfLW9Ht6guhxahMhjPrMnNpqGy0IoWzb0KJhqL3VsEovE1nPQRkt-hQAxpr2HvSm87bq6iXNA4XeMElmCLXV0EwaCgYKAUcSARASFQHsvYlsS8ApocmJnjXcGBaAHm112Q0177' \
--data-raw '{
"data": {
"Endian": "BIG",
"Description": "As originally delivered by ACME.com.",
"DatasetProperties": {
"FileSourceInfo": {
"FileSource": "/a154d4da-621f-40c2-a2a7-ee2fc3f270f3/e6edb42a180e4702b4aad79988ff042b",
"Name": "7004_a1501_1978_comp.las",
"PreLoadFilePath": "",
"PreloadFileCreateUser": "user1",
"PreloadFileModifyDate": "mar 11",
"PreloadFileModifyUser": "mar 11"
}
},
"TotalSize": "13245217273",
"Source": "Example Data Source",
"Name": "Dataset X221/15"
},
"kind": "osdu:wks:dataset--File.Generic:1.0.0",
"acl": {
"viewers": [
"data.default.viewers@m19.group"
],
"owners": [
"data.default.owners@m19.group"
]
},
"legal": {
"legaltags": [
"m19-FileAPI-Legal-Tag-Test"
],
"otherRelevantDataCountries": [
"US"
],
"status": "compliant"
},
"createUser": "",
"createTime": "",
"modifyUser": "",
"modifyTime": ""
}'
Response Status: 500
{
"error": {
"code": 500,
"message": "Storage record error",
"errors": [
{
"domain": "global",
"reason": "error in data authorization",
"message": "error getting data authorization result"
}
]
}
}