Stay organized with collections
Save and categorize content based on your preferences.
Full name: projects.locations.datasets.hl7V2Stores.rollback
Rolls back messages from the HL7v2 store to the specified time.
This method returns an Operation that can be used to track the status of the rollback by calling operations.get.
Immediate fatal errors appear in the error field, errors are also logged to Cloud Logging (see Viewing error logs in Cloud Logging). Otherwise, when the operation finishes, a detailed response of type RollbackHl7V2MessagesResponse is returned in the response field. The metadata field type for this operation is OperationMetadata.
HTTP request
POST https://healthcare.googleapis.com/v1beta1/{name=projects/*/locations/*/datasets/*/hl7V2Stores/*}:rollback
Required. The name of the HL7v2 store to rollback, in the format of "projects/{projectId}/locations/{locationId}/datasets/{datasetId} /hl7V2Stores/{hl7v2_store_id}".
Request body
The request body contains data with the following structure:
Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".
force
boolean
Optional. When enabled, changes will be reverted without explicit confirmation.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[[["\u003cp\u003eThis method rolls back messages in an HL7v2 store to a specified point in time, reverting changes to the state of the store.\u003c/p\u003e\n"],["\u003cp\u003eThe rollback operation is tracked via an \u003ccode\u003eOperation\u003c/code\u003e resource, allowing for monitoring of its status and retrieval of detailed results upon completion.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying a \u003ccode\u003erollbackTime\u003c/code\u003e, a \u003ccode\u003eresultGcsBucket\u003c/code\u003e, with the ability to filter the rollbacks by using optional parameters such as \u003ccode\u003eforce\u003c/code\u003e, \u003ccode\u003echangeType\u003c/code\u003e, \u003ccode\u003einputGcsObject\u003c/code\u003e, \u003ccode\u003eexcludeRollbacks\u003c/code\u003e, and \u003ccode\u003efilteringFields\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eChangeType\u003c/code\u003e enum allows for targeting specific transaction types (CREATE, UPDATE, DELETE, or ALL) for rollback.\u003c/p\u003e\n"],["\u003cp\u003eThe rollback operation uses the HTTP \u003ccode\u003ePOST\u003c/code\u003e method with a specific URL format, detailed in \u003ccode\u003egRPC Transcoding\u003c/code\u003e, and requires one of two OAuth scopes for authorization: \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-healthcare\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: hl7V2Stores.rollback\n\n**Full name**: projects.locations.datasets.hl7V2Stores.rollback\n\nRolls back messages from the HL7v2 store to the specified time.\n\nThis method returns an [Operation](/healthcare-api/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation) that can be used to track the status of the rollback by calling `operations.get`.\n\nImmediate fatal errors appear in the [error](/healthcare-api/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation.FIELDS.error) field, errors are also logged to Cloud Logging (see [Viewing error logs in Cloud Logging](https://cloud.google.com/healthcare/docs/how-tos/logging)). Otherwise, when the operation finishes, a detailed response of type `RollbackHl7V2MessagesResponse` is returned in the [response](/healthcare-api/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation.FIELDS.response) field. The [metadata](/healthcare-api/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation.FIELDS.metadata) field type for this operation is [OperationMetadata](/healthcare-api/docs/reference/rest/v1beta1/OperationMetadata).\n\n### HTTP request\n\n`POST https://healthcare.googleapis.com/v1beta1/{name=projects/*/locations/*/datasets/*/hl7V2Stores/*}:rollback`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/healthcare-api/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-healthcare`\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\nChangeType\n----------\n\nType of transaction to execute during HL7v2 message rollback\n\nRollbackHL7MessagesFilteringFields\n----------------------------------\n\nFiltering fields for an HL7v2 rollback. Currently only supports a list of operation ids to roll back."]]