GET /api/v3/envs/ID

Get a single Environment’s information.

GET /api/v3/envs/ID?permission=view

Request Payload

None.

Parameters

ID The Environment ID’s to get information of.
permission Possible values are view, edit, owner. The method returns an error (status code 500) if the requesting user is not allowed to view, edit or is not an owner of the given Environment.

Response example


    {
        "projectId": "PRjTcEu83MXmpDAHTf47b-QQ2",
        "policyId": "POO2IC9GqXpX-hw58ph1Wwcg2",
        "description": "Jump up and down",
        "ownerEmail": "johndoe@cloudshare.com",
        "regionId": "REKolD1-ab84YIxODeMGob9A2",
        "name": "John Doe Environment No. 5",
        "id": "ENTpOuRlNpoZge7NmnR6K6QA2",
        "status":"Ready",
        "teamId":null
    }

In case the user is not allowed to view the environment:

{
    "message": "You're not allowed to view this environment",
    "code": "0x5006B"
}

In case the user is not allowed to edit the environment:

{
    "message": "You're not allowed to edit this environment",
    "code": "0x5006A"
}

In case the user is not the owner of the environment:

{
    "message": "You're not the owner of this environment",
    "code": "0x5006C"
}