-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* HttpConnect example * Prettifier fix Co-authored-by: Nicolás Barrera <t-nbarrera@microsoft.com>
- Loading branch information
Showing
3 changed files
with
75 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
...preview/2021-04-01-preview/examples/ApiManagementPerformConnectivityCheckHttpConnect.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"parameters": { | ||
"serviceName": "apimService1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2021-04-01-preview", | ||
"subscriptionId": "subid", | ||
"connectivityCheckRequestParams": { | ||
"source": { | ||
"region": "northeurope" | ||
}, | ||
"destination": { | ||
"address": "https://microsoft.com", | ||
"port": 3306 | ||
}, | ||
"protocol": "HTTPS", | ||
"protocolConfiguration": { | ||
"HTTPConfiguration": { | ||
"method": "GET", | ||
"validStatusCodes": [ | ||
200, | ||
204 | ||
], | ||
"headers": [ | ||
{ | ||
"name": "Authorization", | ||
"value": "Bearer myPreciousToken" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/connectivityCheck/operationresults/bmljb2xhLW5ldHdvcmt3YXRjaGVyNF9Db25uZWN0aXRpdml0eUNoZWNrXzE2MmExNmZl?api-version=2021-04-01-preview" | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"hops": [ | ||
{ | ||
"type": "Source", | ||
"id": "c60e2296-5ebc-48cc-80e8-7e6d2981e7b2", | ||
"address": "20.82.216.48", | ||
"resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1", | ||
"nextHopIds": [ | ||
"26aa44e7-04f1-462f-aa5d-5951957b5650" | ||
], | ||
"issues": [] | ||
}, | ||
{ | ||
"type": "Internet", | ||
"id": "26aa44e7-04f1-462f-aa5d-5951957b5650", | ||
"address": "40.113.200.201", | ||
"nextHopIds": [], | ||
"issues": [] | ||
} | ||
], | ||
"connectionStatus": "Reachable", | ||
"avgLatencyInMs": 260, | ||
"minLatencyInMs": 250, | ||
"maxLatencyInMs": 281, | ||
"probesSent": 3, | ||
"probesFailed": 0 | ||
} | ||
} | ||
} | ||
} |