GET https://apis.wso2.com/api/am/publisher/v0.13/environments
This operation can be used to retrieve the list of gateway environments available.
apim:api_view
i
GET https://localhost:9443/api/am/publisher/v0.13/environments
Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8
HTTP/1.1 200 OK
Content-Type: application/json
{
"list": [ {
"showInApiConsole": true,
"serverUrl": "https://localhost:9443/services/",
"endpoints": {
"http": "http://localhost:8280",
"https": "https://localhost:8243"
},
"name": "Production and Sandbox",
"type": "hybrid"
}],
"count": 1
}
curl -k -H "Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8" "https://localhost:9443/api/am/publisher/v0.13/environments"
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
apiId required |
**API ID** consisting of the **UUID** of the API. Using the **UUID** in the API call is recommended. The combination of the provider of the API, name of the API and the version is also accepted as a valid API I. Should be formatted as **provider-name-version**. |
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 |