Full name: projects.locations.datasets.fhirStores.rollback
Rolls back resources from the FHIR 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 RollbackFhirResourcesResponse
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/*/fhirStores/*}:rollback
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The name of the FHIR store to rollback, in the format of "projects/{projectId}/locations/{locationId}/datasets/{datasetId} /fhirStores/{fhirStoreId}". Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "type": [ string ], "rollbackTime": string, "filteringFields": { object( |
Fields | |
---|---|
type[] |
Optional. If specified, revert only resources of these types |
rollback |
Required. Time point to rollback to. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
filtering |
Optional. Tag represents fields that HDE needs to identify resources that will be reverted. Parameters for filtering resources |
force |
Optional. When enabled, changes will be reverted without explicit confirmation |
change |
Optional. CREATE/UPDATE/DELETE/ALL for reverting all txns of a certain type. |
result |
Required. Bucket to deposit result |
exclude |
Optional. Specifies whether to exclude earlier rollbacks. |
input |
Optional. Cloud Storage object containing list of {resourceType}/{resourceId} lines, identifying resources to be reverted |
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.
RollbackFhirResourceFilteringFields
Filters to select resources that need to be rolled back.
JSON representation |
---|
{ "operationIds": [ string ], "metadataFilter": string } |
Fields | |
---|---|
operation |
Optional. A list of operation IDs to roll back. Only changes made by these operations will be rolled back. |
metadata |
Optional. A filter expression that matches data in the Supports the following custom functions:
|
ChangeType
Type of transaction to execute during FHIR resource 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 |