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/v1/{name=projects/*/locations/*/datasets/*/hl7V2Stores/*}:rollback
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
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:
JSON representation |
---|
{ "rollbackTime": string, "force": boolean, "changeType": enum( |
Fields | |
---|---|
rollbackTime |
Required. Times point to rollback to. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
force |
Optional. When enabled, changes will be reverted without explicit confirmation. |
changeType |
Optional. CREATE/UPDATE/DELETE/ALL for reverting all txns of a certain type. |
resultGcsBucket |
Required. Bucket to deposit result |
inputGcsObject |
Optional. Cloud storage object containing list of {resourceId} lines, identifying resources to be reverted |
excludeRollbacks |
Optional. Specifies whether to exclude earlier rollbacks. |
filteringFields |
Optional. Parameters for filtering. |
Response body
If successful, the response body contains an instance of Operation
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-healthcare
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
ChangeType
Type of transaction to execute during HL7v2 message rollback
Enums | |
---|---|
CHANGE_TYPE_UNSPECIFIED |
When unspecified, revert all transactions |
ALL |
All transactions |
CREATE |
Revert only CREATE transactions |
UPDATE |
Revert only Update transactions |
DELETE |
Revert only Delete transactions |
RollbackHL7MessagesFilteringFields
Filtering fields for an HL7v2 rollback. Currently only supports a list of operation ids to roll back.
JSON representation |
---|
{ "operationIds": [ string ] } |
Fields | |
---|---|
operationIds[] |
Optional. A list of operation IDs to roll back. |