Artifact details

get

/appstore/publisher/v1/artifacts/{artifactId}

Get the artifact details for a given artifactId.

Request

Path Parameters
Back to Top

Response

Supported Media Types

200 Response

Successful Operation
Body ()
Root Schema : Artifact
Type: object
Show Source
Nested Schema : artifactProperties
Type: array
Show Source
Nested Schema : replicatedRegions
Type: array
Show Source
Nested Schema : ArtifactSource
Type: object
Show Source
Nested Schema : UploadRequest
Type: object
Show Source
Nested Schema : ArtifactProperty
Type: object
Show Source
Nested Schema : ArtifactRegion
Type: object
Show Source
Nested Schema : uploadParts
Type: array
Show Source
Nested Schema : UploadPart
Type: object
Show Source

400 Response

Bad Request

401 Response

Not Authorized

500 Response

System Error
Back to Top

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