Gets the available compute images for a given tenancyId
get
/appstore/publisher/v1/ocitenancies/{tenancyId}/computeimages
Get the available compute images for a given tenancyId of a partner.
Request
Path Parameters
-
tenancyId: boolean
this value specifies the tenancy which compartments need to be fetched.
Query Parameters
-
compartmentOCID: string
filters the images depending on this compartmentOCID.
-
nextPage(optional): string
this values determines to get the next set of values.
-
regionCode: string
filters the images depending on this regionCode.
Response
Supported Media Types
- application/json;qs=1
- application/xml;qs=.5
200 Response
Successful Operation
400 Response
Invalid Parameter Value
401 Response
Not Authorized
404 Response
Entity Not Found
500 Response
System Error
Examples
The following example fetches the image details for a given tenancy,region and compartment, by submitting a GET request on the REST resource using cURL.
cURL Example
curl -X GET -H "Authorization: Bearer Access-token" -H "X-Oracle-UserId: partner-email" "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/ocitenancies/15786747/computeimages?regionCode=SEA&compartmentOCID=ocid1.compartment.region1..aaaaaaaa3wbgnc7d4644drvokszlp6usigamqdwzofzb2qjdxfwvxf6od5jq"
Request Header
Authorization: Bearer Access-token X-Oracle-UserId: fname.lname@oracle.com
Request Body
NONEHTTP Status Code:
200 OK
JSON Response:
{ "images":[ { "id":"ocid1.image.region1.sea.aaaaaaaarsn3qi5ssn54b5pyb25bmn3l5pbk6whkhtkqbc23wsvla2bjalwa", "name":"Neos 4.1.7-0", "status":"Available", "createdDate":"Mon, 08 Oct 2018 06:01:05 PDT" } ] }Back to Top