You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/api-management/api-management-howto-api-inspector.md
+16-10Lines changed: 16 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,14 +101,17 @@ Detailed steps follow.
101
101
}
102
102
```
103
103
104
-
> NOTE: The `apiId` can only be only be pulled from the full resource ID, not the name displayed in the portal.
104
+
> [!NOTE]
105
+
> The `apiId` can only be pulled from the full resource ID, not the name displayed in the portal.
105
106
106
107
Get apiId:
107
-
```sh
108
+
109
+
110
+
```azurecli
108
111
az apim api list --resource-group <resource-group> --service-name <service-name> -o table
109
112
```
110
113
111
-
The token credential is returned in the response, similar to the following:
114
+
The debug credential is returned in the response, similar to the following:
112
115
113
116
```json
114
117
{
@@ -150,19 +153,22 @@ Detailed steps follow.
150
153
151
154
The response body contains the trace data for the previous API request to the gateway. The trace is similar to the trace you can see by tracing a call in the portal's test console.
152
155
153
-
Below is an example `.http` file for the VSCode http client extension:
156
+
157
+
### Example `.http` file for VSCode REST Client extension
158
+
159
+
To help automate these steps with the [Visual Studio Code REST Client](https://marketplace.visualstudio.com/items?itemName=humao.rest-client) extension, you can use the following example `.http` file:
154
160
155
161
```http
156
-
@subscriptionId = // Your subscription Id
162
+
@subscriptionId = // Your subscription ID
157
163
@resourceGroup = // Your resource group
158
-
@apimName = // Your APIM Serviuce name
159
-
@clientId = // Client id from an app registration for authentication
160
-
@clientSecret = // Client Secret
164
+
@apimName = // Your API Management Service name
165
+
@clientId = // Client ID from an app registration for authentication
166
+
@clientSecret = // Client secret
161
167
@externalHost = // The host name of the APP Gateway or the fully qualified gateway URL
0 commit comments