List all Packages of a Package Management Environment
- GET /api/v1.2/package/<target_env_id>/list_all_packages
Use this API to get the list of installed and pending packages in a specific Package Management environment. <target_env_id>
denotes the environment’s ID.
Questions about Package Management provides answers to questions related to adding packages.
Required Role
The following users can make this API call:
Users who belong to the system-user or system-admin group.
Users who belong to a group associated with a role that allows reading/updating an environment. See Managing Groups and Managing Roles for more information.
Parameters
Note
Parameters marked in bold are mandatory. Others are optional and have default values.
Parameter |
Description |
---|---|
env_type |
Type of the environment for which the packages list should be fetched.
Valid values are |
Request API Syntax
curl -X GET -H "X-AUTH-TOKEN: <API-TOKEN>" -H "Content-Type: application/json" -H "Accept: application/json" \
"https://api.qubole.com/api/v1.2/package/<target_env_id>/list_all_packages"
Sample API Request
Here is the sample API request to list packages of a Package Management environment that has 516 as its ID.
curl -X GET -H "X-AUTH-TOKEN: <API-TOKEN>" -H "Content-Type: application/json" -H "Accept: application/json" \
"https://api.qubole.com/api/v1.2/package/516/list_all_packages"