Artifact details
get
/appstore/publisher/v1/artifacts/{artifactId}
Get the artifact details for a given artifactId.
Request
Path Parameters
-
artifactId: integer(int64)
artifact ID of the artifact.
Response
Supported Media Types
- application/json;qs=1
- application/xml;qs=.5
200 Response
Successful Operation
Root Schema : Artifact
Type:
Show Source
object
-
artifactId(optional):
integer(int64)
-
artifactProperties(optional):
array artifactProperties
-
artifactType(optional):
string
-
createdBy(optional):
string
-
creationDate(optional):
string(date-time)
-
lastModifiedBy(optional):
string
-
lastModifiedDate(optional):
string(date-time)
-
name(optional):
string
-
processingStatusNote(optional):
string
-
replicatedRegions(optional):
array replicatedRegions
-
source(optional):
object ArtifactSource
-
status(optional):
string
-
triggerImageValidation(optional):
boolean
-
uploadRequest(optional):
object UploadRequest
-
username(optional):
string
400 Response
Bad Request
401 Response
Not Authorized
500 Response
System Error
Examples
The following example returns details of an artifact of a partner 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/artifacts/15805025"
Request Header
X-Oracle-UserId: fname.lname@oracle.com Authorization: Bearer Access-token
Request Body
None
HTTP Status Code:
200 OK
JSON Response:
{ "artifactId":15805025, "artifactType":"OCI Compute Image", "name":"MODX 2.6.5pl-1", "status":"Available", "lastModifiedBy":"John Doe", "lastModifiedDate":"2018-10-05T14:07:15.199Z", "createdBy":"John Doe", "creationDate":"2018-10-05T14:07:15.000Z", "source": { "regionCode": "us-ashburn-1", "uniqueIdentifier": "ocid1.image.oc1.iad.aaaaaaaaypp76pttzvhkmtxqhvojbczcvpw3diyozxevig3ybnig2vs4vpiq" }, "replicatedRegions": [{ "name": "us-ashburn-1", "status": "Available", "uniqueIdentifier": "ocid1.image.region1..aaaaaaaamd3z6t4cftcojuledcrmrkkhug642w4a33amsn75efdorm6q5guq" }, { "name": "eu-frankfurt-1", "status": "Unavailable" }, { "name": "us-phoenix-1", "status": "Unavailable" }], "artifactProperties":[ { "artifactTypePropertyName":"compartmentOCID", "value":"ocid1.compartment.region1..aaaaaaaaelzb6xjh2zsebgziqnbsdva7sk4ngmfq3m3r2vcgwkss4efum7gq" }, { "artifactTypePropertyName":"ociTenancyID", "value":"15786747" } ], "uploadRequest":{}, "compatibleShapes": [ { "shape": "VM.Standard2.4", "ocpuConstraints": { "min": 5, "max": 6 }, "memoryConstraints": { "minInGBs": 1, "maxInGBs": 5 } } ] }Back to Top