@@ -42,14 +42,15 @@ Run the below curl command in Azure Cloud Bash to create a legal tag for a given
42
42
```
43
43
44
44
### Sample request
45
+ Consider a Microsoft Energy Data Services instance named "medstest" with a data partition named "dp1"
45
46
46
47
``` bash
47
- curl --location --request POST ' https://<instance> .energy.azure.com/api/legal/v1/legaltags' \
48
- --header ' data-partition-id: <instance>-<data-partition-name> ' \
49
- --header ' Authorization: Bearer <access_token> ' \
48
+ curl --location --request POST ' https://medstest .energy.azure.com/api/legal/v1/legaltags' \
49
+ --header ' data-partition-id: medstest-dp1 ' \
50
+ --header ' Authorization: Bearer eyxxxxxxx......................... ' \
50
51
--header ' Content-Type: application/json' \
51
52
--data-raw ' {
52
- "name": "<instance>-<data-partition-name> -legal-tag",
53
+ "name": "medstest-dp1 -legal-tag",
53
54
"description": "Microsoft Energy Data Services Preview Legal Tag",
54
55
"properties": {
55
56
"contractId": "A1234",
@@ -69,7 +70,7 @@ Run the below curl command in Azure Cloud Bash to create a legal tag for a given
69
70
70
71
``` JSON
71
72
{
72
- "name" : " <instance>-<data-partition-name> -legal-tag" ,
73
+ "name" : " medsStest-dp1 -legal-tag" ,
73
74
"description" : " Microsoft Energy Data Services Preview Legal Tag" ,
74
75
"properties" : {
75
76
"countryOfOrigin" : [
@@ -91,9 +92,9 @@ The country of origin should follow [ISO Alpha2 format](https://www.nationsonlin
91
92
The Create Legal Tag api, internally appends data-partition-id to legal tag name if it isn't already present. For instance, if request has name as: ``` legal-tag ``` , then the create legal tag name would be ``` <instancename>-<data-partition-id>-legal-tag ```
92
93
93
94
``` bash
94
- curl --location --request POST ' https://<instance> .energy.azure.com/api/legal/v1/legaltags' \
95
- --header ' data-partition-id: <instance>-<data-partition-name> ' \
96
- --header ' Authorization: Bearer <access_token> ' \
95
+ curl --location --request POST ' https://medstest .energy.azure.com/api/legal/v1/legaltags' \
96
+ --header ' data-partition-id: medstest-dp1 ' \
97
+ --header ' Authorization: Bearer eyxxxxxxx......................... ' \
97
98
--header ' Content-Type: application/json' \
98
99
--data-raw ' {
99
100
"name": "legal-tag",
@@ -116,7 +117,7 @@ The sample response will have data-partition-id appended to the legal tag name a
116
117
117
118
``` JSON
118
119
{
119
- "name" : " <instance>-<data-partition-name> -legal-tag" ,
120
+ "name" : " medstest-dp1 -legal-tag" ,
120
121
"description" : " Microsoft Energy Data Services Preview Legal Tag" ,
121
122
"properties" : {
122
123
"countryOfOrigin" : [
@@ -143,18 +144,19 @@ Run the below curl command in Azure Cloud Bash to get the legal tag associated w
143
144
```
144
145
145
146
### Sample request
147
+ Consider a Microsoft Energy Data Services instance named "medstest" with a data partition named "dp1"
146
148
147
149
``` bash
148
- curl --location --request GET ' https://<instance> .energy.azure.com/api/legal/v1/legaltags/<instance>-<data-partition-name> -legal-tag' \
149
- --header ' data-partition-id: <instance>-<data-partition-name> ' \
150
- --header ' Authorization: Bearer <access_token> '
150
+ curl --location --request GET ' https://medstest .energy.azure.com/api/legal/v1/legaltags/medstest-dp1 -legal-tag' \
151
+ --header ' data-partition-id: medstest-dp1 ' \
152
+ --header ' Authorization: Bearer eyxxxxxxx......................... '
151
153
```
152
154
153
155
### Sample response
154
156
155
157
``` JSON
156
158
{
157
- "name" : " <instance>-<data-partition-name> -legal-tag" ,
159
+ "name" : " medstest-dp1 -legal-tag" ,
158
160
"description" : " Microsoft Energy Data Services Preview Legal Tag" ,
159
161
"properties" : {
160
162
"countryOfOrigin" : [
0 commit comments