Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Use Wellbore Domain Data Management Services (DDMS) APIs to work with well data in your instance of Azure Data Manager for Energy.
In this tutorial, you learn how to:
- Use Wellbore DDMS APIs to work with well data records.
For more information about DDMS, see DDMS concepts.
Prerequisites
- An Azure subscription
- An instance of Azure Data Manager for Energy created in your Azure subscription
- cURL command-line tool installed on your machine
- Service principal access token to call the Wellbore APIs. See How to generate auth token.
Get details for the Azure Data Manager for Energy instance
For this tutorial, you need the following parameters:
Parameter | Value to use | Example | Where to find this value |
---|---|---|---|
DNS |
URI | <instance>.energy.azure.com |
Find this value on the overview page of the Azure Data Manager for Energy instance. |
data-partition-id |
Data partition | <data-partition-id> |
Find this value on the Data Partition section within the Azure Data Manager for Energy instance. |
access_token |
Access token value | 0.ATcA01-XWHdJ0ES-qDevC6r........... |
Follow How to generate auth token to create an access token and save it. |
Follow the Manage users guide to add appropriate entitlements for the user who's running this tutorial.
Set up your environment
Ensure you have cURL
installed on your system to make API calls.
Use Wellbore DDMS APIs to work with well data records
Successfully completing the cURL requests that are described in the following Wellbore DDMS APIs indicates successful ingestion and retrieval of well records in your Azure Data Manager for Energy instance. If you are interested in checking out all the APIs, you can check our Swagger
Create a legal tag
Create a legal tag for data compliance.
Run the following cURL
command to create a legal tag:
curl -X POST "https://<DNS>/api/legal/v1/legaltags" \
-H "Authorization: Bearer <access_token>" \
-H "Content-Type: application/json" \
-H "data-partition-id: <data-partition-id>" \
-d '{
"name": "LegalTagName",
"description": "Legal Tag added for Well",
"properties": {
"contractId": "123456",
"countryOfOrigin": ["US", "CA"],
"dataType": "Third Party Data",
"exportClassification": "EAR99",
"originator": "xyz",
"personalData": "No Personal Data",
"securityClassification": "Private",
"expirationDate": "2025-12-25"
}
}'
Sample Response:
{
"name": "LegalTagName",
"status": "Created"
}
For more information, see Manage legal tags.
Create a well record
Create a well record in your Azure Data Manager for Energy instance.
Method: POST
curl -X POST "https://<DNS>/api/os-wellbore-ddms/ddms/v3/wells/<well_id>" \
-H "Authorization: Bearer <access_token>" \
-H "data-partition-id: <data-partition-id>" \
-H "Content-Type: application/json" \
-d '[
{
"acl": {
"owners": [
"data.default.owners@{{entitlement_domain}}"
],
"viewers": [
"data.default.viewers@{{entitlement_domain}}"
]
},
"data": {
"ExtensionProperties": {},
"FacilityName": "{{wellbore_well_name}}",
"FacilityNameAliases": [
{
"AliasName": "20-000-00000-00",
"AliasNameTypeID": "{{DATA_PARTITION_ID}}:reference-data--AliasNameType:UniqueIdentifier:"
}
]
},
"id": "{{DATA_PARTITION_ID}}:master-data--Well:{{wellbore_well_id}}",
"kind": "osdu:wks:master-data--Well:1.1.0",
"legal": {
"legaltags": [
"{{legal_dafault_tag}}"
],
"otherRelevantDataCountries": [
"FR",
"US"
],
"status": "compliant"
}
}
]'
Sample Response:
{
"recordCount": 1,
"recordIdVersions": [
"opendes:master-data--Well:122:1753292228903506"
],
"recordIds": [
"opendes:master-data--Well:122"
],
"skippedRecordIds": []
}
Get a well record
Get the well record data for your Azure Data Manager for Energy instance.
Method: GET
curl -X GET "https://<DNS>/api/os-wellbore-ddms/ddms/v3/wells/<well_id>" \
-H "Authorization: Bearer <access_token>" \
-H "data-partition-id: <data-partition-id>" \
-H 'accept: application/json'
Sample Response:
{
"id": "opendes:master-data--Well:122",
"version": 1753292228903506,
"kind": "osdu:wks:master-data--Well:1.1.0",
"acl": {
"viewers": [
"data.default.viewers@opendes.dataservices.energy"
],
"owners": [
"data.default.owners@opendes.dataservices.energy"
]
},
"legal": {
"legaltags": [
"opendes-welltesttag"
],
"otherRelevantDataCountries": [
"FR",
"US"
]
},
"meta": null,
"data": {
"ExtensionProperties": {},
"FacilityName": "opendes:master-data--Well:123",
"FacilityNameAliases": [
{
"AliasName": "20-000-00000-00",
"AliasNameTypeID": "opendes:reference-data--AliasNameType:UniqueIdentifier:"
}
]
},
"createTime": "2025-07-23T17:37:09.290000+00:00",
"createUser": "3046ab2b-b04c-4933-8afd-***********"
}
Get well versions
Get the versions of each ingested well record in your Azure Data Manager for Energy instance.
Method: GET
curl -X GET "https://<DNS>/api/os-wellbore-ddms/ddms/v3/wells/<well_id>/versions" \
-H "Authorization: Bearer <access_token>" \
-H "data-partition-id: <data-partition-id>" \
-H 'accept: application/json' \
Sample Response:
{
"recordId": "opendes:master-data--Well:122",
"versions": [
1753292228903506
]
}
Get a specific well version
Get the details of a specific version for a specific well record in your Azure Data Manager for Energy instance.
Method: GET
curl -X GET "https://<DNS>/api/os-wellbore-ddms/ddms/v3/wells/<well_id>/versions/<version>" \
-H "Authorization: Bearer <access_token>" \
-H "data-partition-id: <data-partition-id>" \
-H 'accept: application/json' \
Sample Response:
{
"id": "opendes:master-data--Well:122",
"version": 1753292228903506,
"kind": "osdu:wks:master-data--Well:1.1.0",
"acl": {
"viewers": [
"data.default.viewers@opendes.dataservices.energy"
],
"owners": [
"data.default.owners@opendes.dataservices.energy"
]
},
"legal": {
"legaltags": [
"opendes-welltesttag"
],
"otherRelevantDataCountries": [
"FR",
"US"
]
},
"meta": null,
"data": {
"ExtensionProperties": {},
"FacilityName": "opendes:master-data--Well:123",
"FacilityNameAliases": [
{
"AliasName": "20-000-00000-00",
"AliasNameTypeID": "opendes:reference-data--AliasNameType:UniqueIdentifier:"
}
]
},
"createTime": "2025-07-23T17:37:09.290000+00:00",
"createUser": "3046ab2b-b04c-4933-8afd-***********"
}
Delete a well record
Delete a specific well record from your Azure Data Manager for Energy instance.
Method: DELETE
curl -X DELETE "https://<DNS>/api/os-wellbore-ddms/ddms/v3/wells/<well_id>" \
-H "Authorization: Bearer <access_token>" \
-H "data-partition-id: <data-partition-id>"
Response code: 204 No content
Next step
Read the following tutorial to learn how to use the sdutil command-line tool to load seismic data into Seismic Store: