Skip to content

Commit 7c1c54f

Browse files
Update tutorial-reservoir-ddms-apis.md
1 parent 20bee13 commit 7c1c54f

File tree

1 file changed

+35
-12
lines changed

1 file changed

+35
-12
lines changed

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

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,41 @@ In this article, you learn how to read data from Reservoir DDMS REST APIs with c
5252
"DataspaceId": "<dataspace_name>",
5353
"Path": "<dataspace_name>",
5454
"CustomData": {
55-
"legaltags": ["<legal_tag_name>"],
56-
"otherRelevantDataCountries": ["<country_code1>","country_code2"],
57-
"viewers": [ "data.default.viewers@<data-partition-id>.dataservices.energy" ],
58-
"owners": [ "data.default.owners@<data-partition-id>.dataservices.energy"]
55+
"legaltags": ["<legal_tag_name>"],
56+
"otherRelevantDataCountries": ["<country_code1>","country_code2"],
57+
"viewers": [ "<valid_entitlement_group1>@<data-partition-id>.dataservices.energy" ],
58+
"owners": [ "<valid_entitlement_group2>@<data-partition-id>.dataservices.energy"]
59+
}
60+
}
61+
]'
62+
```
63+
**Sample Request**
64+
65+
Consider an Azure Data Manager for Energy resource named `admetest` with a data partition named `dp1`, legal tage named `dp1-RDDMS-Legal-Tag`, valid entitlement group named as `data.default.viewers` and `data.default.owners`. You want to create new data space name `demo/RestWrite`.
66+
67+
```bash
68+
curl --request GET \
69+
--url https://admetest.energy.azure.com/api/reservoir-ddms/v2/dataspaces/demo%2FVolve/resources \
70+
--header 'Authorization: Bearer ey.......' \
71+
--header 'Content-Type: application/json' \
72+
--header 'data-partition-id: dp1' \
73+
--data '[
74+
{
75+
"DataspaceId": "demo/RestWrite",
76+
"Path": "demo/RestWrite",
77+
"CustomData": {
78+
"legaltags": ["dp1-RDDMS-Legal-Tag"],
79+
"otherRelevantDataCountries": ["US"],
80+
"viewers": [ "[email protected]" ],
81+
"owners": [ "[email protected]"]
5982
}
6083
}
6184
]'
6285
```
6386
**Sample Response:**
6487
```json
6588
[
66-
"eml:///dataspace('<dataspace_name>')"
89+
"eml:///dataspace('demo/RestWrite')"
6790
]
6891
```
6992
1. Run the following curl command to start a transaction.
@@ -291,7 +314,7 @@ In this article, you learn how to read data from Reservoir DDMS REST APIs with c
291314
```bash
292315
curl --request GET \
293316
--url https://admetest.energy.azure.com/api/reservoir-ddms/v2/dataspaces/demo%2FVolve/resources \
294-
--header 'Authorization: Bearer <access-token>' \
317+
--header 'Authorization: Bearer ey.......' \
295318
--header 'data-partition-id: dp1'
296319
```
297320

@@ -410,7 +433,7 @@ In this article, you learn how to read data from Reservoir DDMS REST APIs with c
410433
```bash
411434
curl --request GET \
412435
--url https://admetest.energy.azure.com/api/reservoir-ddms/v2/dataspaces/demo%2FVolve/resources/resqml20.obj_Grid2dRepresentation \
413-
--header 'Authorization: Bearer <access-token>' \
436+
--header 'Authorization: Bearer ey........' \
414437
--header 'data-partition-id: dp1'
415438
```
416439
**Sample Response**
@@ -461,7 +484,7 @@ In this article, you learn how to read data from Reservoir DDMS REST APIs with c
461484
```bash
462485
curl --request GET \
463486
--url https://admetest.energy.azure.com/api/reservoir-ddms/v2/dataspaces/demo%2FVolve/resources/resqml20.obj_Grid2dRepresentation/07cb9ebb-299f-469b-9792-e76633a72b89 \
464-
--header 'Authorization: Bearer <access-token>' \
487+
--header 'Authorization: Bearer ey.......' \
465488
--header 'data-partition-id: dp1'
466489
```
467490
**Sample Response**
@@ -563,7 +586,7 @@ In this article, you learn how to read data from Reservoir DDMS REST APIs with c
563586
```bash
564587
curl --request GET \
565588
--url https://admetest.energy.azure.com/api/reservoir-ddms/v2/dataspaces/demo%2FVolve/resources/resqml20.obj_Grid2dRepresentation/07cb9ebb-299f-469b-9792-e76633a72b89/arrays \
566-
--header 'Authorization: Bearer <access-token>' \
589+
--header 'Authorization: Bearer ey......' \
567590
--header 'data-partition-id: dp1'
568591
```
569592
**Sample Response**
@@ -600,7 +623,7 @@ In this article, you learn how to read data from Reservoir DDMS REST APIs with c
600623
```bash
601624
curl --request GET \
602625
--url https://admetest.energy.azure.com/api/reservoir-ddms/v2/dataspaces/demo%2FVolve/resources/resqml20.obj_Grid2dRepresentation/07cb9ebb-299f-469b-9792-e76633a72b89/arrays/RESQML%2F07cb9ebb-299f-469b-9792-e76633a72b89%2Fpoints_patch0 \
603-
--header 'Authorization: Bearer <access-token>' \
626+
--header 'Authorization: Bearer ey......' \
604627
--header 'data-partition-id: dp1'
605628
```
606629
**Sample Response**
@@ -644,7 +667,7 @@ In this article, you learn how to read data from Reservoir DDMS REST APIs with c
644667
```bash
645668
curl --request GET \
646669
--url https://admetest.energy.azure.com/api/reservoir-ddms/v2/dataspaces/demo%2FVolve/resources/resqml20.obj_Grid2dRepresentation/07cb9ebb-299f-469b-9792-e76633a72b89/sources \
647-
--header 'Authorization: Bearer <access-token>' \
670+
--header 'Authorization: Bearer ey.......' \
648671
--header 'data-partition-id: dp1'
649672
```
650673
**Sample Response**
@@ -692,7 +715,7 @@ In this article, you learn how to read data from Reservoir DDMS REST APIs with c
692715
```bash
693716
curl --request GET \
694717
--url https://admetest.energy.azure.com/api/reservoir-ddms/v2/dataspaces/demo%2FVolve/resources/resqml20.obj_Grid2dRepresentation/07cb9ebb-299f-469b-9792-e76633a72b89/targets \
695-
--header 'Authorization: Bearer <access-token>' \
718+
--header 'Authorization: Bearer ey.......' \
696719
--header 'data-partition-id: dp1'
697720
```
698721
**Sample Response**

0 commit comments

Comments
 (0)