MGCBallastMaintenanceService.purgeOrphanSnapshots
Deletes every version snapshot row that belongs to no version, as the purge job does without its prompt, and records one RetentionCleaned audit event per table purged, carrying the request's CorrelationId.
- HTTP method:
POST - Route:
/api/services/MGCBallastServiceGroup/MGCBallastMaintenanceService/purgeOrphanSnapshots - Service class:
MGCBallastMaintenanceService
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCBallastMaintenanceRequestContract | No | RequestId and CorrelationId. |
Returns
MGCBallastMaintenanceResponseContract
Found, Purged and Rows.
Security
- Requires privilege
MGCBallastIntegrationServiceMaintain
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.
MGCBallastMaintenanceRequestContract
Request to a Ballast maintenance operation. The operations take no parameters beyond the identifiers that tie the call - and the audit events it writes - to a test or integration run.
| 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 run; the audit events the operation writes carry it. |
MGCBallastMaintenanceResponseContract
Response from a Ballast maintenance operation: what it found and what it changed. Each change is also an audit event (SnapshotRepaired, RetentionCleaned) carrying the request's CorrelationId, readable through the BallastAuditEvents data entity.
| 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 messages the operation raised. |
ErrorCode | str | No | Gets or sets a machine-readable failure class: ValidationFailed or Failed. Empty on success. |
RequestId | Guid | No | Gets or sets the caller's request identifier, echoed. |
CorrelationId | Guid | No | Gets or sets the caller's correlation identifier, echoed. |
Found | int | No | Gets or sets how many blank version snapshots the scan found. |
Repaired | int | No | Gets or sets how many blank snapshots were refilled from the live parameters. |
Unchanged | int | No | Gets or sets how many blank snapshots were left as they were, because the live table holds no row or only default values. |
EventCount | int64 | No | Gets or sets how many BatchGlobal direct-change audit events exist (count) or were deleted (purge). |
Purged | int | No | Gets or sets how many snapshot rows without a version were deleted. |
Rows | List of str | Yes | Gets or sets the rows found (blank snapshots, or snapshot rows without a version), one per entry: bundle|version RecId|value table|company (blank for a Global bundle). |