> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# GET /v0/history/bulk/progress

> **Under Development, do not use in production yet** Query whether bulk storage object creation has advanced to a certain record time. Meant for internal use only, as part of the processing pipeline of bulk objects.

**Under Development, do not use in production yet** Query whether bulk storage object creation has advanced to a certain record time. Meant for internal use only, as part of the processing pipeline of bulk objects.

OpenAPI

[Added 0.9.0](#history-added-0-9-0)

[Updated 0.10.0](#history-updated-0-10-0)

```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl --request GET \
  --url 'https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/history/bulk/progress'
```

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
import json
import requests

url = "https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/history/bulk/progress"
response = requests.request("GET", url)

print(response.text)
```

```javascript JavaScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
const response = await fetch('https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/history/bulk/progress', {
  method: 'GET',
});

console.log(await response.text());
```

```php PHP theme={"theme":{"light":"github-light","dark":"github-dark"}}
<?php
$curl = curl_init();

curl_setopt_array($curl, [
    CURLOPT_URL => 'https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/history/bulk/progress',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'GET',
]);

$response = curl_exec($curl);
echo $response;
```

```go Go theme={"theme":{"light":"github-light","dark":"github-dark"}}
package main

import (
  "fmt"
  "io"
  "net/http"
)

func main() {
  req, _ := http.NewRequest("GET", "https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/history/bulk/progress", nil)
  response, _ := http.DefaultClient.Do(req)
  defer response.Body.Close()
  body, _ := io.ReadAll(response.Body)
  fmt.Println(string(body))
}
```

```java Java theme={"theme":{"light":"github-light","dark":"github-dark"}}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

var request = HttpRequest.newBuilder()
    .uri(URI.create("https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/history/bulk/progress"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
var response = HttpClient.newHttpClient().send(
    request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

```ruby Ruby theme={"theme":{"light":"github-light","dark":"github-dark"}}
require 'net/http'
require 'uri'

uri = URI('https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/history/bulk/progress')
request = Net::HTTP::Get.new(uri)
response = Net::HTTP.start(uri.hostname, uri.port) do |http|
  http.request(request)
end
puts response.body
```

```json 200 theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "availability": "available"
}
```

```json 501 theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "error": "<string>"
}
```

## Query parameters

**record\_time** `string` *required*

OpenAPI type: `string (date-time)`.

**bucket** `object` *required*

OpenAPI type: `BulkStorageBucket`.

The bulk storage bucket a progress query refers to: "staging" holds the objects this Scan has written or copied but not yet verified against its peers, "committed" the objects that passed that check.

Allowed values: `staging`, `committed`.

**kind** `object`

OpenAPI type: `BulkObjectKind`.

The kind of bulk storage objects a progress query refers to: "updates" for update segments, "snapshots" for ACS snapshots. Without a kind, the query refers to both.

Allowed values: `updates`, `snapshots`.

## Responses

### 200

ok

application/json

**availability** `BulkObjectsAvailability` *required*

Whether the requested bucket of this Scan holds all bulk storage objects of the requested kind (update segments, ACS snapshots, or both when no kind is given) up to the requested record time. "available": it does. "processing": it does not yet. The record time lies within this Scan's own history, so it produces the objects itself from its own data; they appear once its dump (staging) or its check against the peers (committed) has reached the record time. "backfilling": it does not, and will not produce them itself, because the record time lies before this Scan's own history (it joined after the network started). It copies these objects from its peers instead, and answers "available" once that copy has reached the record time.

Allowed values: `available`, `processing`, `backfilling`.

### 501

not implemented

application/json

**error** `string` *required*

## History

Updated
`0.10.0`

The GET /v0/history/bulk/progress operation changed in this snapshot.

Added
`0.9.0`
