Commercial API
Commercial customers can use Chef’s Commercial API to download Chef software packages and view software package metadata.
Install script
You can use an install script from the API to download and install Chef packages. For more information, see the Chef install script documentation.
License
To download packages and review metadata with this API, you need a license ID.
You can get your license ID from the Chef Downloads portal, or contact Chef if you don’t have one.
For more information, see Chef’s licensing documentation.
Endpoints
The Chef Commercial Download API has the following endpoints:
/architectures
/platforms
/products
/packages
/versions/all
/versions/latest
/metadata
/download
For details about query strings, see the parameters section.
architectures
The architectures
endpoint returns a list of valid architectures for Chef products. You can use any of these architectures as the m
query string value in the endpoints below.
https://chefdownload-commercial.chef.io/architectures
platforms
The platforms
endpoint returns a list of valid platform keys and friendly names. You can use any of these platform keys as the p
query string value in the endpoints below.
https://chefdownload-commercial.chef.io/platforms
products
The products
endpoint returns a list of valid product keys. In the endpoints below, replace <PRODUCT>
with a product key from this response.
https://chefdownload-commercial.chef.io/products
To include EOL products, use eol=true
:
https://chefdownload-commercial.chef.io/products?eol=true
packages
Use the packages
endpoint to get a full list of packages for a particular release channel and product.
By default, this endpoint returns packages for the latest version.
https://chefdownload-commercial.chef.io/<CHANNEL>/<PRODUCT>/packages?license_id=<LICENSE_ID>
To get packages for a specific product version, use the v
query string:
https://chefdownload-commercial.chef.io/<CHANNEL>/<PRODUCT>/packages?v=<VERSION_NUMBER>&license_id=<LICENSE_ID>
versions/all
Use versions/all
to return a list of versions of a product from a particular release channel.
https://chefdownload-commercial.chef.io/<CHANNEL>/<PRODUCT>/versions/all?license_id=<LICENSE_ID>
versions/latest
Use versions/latest
to return the latest version of a product from a particular release channel.
https://chefdownload-commercial.chef.io/<CHANNEL>/<PRODUCT>/versions/latest?license_id=<LICENSE_ID>
metadata
The metadata
endpoint returns data about a particular package of a Chef product.
https://chefdownload-commercial.chef.io/<CHANNEL>/<PRODUCT>/metadata?p=<PLATFORM>&pv=<PLATFORM_VERSION>&m=<ARCHITECTURE>&v=<PRODUCT_VERSION>&license_id=<LICENSE_ID>
download
The download
endpoint downloads a particular package of a Chef product.
https://chefdownload-commercial.chef.io/<CHANNEL>/<PRODUCT>/download?p=<PLATFORM>&pv=<PLATFORM_VERSION>&m=<ARCHITECTURE>&v=<PRODUCT_VERSION>&license_id=<LICENSE_ID>
Parameters
The API accepts the following parameters in a query string.
<CHANNEL>
- The release channel to install from. For the available channels, see release channels.
<PRODUCT>
- The Chef Software product to install.
A list of valid product keys can be found in the Chef product matrix or by using the
products
endpoint. license_id
- Your license ID.
A license is required to download packages and retrieve package metadata with this API.
eol
- Whether to include EOL versions of a product or EOL products in the response.
Possible values:
true
orfalse
.Default value:
false
. p
- The platform.
Possible values:
debian
,el
(for RHEL derivatives),freebsd
,mac_os_x
,solaris2
,sles
,suse
,ubuntu
orwindows
. pv
- The platform version.
Possible values depend on the platform. For example, Ubuntu:
18.04
, or20.04
, or for macOS:10.15
or11
. m
- The machine architecture for the machine on which the product will be installed.
Possible values depend on the platform. For example, for Ubuntu or Debian:
i386
orx86_64
, or for macOS:x86_64
. v
- The version of the product to be installed.
Versions typically take the form of
x.y.z
where x, y, and z are decimal numbers that are used to represent major (x), minor (y), and patch (z) versions. One-part (x
) and two-part (x.y
) versions are allowed.Default value:
latest
.
Chef product names
Use the following product keys to download packages or retrieve data for different Chef products. You can also use the products endpoint
Product | Product key |
---|---|
Chef Automate | automate |
Chef Infra Client | chef |
Chef Backend | chef-backend |
Chef Infra Server | chef-server |
Chef Workstation | chef-workstation |
Chef Habitat | habitat |
Chef InSpec | inspec |
Management Console | manage |
Supermarket | supermarket |
See the supported versions documentation for information about the support status of individual products.
Release channels
Chef releases packages from the following release channels:
Channel | Description |
---|---|
stable | A build from this channel is an “official” release that has passed full user acceptance testing. Artifacts in this channel are retained indefinitely. |
current | A build from this channel is an “integration” build that has passed full testing, but hasn’t been officially released. Artifacts in this channel are retained for 30 days and then removed automatically. |
Use the stable channel when installing Chef products on production systems.
Examples
Get the latest build
To get the latest supported build of Chef Infra Client for Ubuntu 20.04, enter the following:
https://chefdownload-commercial.chef.io/stable/chef/metadata?p=ubuntu&pv=20.04&m=x86_64&license_id=<LICENSE_ID>
which returns something like:
sha1 "8e8ae315d4695f9c95efc0a1437d2d453f7ab116"
sha256 "86f14ae08237b4e24201436ecb83c08c29b68aed1d6ede0953a1b4547a920e36"
url "https://chefdownload-commercial.chef.io/stable/chef/download?license_id=<LICENSE_ID>&m=x86_64&p=ubuntu&pv=20.04"
version "18.2.7"
Download directly
To use cURL to download a package directly, enter the following:
curl -LOJ 'https://chefdownload-commercial.chef.io/<CHANNEL>/<PRODUCT>/download?p=<PLATFORM>&pv=<PLATFORM_VERSION>&m=<ARCHITECTURE>&license_id=<LICENSE_ID>'
To use GNU Wget to download a package directly, enter the following:
wget --content-disposition https://chefdownload-commercial.chef.io/<CHANNEL>/<PRODUCT>/download?p=<PLATFORM>&pv=<PLATFORM_VERSION>&m=<ARCHITECTURE>&license_id=<LICENSE_ID>