Endpoint
/v1/object-portal/refresh
POST
Updates the bridge's file or directory for one object now, rather than when the bucket's change notification arrives, and works on a bridge with no notification queue. Use it when a file on the bridge doesn't match its object. If the object exists, the refresh creates or updates the file to match it, including its content and metadata. If the object no longer exists, the refresh deletes the file, or removes the directory, along with any parent directories left empty. A file a client changed on the cluster is kept rather than deleted, as long as the bucket still holds the object version the file was read from. A bucket that refuses or fails the read answers HTTP 503 and leaves the file as it is. `mode` controls only metadata: MERGE, the default, keeps attributes changed on the cluster, and OVERWRITE replaces every attribute the object carries, which can't be undone. On a bridge created with `metadata_import` OFF, the refresh updates the file's existence and content but no metadata. Returns HTTP 404 if no bridge serves the bucket. Important
This preview REST API is under development. Its functionality or backwards compatibility can change without notice.
This preview REST API is under development. Its functionality or backwards compatibility can change without notice.
Parameters
This resource has no parameters.Request
Schema
{
"description": "api_bridge_refresh_request",
"type": "object",
"properties": {
"bucket_uri": {
"description": "Bucket URI as it appears in the bridge's configuration",
"type": "string"
},
"key": {
"description": "Object key within the bucket. A directory is named by its marker key, including the trailing delimiter.",
"type": "string"
},
"mode": {
"type": "string",
"enum": [
"MERGE",
"OVERWRITE"
],
"description": "MERGE re-reads the object and applies what changed, leaving alone any attribute changed locally since the last import. OVERWRITE discards local changes to every attribute the object carries, and is destructive: an administrator's ownership, permission, timestamp, and DOS-attribute edits on this file are lost. Attributes the object does not carry are left alone either way. Treated as MERGE when omitted.:\n * `MERGE` - API_BRIDGE_REFRESH_MERGE,\n * `OVERWRITE` - API_BRIDGE_REFRESH_OVERWRITE"
}
}
}Response
Codes
| Code | Description |
|---|---|
| 200 | Return value on success |