Sure, this will get you all the repos in your engine,
curl -X GET -k
http://delphix-server/resources/json/delphix/repository \
-b ~/cookies.txt -H "Content-Type: application/json"
And this will get you all the repos for the specific server (environment):
curl -X GET -k
http://delphix-server/resources/json/delphix/repository?environment=UNIX_HOST_ENVIRONMENT-2 \
-b ~/cookies.txt -H "Content-Type: application/json"
=======My result====
{
"type": "ListResult",
"status": "OK",
"result": [
{
"type": "OracleInstall",
"reference": "ORACLE_INSTALL-1",
"namespace": null,
"name": "/u01/app/oracle/product/11.2.0.4/db_1",
"version": "11.2.0.4.0",
"linkingEnabled": true,
"provisioningEnabled": true,
"environment": "UNIX_HOST_ENVIRONMENT-2",
"staging": false,
"installationHome": "/u01/app/oracle/product/11.2.0.4/db_1",
"oracleBase": "/u01/app/oracle",
"groupName": "oinstall",
"groupId": 500,
"userName": "delphix",
"userId": 501,
"bits": 64,
"rac": false,
"discovered": true,
"logsyncPossible": true,
"appliedPatches": []
},
{
"type": "OracleInstall",
"reference": "ORACLE_INSTALL-4",
"namespace": null,
"name": "/u01/app/oracle/product/12.1.0/dbhome_1",
"version": "12.1.0.2.0",
"linkingEnabled": true,
"provisioningEnabled": true,
"environment": "UNIX_HOST_ENVIRONMENT-2",
"staging": false,
"installationHome": "/u01/app/oracle/product/12.1.0/dbhome_1",
"oracleBase": "/u01/app/oracle",
"groupName": "oinstall",
"groupId": 500,
"userName": "delphix",
"userId": 501,
"bits": 64,
"rac": false,
"discovered": true,
"logsyncPossible": true,
"appliedPatches": []
},
{
"type": "AppDataRepository",
"reference": "APPDATA_REPOSITORY-10",
"namespace": null,
"name": "E-Business Suite R12.2 appsTier",
"version": null,
"linkingEnabled": true,
"provisioningEnabled": true,
"environment": "UNIX_HOST_ENVIRONMENT-2",
"staging": false,
"toolkit": "APPDATA_TOOLKIT-5",
"parameters": {
"name": "E-Business Suite R12.2 appsTier"
}
},
{
"type": "AppDataRepository",
"reference": "APPDATA_REPOSITORY-12",
"namespace": null,
"name": "E-Business Suite R12.2 dbTechStack",
"version": null,
"linkingEnabled": true,
"provisioningEnabled": true,
"environment": "UNIX_HOST_ENVIRONMENT-2",
"staging": false,
"toolkit": "APPDATA_TOOLKIT-3",
"parameters": {
"name": "E-Business Suite R12.2 dbTechStack"
}
},
{
"type": "AppDataRepository",
"reference": "APPDATA_REPOSITORY-14",
"namespace": null,
"name": "Unstructured Files",
"version": null,
"linkingEnabled": true,
"provisioningEnabled": true,
"environment": "UNIX_HOST_ENVIRONMENT-2",
"staging": false,
"toolkit": "APPDATA_TOOLKIT-2",
"parameters": {
"name": "Unstructured Files"
}
},
{
"type": "AppDataRepository",
"reference": "APPDATA_REPOSITORY-15",
"namespace": null,
"name": "SugarCRM Application Repository",
"version": null,
"linkingEnabled": true,
"provisioningEnabled": true,
"environment": "UNIX_HOST_ENVIRONMENT-2",
"staging": false,
"toolkit": "APPDATA_TOOLKIT-8",
"parameters": {
"name": "SugarCRM Application Repository"
}
},
{
"type": "AppDataRepository",
"reference": "APPDATA_REPOSITORY-16",
"namespace": null,
"name": "webapp",
"version": null,
"linkingEnabled": true,
"provisioningEnabled": true,
"environment": "UNIX_HOST_ENVIRONMENT-2",
"staging": false,
"toolkit": "APPDATA_TOOLKIT-7",
"parameters": {
"name": "webapp"
}
},
{
"type": "AppDataRepository",
"reference": "APPDATA_REPOSITORY-1",
"namespace": null,
"name": "agilemasking",
"version": null,
"linkingEnabled": true,
"provisioningEnabled": true,
"environment": "UNIX_HOST_ENVIRONMENT-2",
"staging": false,
"toolkit": "APPDATA_TOOLKIT-6",
"parameters": {
"name": "agilemasking"
}
},
{
"type": "AppDataRepository",
"reference": "APPDATA_REPOSITORY-2",
"namespace": null,
"name": "E-Business Suite R12.1 appsTier",
"version": null,
"linkingEnabled": true,
"provisioningEnabled": true,
"environment": "UNIX_HOST_ENVIRONMENT-2",
"staging": false,
"toolkit": "APPDATA_TOOLKIT-1",
"parameters": {
"name": "E-Business Suite R12.1 appsTier"
}
},
{
"type": "AppDataRepository",
"reference": "APPDATA_REPOSITORY-4",
"namespace": null,
"name": "E-Business Suite R12.1 dbTechStack",
"version": null,
"linkingEnabled": true,
"provisioningEnabled": true,
"environment": "UNIX_HOST_ENVIRONMENT-2",
"staging": false,
"toolkit": "APPDATA_TOOLKIT-4",
"parameters": {
"name": "E-Business Suite R12.1 dbTechStack"
}
},
{
"type": "PgSQLInstall",
"reference": "PGSQL_INSTALL-1",
"namespace": null,
"name": "/usr/pgsql-9.2",
"version": "9.2.14",
"linkingEnabled": true,
"provisioningEnabled": true,
"environment": "UNIX_HOST_ENVIRONMENT-2",
"staging": false,
"variant": "PostgreSQL",
"installationPath": "/usr/pgsql-9.2",
"bits": 64,
"segmentSize": 16777216,
"discovered": true
},
{
"type": "MySQLInstall",
"reference": "MYSQL_INSTALL-1",
"namespace": null,
"name": "/usr",
"version": "5.6.36 MySQL Community/Enterprise",
"linkingEnabled": true,
"provisioningEnabled": true,
"environment": "UNIX_HOST_ENVIRONMENT-2",
"staging": true,
"internalVersion": {
"type": "MySQLVersion",
"version": "5.6.36",
"variant": "CommunityServer"
},
"installationPath": "/usr",
"discovered": true
}
],
"job": null,
"action": null,
"total": 24,
"overflow": false
}