Develop > API calls > Application environment APIs > List environments eligible for deploying a package

List environments eligible for deploying a package

Lists all environments that are eligible for deploying a given package.

URI Method Parameters Returns
http://[host]:[port]/csa/api/codar/app-environments/eligible GET

packageId

200 - Success
400 - Bad request
404 - not found

Example

The following URL was sent:

https://localhost:8444/csa/api/codar/app-environments/eligible?packageId=d416df45-af08-4cac-981b-232853d2b0dd

The following JSON was returned:

{ "@total_results": 4, "@self": "/csa/api/resource/environment/", "@type": "urn:x-hp:2012:software:cloud:data_model:resource-environment:collection", "members": [ { "name": "vCenter", "id": "8a8186da510f5cd80151340c64432359", "icon": "/csa/api/blobstore/other.png?tag=library" }, { "name": "HDP", "id": "8a8186da513854bf01513862b01c007b", "icon": "/csa/api/blobstore/other.png?tag=library" }, { "name": "Application Development", "id": "8a8186da513854bf01513d733be40c22", "description": "Application Development", "icon": "/csa/api/blobstore/software_application_tier.png?tag=library" }, { "name": "Testing environment", "id": "8a8186da513854bf01513d73dcb50c24", "description": "Testing environment", "icon": "/csa/api/blobstore/other.png?tag=library" } ] }