MGCBallastPublishService.schedulePublish
Schedules one run of the publish engine as a batch job, to start at or after the request's StartDateTime (UTC; empty means now), and returns the job. The run itself is the same one the engine makes on its schedule: when it executes it records the job and its scheduled start on the publish run (BallastPublishRuns: BatchJobId, ScheduledDateTime, StartedUtcMs, FinishedUtcMs), so a caller can read how long after its scheduled start the run began and how long it took.
- HTTP method:
POST - Route:
/api/services/MGCBallastServiceGroup/MGCBallastPublishService/schedulePublish - Service class:
MGCBallastPublishService
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCBallastPublishRequestContract | No | Bundle (None publishes every bundle), Force and StartDateTime. |
Returns
MGCBallastPublishResponseContract
The batch job and its scheduled start date/time.
Security
- Requires privilege
MGCBallastIntegrationServiceGoLive
Data contracts
The data contracts this operation takes and returns, with their members. A member whose type is another data contract links to that contract below.
MGCBallastPublishRequestContract
Request to publish the effective Ballast parameter versions now - the same run the publish engine makes on its schedule. A per-company bundle is published in every company, as the engine does.
| Member | Type | List | Description |
|---|---|---|---|
RequestId | Guid | No | Gets or sets the caller's request identifier; echoed on the response. |
CorrelationId | Guid | No | Gets or sets the identifier that ties this call to others in the same test or integration run. |
Bundle | MGCBallastBundle | No | Gets or sets the bundle to publish. None publishes every bundle. |
Force | boolean | No | Gets or sets whether to republish even where the applied version already matches. |
StartDateTime | utcdatetime | No | Gets or sets when a scheduled run may start, in UTC (schedulePublish only); empty means now. |
MGCBallastPublishResponseContract
Response for a publish: the publish run it created, the run's outcome, and how many lines and execution exceptions it recorded. The run itself, with its lines and exceptions, is readable through the BallastPublishRuns, BallastPublishRunLines and BallastExecutionExceptions data entities.
| Member | Type | List | Description |
|---|---|---|---|
Success | boolean | No | Gets or sets whether the operation completed. False means Message and ErrorCode say why. |
Message | str | No | Gets or sets the outcome in words, including any validation messages the operation raised. |
ErrorCode | str | No | Gets or sets a machine-readable failure class: ValidationFailed, NotFound, LicenseNotValid, PublishNotComplete or Failed. Empty on success. |
RequestId | Guid | No | Gets or sets the caller's request identifier; echoed on the response. |
CorrelationId | Guid | No | Gets or sets the identifier that ties this call to others in the same test or integration run. |
PublishRunRecId | RefRecId | No | Gets or sets the publish run the call created; zero if none was created. |
Outcome | MGCBallastPublishRunOutcome | No | Gets or sets the publish run outcome. |
LineCount | int | No | Gets or sets the number of run lines recorded. |
FailedLineCount | int | No | Gets or sets the number of run lines that failed. |
ExceptionCount | int | No | Gets or sets the number of execution exceptions recorded. |
BatchJobId | RefRecId | No | Gets or sets the batch job a schedulePublish call created; zero for publishNow. |
ScheduledDateTime | utcdatetime | No | Gets or sets the batch job's scheduled start date/time (UTC), as the batch framework stored it. |