Skip to content

Commit 79f66a7

Browse files
MC-10744: address PR comments
1 parent d0b72bd commit 79f66a7

13 files changed

Lines changed: 37 additions & 36 deletions

File tree

source/includes/administration/_environments.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ Attributes |  
135135
curl -X POST "https://cloudmc_endpoint/v1/environments" \
136136
-H "MC-Api-Key: your_api_key" \
137137
-H "Content-Type: application/json" \
138-
-d "[request_body]"
138+
-d "request_body"
139139
```
140-
> The above command returns JSON structured like this:
140+
> Request body example:
141141
142142
```json
143143
{
@@ -190,9 +190,9 @@ The responses' `data` field contains the updated [environment](#administration-e
190190
curl -X POST "https://cloudmc_endpoint/v1/environments/f9dea588-d7ab-4f42-b6e6-4b85f273f3db" \
191191
-H "MC-Api-Key: your_api_key" \
192192
-H "Content-Type: application/json" \
193-
-d "[request_body]"
193+
-d "request_body"
194194
```
195-
> The above command returns JSON structured like this:
195+
> Request body example:
196196
197197
```json
198198
{

source/includes/administration/_organizations.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ Creates a new organization as a sub-organization of the caller's organization, o
150150
curl -X POST "https://cloudmc_endpoint/v1/organizations" \
151151
-H "MC-Api-Key: your_api_key" \
152152
-H "Content-Type: application/json" \
153-
-d "[request_body]"
153+
-d "request_body"
154154
```
155-
> The above command returns JSON structured like this:
155+
> Request body example:
156156
157157
```json
158158
{
@@ -193,9 +193,9 @@ Update an organization. It's parent organization cannot be changed. It can be as
193193
curl -X PUT "https://cloudmc_endpoint/v1/organizations/03bc22bd-adc4-46b8-988d-afddc24c0cb5" \
194194
-H "MC-Api-Key: your_api_key" \
195195
-H "Content-Type: application/json" \
196-
-d "[request_body]"
196+
-d "request_body"
197197
```
198-
> The above command returns JSON structured like this:
198+
> Request body example:
199199
200200
```json
201201
{

source/includes/administration/_resource_commitments.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ Attributes |  
191191
curl -X POST "https://cloudmc_endpoint/v1/resource_commitments" \
192192
-H "MC-Api-Key: your_api_key" \
193193
-H "Content-Type: application/json" \
194-
-d "[request_body]"
194+
-d "request_body"
195195
```
196-
> The above command returns JSON structured like this:
196+
> Request body example:
197197
198198
```json
199199
{
@@ -262,9 +262,9 @@ The responses' `data` field contains the created [resource-commitment](#administ
262262
curl -X PUT "https://cloudmc_endpoint/v1/resource_commitments/fbgc7647-71e6-w69b-998a-c02rf58bf2e6" \
263263
-H "MC-Api-Key: your_api_key" \
264264
-H "Content-Type: application/json" \
265-
-d "[request_body]"
265+
-d "request_body"
266266
```
267-
> The above command returns JSON structured like this:
267+
> Request body example:
268268
269269
```json
270270
{

source/includes/administration/_users.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ Attributes |  
139139
curl -X POST "https://cloudmc_endpoint/v1/users" \
140140
-H "MC-Api-Key: your_api_key" \
141141
-H "Content-Type: application/json" \
142-
-d "[request-body]"
142+
-d "request-body"
143143
```
144-
> The above command returns JSON structured like this:
144+
> Request body example:
145145
146146
```json
147147
{
@@ -191,9 +191,9 @@ The responses' `data` field contains the created [user](#administration-users) w
191191
curl -X PUT "https://cloudmc_endpoint/v1/users/fdf60a19-980d-4380-acab-914485111305" \
192192
-H "MC-Api-Key: your_api_key" \
193193
-H "Content-Type: application/json" \
194-
-d "[request-body]"
194+
-d "request-body"
195195
```
196-
> The above command returns JSON structured like this:
196+
> Request body example:
197197
198198
```json
199199
{

source/includes/azure/_network_security_groups.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Attributes |  
6363

6464
```shell
6565
curl -X POST \
66-
'http://cloudmc_endpoint/v1/services/azure/co-emcilroy-eastasia/networkSecurityGroups' \
66+
'http://cloudmc_endpoint/v1/services/azure/my-azure/networkSecurityGroups' \
6767
-H 'mc-api-key: your_api_key' \
6868
-d '{
6969
"name": "network-security-group",
@@ -84,7 +84,7 @@ Required |  
8484

8585
```shell
8686
curl -X DELETE \
87-
'http://cloudmc_endpoint/v1/services/azure/co-emcilroy-eastasia/networkSecurityGroups/subscriptions/6b6a1f27-55c1-4b1d-969b-60a3c9eebe64/resourceGroups/azure-system-co-cloudmc-eastus/providers/Microsoft.Network/networkSecurityGroups/test' \
87+
'http://cloudmc_endpoint/v1/services/azure/my-azure/networkSecurityGroups/subscriptions/6b6a1f27-55c1-4b1d-969b-60a3c9eebe64/resourceGroups/azure-system-co-cloudmc-eastus/providers/Microsoft.Network/networkSecurityGroups/test' \
8888
-H 'mc-api-key: your_api_key'
8989
```
9090

source/includes/cloudstack/_bare_metal_instances.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ Optional |  
5959
curl -X POST \
6060
-H "Content-Type: application/json" \
6161
-H "MC-Api-Key: your_api_key" \
62+
-d "request_body" \
6263
"https://cloudmc_endpoint/v1/services/compute-on/test_area/instances/5951c2b8-e901-4c01-8ae0-cb8d7c508d29?operation=releaseBareMetal"
6364
```
64-
> The above command returns JSON structured like this:
65+
> Request body example:
6566
6667
```json
6768
{

source/includes/cloudstack/_instances.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,10 @@ Optional |  
265265
```shell
266266
curl -X DELETE \
267267
-H "MC-Api-Key: your_api_key" \
268+
-d "request_body" \
268269
"https://cloudmc_endpoint:443/v1/services/compute-on/test_area/instances/5bf7352c-eed2-43dc-83f1-89917fb893ca"
269270
```
270-
> The above command returns JSON structured like this:
271+
> Request body example:
271272
272273
```json
273274
{
@@ -318,9 +319,10 @@ Start an existing instance. The instance must be in the *Stopped* state for this
318319
curl -X POST \
319320
-H "Content-Type: application/json" \
320321
-H "MC-Api-Key: your_api_key" \
322+
-d "request_body" \
321323
"https://cloudmc_endpoint/v1/services/compute-on/test_area/instances/5951c2b8-e901-4c01-8ae0-cb8d7c508d29?operation=stop"
322324
```
323-
> The above command returns JSON structured like this:
325+
> Request body example:
324326
325327
```json
326328
{

source/includes/cloudstack/_nics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ curl -X POST \
136136
-d "request_body" \
137137
"https://cloudmc_endpoint/v1/services/compute-on/test_area/nics"
138138
```
139-
> The above command returns JSON structured like this:
139+
> Request body example:
140140
141141
```json
142142
{

source/includes/cloudstack/_port_forwarding_rules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ curl -X POST \
129129
-d "request_body" \
130130
"https://cloudmc_endpoint/v1/services/compute-on/test_area/portforwardingrules"
131131
```
132-
> The above command returns JSON structured like this:
132+
> Request body example:
133133
134134
```json
135135
{

source/includes/gcp/_instances.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ curl -X POST \
288288
-d "request_body" \
289289
"https://cloudmc_endpoint/v1/services/gcp/test-area/instances"
290290
```
291-
> Request body example:
291+
> Request body examples:
292292
293293
```js
294294
// Create an instance with an existing IP

0 commit comments

Comments
 (0)