Get

Get Ephemeral Environment Hostnames

GET https://api.releasehub.com/api/apps/:app_id/environments/:id

Get hostnames for a Release Ephemeral environment. By passing in the app and environment, you can retrieve the host names associated with a Release environment. This is useful when you need the URLs to perform tasks such as integration of end-to-end testing.

Path Parameters

NameTypeDescription

app_id*

integer

Release App ID

id*

integer

Release Environment ID

Headers

NameTypeDescription

X-Account-ID*

integer

Account ID

X-Account-Token*

string

Authentication token

{"message": "Successfully created|updated Environment"}

{% swagger-response status="404" description="If an App cannot be found with the given app_id, a Not Found will be returned. {"error": "Could not find app with id 0"}If a User cannot be found to authenticate either from the committer email or from the App's owner, a Not Found will be returned. {"error": "No user found"}" %}

{"error": "message"}

The following is an example response payload

{
   "hostnames":[
      {
         "target":"frontend",
         "hostname":"frontend-react-express-mongodb-teddccc.releaseapp.io",
         "protocol":"https",
         "path":"/"
      },
      {
         "target":"backend",
         "hostname":"backend-react-express-mongodb-teddccc.releaseapp.io",
         "protocol":"https",
         "path":"/"
      }
   ]
}

Last updated