Application Package
get
/appstore/publisher/v1/applications/{listingVersionId}/packages
Get the package configured for the application. A package describes the install/uninstall steps and the resources 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
Root Schema : PackageVersion
Type:
Show Source
object
-
accessURLs(optional):
array accessURLs
-
actions(optional):
array actions
-
code(optional):
string
-
dependentServices(optional):
array dependentServices
-
deploymentMode(optional):
string
-
description(optional):
string
-
displayName(optional):
string
-
downloadablePackageResource(optional):
object Resource
-
links(optional):
array link
-
listingImageURL(optional):
string
-
listingVersionId(optional):
integer(int64)
-
name(optional):
string
-
namespacePrefix(optional):
string
-
operations(optional):
array operations
-
owner(optional):
string
-
partnerName(optional):
string
-
resources(optional):
array resources
-
version(optional):
string
Nested Schema : InputStream
Type:
object
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/v1/applications/2133526/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": 3084832, "listingVersionId": 2133526, "name": "Add credential package : soude - 2016-01-29 [try #1]_3084831", "description": "Rest Package Snippet", "version": "1.0", "type": "UNMANAGED", "namespacePrefix": "Rest Package Snippet", "displayName": "", "listingImageURL": "https://ocm-apis.cloud.oracle.com/marketplace/content?contentId=2133542", "status": "VALIDATION_SUCCEEDED", "dependentServices": [ { "tag": "Java Service", "serviceName": "JAVA", "minVersion": "1", "maxVersion": "10", "isDedicatedToAppFlag": true, "minSize": "1311", "maxSize": "" } ], "actions": [ { "tag": "Add credential", "dependentServiceTag": "Java Service", "actionName": "addcredential", "type": "OUT_OF_THE_BOX_ACTION", "requestProperties": [ { "name": "CREDENTIAL_MAP_NAME", "source": "BLUEPRINT_STATIC", "value": "user.custom.map" }, { "name": "DESCRIPTION", "source": "BLUEPRINT_STATIC", "value": "Test action for addcredential - soude" }, { "name": "KEY", "source": "BLUEPRINT_STATIC", "value": "ADD_CRED_TEST" }, { "name": "KEY_USER", "source": "BLUEPRINT_STATIC", "value": "ADD_CRED_TEST_SOUDE" }, { "name": "KEY_PASSWORD", "source": "BLUEPRINT_STATIC", "value": "Welcome1" } ], "authentication": { "type": "", "authHeader": "" } }, { "tag": "Delete credential", "dependentServiceTag": "Java Service", "actionName": "deletecredential", "type": "OUT_OF_THE_BOX_ACTION", "requestProperties": [ { "name": "CREDENTIAL_MAP_NAME", "source": "BLUEPRINT_STATIC", "value": "user.custom.map" }, { "name": "KEY", "source": "BLUEPRINT_STATIC", "value": "ADD_CRED_TEST" } ], "authentication": { "type": "", "authHeader": "" } } ], "operations": [ { "type": "INSTALL", "actionExecutionSequence": [ { "sequenceNumber": 1, "actionTag": "Add credential" } ] }, { "type": "UNINSTALL", "actionExecutionSequence": [ { "sequenceNumber": 1, "actionTag": "Delete credential" } ] } ], "accessURLs": [ { "name": "static", "description": "Test URL", "staticURL": "https://www.oracle.co.in/?gws_rd=ssl" } ], "links": [ { "rel": "CANONICAL", "href": "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/applications/2133526/packages" } ] }Back to Top