Skip to content

Commit e3c2ab9

Browse files
committed
fixes adding a few quotations where missing
1 parent fce87c7 commit e3c2ab9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/chaos-studio/chaos-studio-samples-rest-api.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,23 @@ az rest --method get --url "https://management.azure.com/subscriptions/{subscrip
7070
To use a resource in an experiment, you need to enable it as a target.
7171

7272
```azurecli
73-
az rest --method put --url "https://management.azure.com/{resourceId}/providers/Microsoft.Chaos/targetTypes/{targetType}?api-version={apiVersion}" --body "{'properties':{}}"
73+
az rest --method put --url "https://management.azure.com/{resourceId}/providers/Microsoft.Chaos/targets/{targetType}?api-version={apiVersion}" --body "{'properties':{}}"
7474
```
7575

7676
### Enable capabilities for a target
7777

7878
Once a resource has been enabled as a target, you need to specify what capabilities (corresponding to faults) are allowed.
7979

8080
```azurecli
81-
az rest --method put --url "https://management.azure.com/{resourceId}/providers/Microsoft.Chaos/targetTypes/{targetType}/capabilities/{capabilityName}?api-version={apiVersion}" --body "{'properties':{}}"
81+
az rest --method put --url "https://management.azure.com/{resourceId}/providers/Microsoft.Chaos/targets/{targetType}/capabilities/{capabilityName}?api-version={apiVersion}" --body "{'properties':{}}"
8282
```
8383

8484
### See what capabilities are enabled for a target
8585

8686
Once a target and capabilities have been enabled, you can view the enabled capabilities. This is useful for constructing your chaos experiment, since it includes the parameter schema for each fault.
8787

8888
```azurecli
89-
az rest --method get --url "https://management.azure.com/{resourceId}/providers/Microsoft.Chaos/targetTypes/{targetType}/capabilities?api-version={apiVersion}"
89+
az rest --method get --url "https://management.azure.com/{resourceId}/providers/Microsoft.Chaos/targets/{targetType}/capabilities?api-version={apiVersion}"
9090
```
9191

9292
## Experiments
@@ -114,7 +114,7 @@ az rest --method put --url "https://management.azure.com/{experimentId}?api-vers
114114
### Delete an experiment
115115

116116
```azurecli
117-
az rest --method delete --url "https://management.azure.com/{experimentId}?api-version={apiVersion}" --verbose
117+
az rest --method delete --url "https://management.azure.com/{experimentId}?api-version={apiVersion}"
118118
```
119119

120120
### Start an experiment
@@ -134,7 +134,7 @@ az rest --method get --url "https://management.azure.com/{experimentId}/executio
134134
If an experiment has failed, this can be used to find error messages and specific targets, branches, steps, or actions that failed.
135135

136136
```azurecli
137-
az rest --method get --url "https://management.azure.com/{experimentId}/executions/{executionDetailsId}?api-version={apiVersion}"
137+
az rest --method post --url "https://management.azure.com/{experimentId}/executions/{executionDetailsId}/getExecutionDetails?api-version={apiVersion}"
138138
```
139139

140140
### Cancel (stop) an experiment
@@ -149,10 +149,10 @@ While these commands don't use the Chaos Studio API specifically, they can be he
149149

150150
### View Chaos Studio resources with Azure Resource Graph
151151

152-
You can use the Azure Resource Graph [REST API](../governance/resource-graph/first-query-rest-api.md) to query resources used by Chaos Studio.
152+
You can use the Azure Resource Graph [REST API](../governance/resource-graph/first-query-rest-api.md) to query resources associated with Chaos Studio, like targets and capabilities.
153153

154154
```azurecli
155-
az rest --method post --url https://management.azure.com/providers/Microsoft.ResourceGraph/resources?api-version=2021-03-01 --body "{\"subscriptions\":[\"{subscriptionId}\"],\"query\":\"chaosresources \"}"
155+
az rest --method post --url "https://management.azure.com/providers/Microsoft.ResourceGraph/resources?api-version=2021-03-01" --body "{'query':'chaosresources'}"
156156
```
157157

158158
Alternatively, you can use Azure Resource Graph's `az cli` [extension](../governance/resource-graph/first-query-azurecli.md).

0 commit comments

Comments
 (0)