List conda environments

get

/py-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/py-scripts/v1/envs"

Response Body

The response body in JSON format is the following:

{
  "result": {
    "envs": [
      {
        "size": "1.7 GiB",
        "name": "seaborn",
        "description": "Python package for
        seaborn",
        "number_of_installed_packages": 78,
        "tags": {
        "python": "3.10",
        "application": "OML4PY"
        }
      },
      {
        "size": "169.8 MiB",
        "name": "test_python3.10",
        "description": "Python test",
        "number_of_installed_packages": 18,
        "tags": {
        "python": "3.10",
        "application": "OML4PY"
        }
      },
      {
        "size": "1.1 GiB",
        "name": "testpython",
        "description": "Python test",
        "number_of_installed_packages": 34,
        "tags": {
        "python": "3.10",
        "application": "OML4PY"
        }
      }
    ]
  }
}
Back to Top