Skip to content

Commit 55ba885

Browse files
authored
Merge pull request #294496 from bharathim/tutorial-reservoir-ddms-websocket
Add reservoir ddms websocket tutorial
2 parents cd57669 + 448a7a2 commit 55ba885

File tree

4 files changed

+89
-1
lines changed

4 files changed

+89
-1
lines changed

articles/energy-data-services/index.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ landingContent:
7474
url: tutorial-petrel-ddms.md
7575
- text: Reservoir DDMS API tutorial
7676
url: tutorial-reservoir-ddms-apis.md
77+
- text: Reservoir DDMS websocket API tutorial
78+
url: tutorial-reservoir-ddms-websocket.md
7779
- linkListType: how-to-guide
7880
links:
7981
- text: How to convert SEG-Y to oVDS

articles/energy-data-services/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ items:
3636
href: tutorial-petrel-ddms.md
3737
- name: Use Reservoir DDMS APIs
3838
href: tutorial-reservoir-ddms-apis.md
39+
- name: Use Reservoir DDMS websocket APIs
40+
href: tutorial-reservoir-ddms-websocket.md
3941
- name: Concepts
4042
items:
4143
- name: OSDU® services available on Azure Data Manager for Energy

articles/energy-data-services/tutorial-reservoir-ddms-apis.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.date: 02/12/2025
1111
#customer intent: As a Data Manager, I want to learn how to use OSDU Reservoir DDMS APIs to read reservoir data.
1212

1313
---
14-
# Use Reservoir DDMS APIs
14+
# Tutorial: Use Reservoir DDMS API endpoints
1515

1616
In this article, you learn how to read data from Reservoir DDMS REST APIs with curl commands.
1717

@@ -517,3 +517,6 @@ In this article, you learn how to read data from Reservoir DDMS REST APIs with c
517517
}
518518
]
519519
```
520+
521+
## Related content
522+
[Tutorial: Use Reservoir DDMS websocket API endpoints](tutorial-reservoir-ddms-websocket.md)
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
---
2+
title: "Tutorial: Use Reservoir DDMS websocket endpoints to work with reservoir data"
3+
titleSuffix: Microsoft Azure Data Manager for Energy
4+
description: "Learn to use OSDU Reservoir DDMS websocket APIs."
5+
author: bharathim
6+
ms.author: bselvaraj
7+
ms.service: azure-data-manager-energy
8+
ms.topic: tutorial #Don't change.
9+
ms.date: 02/12/2025
10+
11+
#customer intent: As a Data Manager, I want to learn how to use OSDU Reservoir DDMS websocket APIs to read reservoir data.
12+
13+
---
14+
# Tutorial: Use Reservoir DDMS websocket API endpoints
15+
16+
Use Reservoir Domain Data Management Services (DDMS) APIs in PowerShell to work with reservoir data in an Azure Data Manager for Energy resource.
17+
18+
In this tutorial, you learn how to use a Reservoir DDMS websocket endpoint to:
19+
20+
> [!div class="checklist"]
21+
> * Create the data space.
22+
> * Get the data space.
23+
> * Ingest an EPC file.
24+
> * Access the ingested data.
25+
> * Delete the dataspace.
26+
27+
28+
For more information about DDMS, see [DDMS concepts](concepts-ddms.md).
29+
30+
## Prerequisites
31+
32+
* [Azure Data Manager for Energy](quickstart-create-microsoft-energy-data-services-instance.md) resource created in your Azure subscription
33+
* Docker desktop client should be running on your system
34+
35+
## Configuration
36+
1. To connect to a remote server via WSS, you need an ETP SSL enabled client. Download a prebuild SSL client from the OSDU GitLab docker container registry.
37+
38+
```bash
39+
export SSLCLIENT_IMAGE=community.opengroup.org:5555/osdu/platform/domain-data-mgmt-services/reservoir/open-etp-server/open-etp-sslclient-main
40+
docker pull ${SSLCLIENT_IMAGE}
41+
docker tag ${SSLCLIENT_IMAGE} open-etp:ssl-client
42+
```
43+
44+
1. Follow [How to generate auth token](how-to-generate-auth-token.md) to create a valid auth token. This token is used to authenticate the calls to server.
45+
46+
1. Set the following variables:
47+
```bash
48+
$RDDMS_URL='<adme_dns>/api/reservoir-ddms-etp/v2/'
49+
$PARTITION='<data_partition_name>'
50+
$TOKEN='<access_token>'
51+
```
52+
53+
## Using the websocket endpoints
54+
1. Create the data space:
55+
56+
```bash
57+
docker run -it --rm open-etp:ssl-client openETPServer space -S wss://${RDDMS_URL} --new -s <data_space_name> --data-partition-id ${PARTITION} --auth bearer --jwt-token ${TOKEN}
58+
```
59+
1. Get the data space:
60+
61+
```bash
62+
docker run -it --rm open-etp:ssl-client openETPServer space -S wss://${RDDMS_URL} -l --data-partition-id ${PARTITION} --auth bearer --jwt-token ${TOKEN}
63+
```
64+
65+
1. Ingest an EPC file:
66+
```bash
67+
docker run -it --rm -v <path_to_directory_containing_epc_file>:/data open-etp:ssl-client openETPServer space -S wss://${RDDMS_URL} -s <dataspace_name> --import-epc ./data/<epc_file_name> --data-partition-id ${PARTITION} --auth bearer --jwt-token ${TOKEN}
68+
```
69+
70+
1. Access the ingested data:
71+
```bash
72+
docker run -it --rm open-etp:ssl-client openETPServer space -S wss://${RDDMS_URL} -s <dataspace_name> --stats --data-partition-id ${PARTITION} --auth bearer --jwt-token ${TOKEN}
73+
```
74+
1. Delete the dataspace:
75+
```bash
76+
docker run -it --rm open-etp:ssl-client openETPServer space --delete -S wss://${RDDMS_URL} -s <dataspace_name> --data-partition-id ${PARTITION} --auth bearer --jwt-token ${TOKEN}
77+
```
78+
79+
## Related content
80+
* [How to use RDDMS web socket endpoints](https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/reservoir/open-etp-server/-/blob/main/docs/testing.md?ref_type=heads)
81+
* [Use Reservoir DDMS APIs](tutorial-reservoir-ddms-apis.md)

0 commit comments

Comments
 (0)