getPublishStatus
get
/ccadmin/v1/publish
Get Publish Status. Get the status of the current publish operation.
Request
Supported Media Types
- application/json
Query Parameters
- lastPublished
-
Type:
stringFlag to return the last publish.- reset
Type:stringReset the publish operation.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getPublishStatus_response
- adminInitialDatasource
-
Type:
stringAdmin initial datasource of the publish. - currentPhase
-
Type:
integerCurrent phase of publish. - errorMessage
-
Type:
stringError message if any for the publish. - errorPhase
-
Type:
integerError phase in the publish. - firstName
-
Type:
stringFirst name of the publish initiator. - lastCompletedPhase
-
Type:
integerLast completed phase of publish. - lastName
-
Type:
stringLast name of the publish initiator. - numberOfChanges
-
Type:
integerNumber of changes in the publish. - operationType
-
Type:
stringOperation type of the publish. - publishId
-
Type:
stringPublish Id for the publish. - publishInitiator
-
Type:
stringPublish initiator for the publish. - publishRunning
-
Type:
booleanTells weather Publish is running. - statusMessage
-
Type:
stringStatus message of publish. - storeInitialDatasource
-
Type:
stringStore initial datasource of publish.
Example application/json
{
"publishInitiator":"admin",
"adminInitialDatasource":"catA",
"publishRunning":true,
"currentPhase":500,
"errorMessage":"",
"lastCompletedPhase":420,
"operationType":"publish",
"numberOfChanges":6,
"storeInitialDatasource":"catB",
"errorPhase":0,
"statusMessage":"",
"publishId":"publish10002"
}
Default Response
The error response
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Response Payload returned by endpoint:
{
"publishInitiator": "admin",
"adminInitialDatasource": "catA",
"publishRunning": true,
"currentPhase": 500,
"errorMessage": "",
"lastCompletedPhase": 420,
"operationType": "publish",
"numberOfChanges": 6,
"storeInitialDatasource": "catB",
"errorPhase": 0,
"statusMessage": "",
"publishId": "publish10002"
}