create-archive
/execution/aidbox.archive/create-archive
is designed to create and start archiving task. It returns reference to the created archive task.
create-archive properties:
Properties | Required | Description |
---|---|---|
targetResourceType | Name of the resource to be archived. | |
history | Archives only history records if true. Archives only last records if false. False by default. | |
criteriaPaths | Array of paths to define period/retentionPeriod properties. Use dots to separate nested properties. For example: | |
period/retentionPeriod | Use period to specify period for which resources should be archived. For example:
You may also use retentionPeriod instead to specify period of time for which the resources should be retained. Available units: "day", "week", "month", "year". For example:
| |
storageBackend | Use this property to specify type of your storage. Available types: "gcp", "aws". | |
serviceAccount | Reference to GcpServiceAccount or AwsAccount resource in your Aidbox database. Make sure that you already create one. For example: | |
bucket | Name of the bucket where the data will be uploaded. | |
pruneArchivedData | Delete archived rows if true. False by default. |
To fetch status of the task make /execution/aidbox.archive/create-archive/[task_id]
request with id from create-archive response:
If task has been executed successfully you will receive archiveId
. You should use this property as parameter for restore-archive, delete-archive and prune-archived-data tasks and to get archive summary.
Get archive summary
Last updated