List conda environments

get

/r-scripts/v1/envs

Returns all the available conda environments.

Request

There are no request parameters for this operation.

Back to Top

Response

200 Response

List of conda environments
Back to Top

Examples

The following example gets information about conda environments saved in an object storage.

curl -i -X GET --header "Authorization: Bearer ${token}" \
--header 'Accept: application/json' \
"<oml-cloud-service-location-url>/oml/api/r-scripts/v1/envs"

Response Body

The response body in JSON format is the following:

{
  "result": {
    "envs": [
      {
        "size": "855.5 MiB",
        "name": "myrenv",
        "description": "Install R forecast and ggplot2
        packages",
        "number_of_installed_packages": 153,
        "tags": {
        "application": "OML4R",
        "user": "OMLUSER"
        }
      },
      {
        "size": "936.4 MiB",
        "name": "shinyenv",
        "description": "shiny package test",
        "number_of_installed_packages": 128,
        "tags": {
        "application": "OML4R",
        "user": "OMLUSER"
        }
      }
    ]
  }
}
Back to Top