Endpoint

/v1/files/{ref}/streams/{stream_id}/punch-hole

POST

Create a hole in a region of a stream. Destroys all data within the hole so that subsequent reads will return zeroes. Returns the post-operation attributes of the stream.

Parameters

Name Description Required
ref The file ID or the absolute path to the file system object. File IDs can be found in the id field of responses of APIs that return file attributes. You must URL-encode the paths. The APIs & Tools page in the Qumulo Core Web UI URL-encodes the paths. Yes
stream_id Stream ID (uint64) to be modified Yes
If-Match ETag for expected version No

Request

Schema

{
  "description": "api_files_punch_hole",
  "type": "object",
  "properties": {
    "offset": {
      "description": "Offset in bytes specifying the start of the hole to create.",
      "type": "string"
    },
    "size": {
      "description": "Size in bytes of the hole to create.",
      "type": "string"
    }
  }
}

Response

Codes

Code Description
200 Return value on success

Schema

{
  "description": "api_named_stream_attributes",
  "type": "object",
  "properties": {
    "name": {
      "description": "name",
      "type": "string"
    },
    "id": {
      "description": "id",
      "type": "string"
    },
    "size": {
      "description": "size",
      "type": "string"
    },
    "datablocks": {
      "description": "datablocks",
      "type": "string"
    },
    "data_revision": {
      "description": "data_revision",
      "type": "string"
    }
  }
}