EnvironmentsApi


Get gateway environments

Get a list of gateway environments configured previously.\n

URL

https://apis.wso2.com/api/am/publisher/v0.9/environments

HTTP Method

GET

Scope

apim:api_view

CURL Example

curl -H "Authorization: Bearer b0982cd2aacd463ff5f63cd5ebe58f4a" "http://127.0.0.1:9763/api/am/publisher/v0.9/environments"

Sample Response

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 }

Parameters

Type Name Description Schema Default
Query

apiId

optional

Will return environment list for the provided API.\n

String

Responses

HTTP Code Description Schema

200

OK.\nEnvironment list is returned.\n

EnvironmentList

304

Not Modified.\nEmpty body because the client has already the latest version of the requested resource.\n

404

Not Found.\nRequested API does not exist.\n

Error