This operation can be used to retrieve the list of gateway environments available.
apim:api_view
i
GET https://127.0.0.1:9443/api/am/publisher/v0.10/environments
Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8
HTTP/1.1 200 OK
Content-Type: application/json
{
"list": [ {
"showInApiConsole": true,
"serverUrl": "https://192.168.56.1:9444//services/",
"endpoints": {
"http": "http://192.168.56.1:8281",
"https": "https://192.168.56.1:8244"
},
"name": "Production and Sandbox",
"type": "hybrid"
}],
"count": 1
}
curl -k -H "Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8" "https://127.0.0.1:9443/api/am/publisher/v0.10/environments"
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
apiId optional |
Will return environment list for the provided API. |
String |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK. Environment list is returned. |
EnvironmentList |
304 |
Not Modified. Empty body because the client has already the latest version of the requested resource (Will be supported in future). |
|
404 |
Not Found. Requested API does not exist. |
Error |