List of partners
get
/appstore/publisher/v1/users/{id}/partners
Fetch all the partners for the admins to impersonate.
Request
Path Parameters
-
id: integer(int64)
User Id of a valid admin user with partner-access enabled.
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" ]
401 Response
Not Authorized
404 Response
Entity Not Found
500 Response
System Error
Examples
The following example returns a list of all the partners, by submitting a GET request on the REST resource using cURL.
cURL Example
curl -X GET -H "X-Oracle-UserId:>admin-email" -H "Authorization: Bearer Access-token" "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/users/{id}/partners"
Request Header
X-Oracle-UserId: fname.lname@oracle.com Authorization: Bearer Access-token
Request Body
None
HTTP Status Code:
200 OK
JSON Response:
{ "items": [ { "partner": { "partnerId": 7079475, "name": "12c REST Partner" } }, { "partner": { "partnerId": 1311448, "name": "2LA SRL" } } ], "hasMore": true, "count": 2, "totalResults": 2, "links": [ { "rel": "CANONICAL", "href": "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/users/7217027/partners" }, { "rel": "SELF", "href": "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/users/7217027/partners" }, { "rel": "NEXT", "href": "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/users/7217027/partners?offset=20" } ] }Back to Top