Retrieving Distribution Targets Associated with Context
You can retrieve the active or inactive Distribution Targets associated with the Site and Organization contexts in Windchill system.
* 
Distribution Targets are not available for the Product and Library contexts.
Example: Retrieving All Distribution Targets
This example shows you how to retrieve all Distribution Targets associated with the Site and Organization contexts. Use the following GET URI.
URI
GET Windchill/servlet/odata/ESI/DistributionTargets
Example: Retrieving Distribution Targets Associated with the Site Context
This example shows you how to retrieve the Distribution Targets associated with the Site context by specifying the context in the URI.
Use the filter with expression $filter=Context/Name eq 'Site' and the expansion $expand=Context in order to get all the Distribution Targets associated with the Site context. Use the following GET URI.
URI
GET Windchill/servlet/odata/ESI/DistributionTargets?$filter=Context/Name eq 'Site'&$count=true&$expand=Context
Example: Retrieving Distribution Targets Associated with the Organization Context
This example shows you how to retrieve the Distribution Targets associated with the Demo Organization context by specifying the context in the URI.
Use the filter with expression $filter=Context/Name eq 'Demo Organization' and the expansion $expand=Context in order to get all the Distribution Targets associated with the Demo Organization context. Use the following GET URI.
URI
GET Windchill/servlet/odata/ESI/DistributionTargets?$filter=Context/Name eq 'Demo Organization'&$count=true&$expand=Context