Application Package - V2
get
/appstore/publisher/v2/applications/{listingVersionId}/packages
Get the package configured for the application. A package describes the resources and its properties required for the application.
Request
Path Parameters
-
listingVersionId: integer(int64)
Unique identifier of the application for which to return package details
Response
Supported Media Types
- application/json;qs=1
- application/xml;qs=.5
200 Response
Successful Operation
Nested Schema : Link
Type:
Show Source
object
-
href(optional):
string
-
rel(optional):
string
Allowed Values:
[ "SELF", "CANONICAL", "NEXT", "TEMPLATE", "PREV" ]
400 Response
Bad Request
401 Response
Not Authorized
500 Response
System Error
Examples
The following example returns a list of package for an application, by submitting a GET request on the REST resource using cURL.
cURL Example
curl -X GET -H "X-Oracle-UserId: partner-email" -H "Authorization: Bearer Access-token" "https://ocm-apis.cloud.oracle.com/appstore/publisher/v2/applications/{listingVersionId}/packages"
Request Header
X-Oracle-UserId: fname.lname@oracle.com Authorization: Bearer Access-token
Request Body
None
HTTP Status Code:
200 OK
JSON Response:
{ "id": 148637028, "listingVersionId": 148637011, "serviceType": "JAVA", "description": "JCS - Self Service Portal is a pre-configured, ready to run image for running Self Service Application on Oracle Cloud.", "version": "16.2", "namespacePrefix": "Rest Package Snippet", "tncId": 2528849, "status": { "code": "NEW", "displayName": "New" }, "referredByOtherListings": false, "resources": [ { "id": 148637037, "type": "datasourcealias", "serviceType": "JAVA", "properties": [ { "name": "ALIAS_NAME", "value": "productionDS" } ] }, { "id": 148637040, "type": "datasourcealias", "serviceType": "JAVA", "properties": [ { "name": "ALIAS_NAME", "value": "stagingDS" } ] }, { "id": 148637033, "type": "applicationarchive", "serviceType": "JAVA", "properties": [ { "name": "APPLICATION_NAME", "value": "Self Service Portal" }, { "name": "file", "value": "Self_Service_Portal_V2.1_JCS.war" } ] } ] }Back to Top