26.4. Retrieving a Specific Resource from a Collection

In these examples a specific resource is retrieved from a collection using the get method.

Example 26.1. Retrieving a Specific Resource by Name

Retrieving the Default data center from the datacenters collection using the name parameter of the get method:

dc = api.datacenters.get("Default")
This syntax is equivalent:

dc = api.datacenters.get(name="Default")