@@ -52,18 +52,41 @@ In this article, you learn how to read data from Reservoir DDMS REST APIs with c
52
52
"DataspaceId": "<dataspace_name>",
53
53
"Path": "<dataspace_name>",
54
54
"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
+
59
82
}
60
83
}
61
84
]'
62
85
` ` `
63
86
** Sample Response:**
64
87
` ` ` json
65
88
[
66
- " eml:///dataspace('<dataspace_name> ')"
89
+ " eml:///dataspace('demo/RestWrite ')"
67
90
]
68
91
` ` `
69
92
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
291
314
` ` ` bash
292
315
curl --request GET \
293
316
--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....... ' \
295
318
--header ' data-partition-id: dp1'
296
319
` ` `
297
320
@@ -410,7 +433,7 @@ In this article, you learn how to read data from Reservoir DDMS REST APIs with c
410
433
` ` ` bash
411
434
curl --request GET \
412
435
--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........ ' \
414
437
--header ' data-partition-id: dp1'
415
438
` ` `
416
439
** Sample Response**
@@ -461,7 +484,7 @@ In this article, you learn how to read data from Reservoir DDMS REST APIs with c
461
484
` ` ` bash
462
485
curl --request GET \
463
486
--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....... ' \
465
488
--header ' data-partition-id: dp1'
466
489
` ` `
467
490
** Sample Response**
@@ -563,7 +586,7 @@ In this article, you learn how to read data from Reservoir DDMS REST APIs with c
563
586
` ` ` bash
564
587
curl --request GET \
565
588
--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...... ' \
567
590
--header ' data-partition-id: dp1'
568
591
` ` `
569
592
** Sample Response**
@@ -600,7 +623,7 @@ In this article, you learn how to read data from Reservoir DDMS REST APIs with c
600
623
` ` ` bash
601
624
curl --request GET \
602
625
--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...... ' \
604
627
--header ' data-partition-id: dp1'
605
628
` ` `
606
629
** Sample Response**
@@ -644,7 +667,7 @@ In this article, you learn how to read data from Reservoir DDMS REST APIs with c
644
667
` ` ` bash
645
668
curl --request GET \
646
669
--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....... ' \
648
671
--header ' data-partition-id: dp1'
649
672
` ` `
650
673
** Sample Response**
@@ -692,7 +715,7 @@ In this article, you learn how to read data from Reservoir DDMS REST APIs with c
692
715
` ` ` bash
693
716
curl --request GET \
694
717
--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....... ' \
696
719
--header ' data-partition-id: dp1'
697
720
` ` `
698
721
** Sample Response**
0 commit comments