BinaryVersion
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/organizations/{organization_id}/verify/binaries/{binary_id}/versions/{id}/cancel |
create |
Safe project-scoped binary response |
POST |
/api/v1/organizations/{organization_id}/verify/binaries/{binary_id}/versions/{id}/retry |
create |
Safe project-scoped binary response |
POST |
/api/v1/organizations/{organization_id}/verify/binaries/{binary_id}/versions |
create |
Safe project-scoped binary response |
GET |
/api/v1/organizations/{organization_id}/verify/binaries/{binary_id}/versions |
list |
Safe project-scoped binary response |
GET |
/api/v1/organizations/{organization_id}/verify/binaries/{binary_id}/versions/{id} |
load |
Safe project-scoped binary response |
DELETE |
/api/v1/organizations/{organization_id}/verify/binaries/{binary_id}/versions/{id} |
remove |
Success |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
binary_versions, err := client.BinaryVersion(nil).List(map[string]any{"binary_id": "example", "organization_id": "example", "project_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(binary_versions)
binary_version, err := client.BinaryVersion(nil).Load(map[string]any{"binary_id": "example", "id": "example_id", "organization_id": "example", "project_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(binary_version)
created, err := client.BinaryVersion(nil).Create(map[string]any{"binary_id": "example", "organization_id": "example", "project_id": "example", "download_url": "example", "idempotency_key": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
removed, err := client.BinaryVersion(nil).Remove(map[string]any{"binary_id": "example", "id": "example_id", "organization_id": "example", "project_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(removed)
Lua
Construct client as shown in the Lua setup, then call the operations:
local binary_versions, err = client:BinaryVersion():list({ binary_id = "example", organization_id = "example", project_id = "example" })
local binary_version, err = client:BinaryVersion():load({ binary_id = "example", id = "example_id", organization_id = "example", project_id = "example" })
local created, err = client:BinaryVersion():create({ binary_id = "example", organization_id = "example", project_id = "example", download_url = "example", idempotency_key = "example" })
local removed, err = client:BinaryVersion():remove({ binary_id = "example", id = "example_id", organization_id = "example", project_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$binary_versions = $client->BinaryVersion()->list(["binary_id" => "example", "organization_id" => "example", "project_id" => "example"]);
$binary_version = $client->BinaryVersion()->load(["binary_id" => "example", "id" => "example_id", "organization_id" => "example", "project_id" => "example"]);
$created = $client->BinaryVersion()->create(["binary_id" => "example", "organization_id" => "example", "project_id" => "example", "download_url" => "example", "idempotency_key" => "example"]);
$client->BinaryVersion()->remove(["binary_id" => "example", "id" => "example_id", "organization_id" => "example", "project_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
binary_versions = client.BinaryVersion().list({"binary_id": "example", "organization_id": "example", "project_id": "example"})
binary_version = client.BinaryVersion().load({"binary_id": "example", "id": "example_id", "organization_id": "example", "project_id": "example"})
created = client.BinaryVersion().create({ "binary_id": "example", "organization_id": "example", "project_id": "example", "download_url": "example", "idempotency_key": "example" })
client.BinaryVersion().remove({"binary_id": "example", "id": "example_id", "organization_id": "example", "project_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
binary_versions = client.BinaryVersion.list({ "binary_id" => "example", "organization_id" => "example", "project_id" => "example" })
binary_version = client.BinaryVersion.load({ "binary_id" => "example", "id" => "example_id", "organization_id" => "example", "project_id" => "example" })
created = client.BinaryVersion.create({ "binary_id" => "example", "organization_id" => "example", "project_id" => "example", "download_url" => "example", "idempotency_key" => "example" })
client.BinaryVersion.remove({ "binary_id" => "example", "id" => "example_id", "organization_id" => "example", "project_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const binary_versions = await client.BinaryVersion().list({ binary_id: "example", organization_id: "example", project_id: "example" })
const binary_version = await client.BinaryVersion().load({ binary_id: "example", id: "example_id", organization_id: "example", project_id: "example" })
const created = await client.BinaryVersion().create({ binary_id: "example", organization_id: "example", project_id: "example", download_url: "example", idempotency_key: "example" })
await client.BinaryVersion().remove({ binary_id: "example", id: "example_id", organization_id: "example", project_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
arch |
any |
No | Arch |
cancelable |
boolean |
Yes | Cancelable |
configuration |
object |
Yes | Configuration |
configuration_digest |
string |
Yes | Configuration Digest |
created_at |
string |
Yes | Created At |
deletable |
boolean |
Yes | Deletable |
download_secret |
string |
No | Download Secret |
download_url |
string |
Yes | Download Url |
environment_uses |
array |
Yes | Environment Uses |
executable |
string |
No | Executable |
format |
any |
No | Format |
id |
string |
Yes | Id |
idempotency_key |
string |
Yes | Idempotency Key |
launch_args |
array |
No | Launch Args |
operation |
object |
Yes | Operation |
package_sha256 |
one,string,null |
Yes | Package Sha256 |
package_size |
one,integer,null |
Yes | Package Size |
permissions |
object |
Yes | Permissions |
platform |
any |
No | Platform |
preparations |
array |
Yes | Preparations |
retryable |
boolean |
Yes | Retryable |
sha256 |
string |
No | Sha256 |
status |
string |
Yes | Status |
version |
object |
Yes | Version |
window_title |
string |
No | Window Title |
create
POST /api/v1/organizations/{organization_id}/verify/binaries/{binary_id}/versions/{id}/cancel
Operation ID: cancel_api_v1_binary_version.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
binary_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
project_id |
query |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Safe project-scoped binary response
application/json
| Property | Type | Required | Description |
|---|---|---|---|
permissions |
object |
Yes | |
permissions.manage |
boolean |
Yes | |
version |
object |
Yes | |
version.cancelable |
boolean |
Yes | |
version.configuration |
object |
Yes | |
version.configuration.arch |
any |
Yes | |
version.configuration.executable |
string |
Yes | |
version.configuration.format |
enum: deb, tar.gz |
Yes | |
version.configuration.launch_args |
array of string |
Yes | |
version.configuration.platform |
any |
Yes | |
version.configuration.window_title |
string |
Yes | |
version.configuration_digest |
string |
Yes | |
version.created_at |
string |
Yes | |
version.deletable |
boolean |
Yes | |
version.environment_uses |
array of object |
Yes | |
version.environment_uses[].id |
string |
Yes | |
version.environment_uses[].name |
string |
Yes | |
version.id |
string |
Yes | |
version.package_sha256 |
string,null |
Yes | |
version.package_size |
integer,null |
Yes | |
version.preparations |
array of object |
Yes | |
version.preparations[].base_image |
string |
Yes | |
version.preparations[].failure_phase |
string,null |
Yes | |
version.preparations[].id |
string |
Yes | |
version.preparations[].image_digest |
string,null |
Yes | |
version.preparations[].image_reference |
string,null |
Yes | |
version.preparations[].installer_version |
string |
Yes | |
version.preparations[].ready_at |
string,null |
Yes | |
version.preparations[].receipt |
object,null |
Yes | |
version.preparations[].safe_error |
string,null |
Yes | |
version.preparations[].started_at |
string,null |
Yes | |
version.preparations[].status |
enum: queued, acquiring, preparing, ready, failed, canceled |
Yes | |
version.retryable |
boolean |
Yes | |
version.status |
enum: queued, acquiring, preparing, ready, failed, canceled |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/organizations/{organization_id}/verify/binaries/{binary_id}/versions/{id}/retry
Operation ID: retry_api_v1_binary_version.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
binary_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
project_id |
query |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Safe project-scoped binary response
application/json
| Property | Type | Required | Description |
|---|---|---|---|
operation |
object |
Yes | |
operation.base_image |
string |
Yes | |
operation.failure_phase |
string,null |
Yes | |
operation.id |
string |
Yes | |
operation.image_digest |
string,null |
Yes | |
operation.image_reference |
string,null |
Yes | |
operation.installer_version |
string |
Yes | |
operation.ready_at |
string,null |
Yes | |
operation.receipt |
object,null |
Yes | |
operation.safe_error |
string,null |
Yes | |
operation.started_at |
string,null |
Yes | |
operation.status |
enum: queued, acquiring, preparing, ready, failed, canceled |
Yes | |
version |
object |
Yes | |
version.cancelable |
boolean |
Yes | |
version.configuration |
object |
Yes | |
version.configuration.arch |
any |
Yes | |
version.configuration.executable |
string |
Yes | |
version.configuration.format |
enum: deb, tar.gz |
Yes | |
version.configuration.launch_args |
array of string |
Yes | |
version.configuration.platform |
any |
Yes | |
version.configuration.window_title |
string |
Yes | |
version.configuration_digest |
string |
Yes | |
version.created_at |
string |
Yes | |
version.deletable |
boolean |
Yes | |
version.environment_uses |
array of object |
Yes | |
version.environment_uses[].id |
string |
Yes | |
version.environment_uses[].name |
string |
Yes | |
version.id |
string |
Yes | |
version.package_sha256 |
string,null |
Yes | |
version.package_size |
integer,null |
Yes | |
version.preparations |
array of object |
Yes | |
version.preparations[].base_image |
string |
Yes | |
version.preparations[].failure_phase |
string,null |
Yes | |
version.preparations[].id |
string |
Yes | |
version.preparations[].image_digest |
string,null |
Yes | |
version.preparations[].image_reference |
string,null |
Yes | |
version.preparations[].installer_version |
string |
Yes | |
version.preparations[].ready_at |
string,null |
Yes | |
version.preparations[].receipt |
object,null |
Yes | |
version.preparations[].safe_error |
string,null |
Yes | |
version.preparations[].started_at |
string,null |
Yes | |
version.preparations[].status |
enum: queued, acquiring, preparing, ready, failed, canceled |
Yes | |
version.retryable |
boolean |
Yes | |
version.status |
enum: queued, acquiring, preparing, ready, failed, canceled |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/organizations/{organization_id}/verify/binaries/{binary_id}/versions
Operation ID: post_api_v1_organizations_organization_id_verify_binaries_binary_id_versions.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
binary_id |
path |
string |
Yes | |
project_id |
query |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
arch |
any |
No | |
download_secret |
string |
No | |
download_url |
string |
Yes | |
executable |
string |
No | |
format |
enum: deb, tar.gz |
No | |
idempotency_key |
string |
Yes | |
launch_args |
array of string |
No | |
platform |
any |
No | |
sha256 |
string |
No | |
window_title |
string |
No |
Responses
200: Safe project-scoped binary response
application/json
| Property | Type | Required | Description |
|---|---|---|---|
operation |
object |
Yes | |
operation.base_image |
string |
Yes | |
operation.failure_phase |
string,null |
Yes | |
operation.id |
string |
Yes | |
operation.image_digest |
string,null |
Yes | |
operation.image_reference |
string,null |
Yes | |
operation.installer_version |
string |
Yes | |
operation.ready_at |
string,null |
Yes | |
operation.receipt |
object,null |
Yes | |
operation.safe_error |
string,null |
Yes | |
operation.started_at |
string,null |
Yes | |
operation.status |
enum: queued, acquiring, preparing, ready, failed, canceled |
Yes | |
version |
object |
Yes | |
version.cancelable |
boolean |
Yes | |
version.configuration |
object |
Yes | |
version.configuration.arch |
any |
Yes | |
version.configuration.executable |
string |
Yes | |
version.configuration.format |
enum: deb, tar.gz |
Yes | |
version.configuration.launch_args |
array of string |
Yes | |
version.configuration.platform |
any |
Yes | |
version.configuration.window_title |
string |
Yes | |
version.configuration_digest |
string |
Yes | |
version.created_at |
string |
Yes | |
version.deletable |
boolean |
Yes | |
version.environment_uses |
array of object |
Yes | |
version.environment_uses[].id |
string |
Yes | |
version.environment_uses[].name |
string |
Yes | |
version.id |
string |
Yes | |
version.package_sha256 |
string,null |
Yes | |
version.package_size |
integer,null |
Yes | |
version.preparations |
array of object |
Yes | |
version.preparations[].base_image |
string |
Yes | |
version.preparations[].failure_phase |
string,null |
Yes | |
version.preparations[].id |
string |
Yes | |
version.preparations[].image_digest |
string,null |
Yes | |
version.preparations[].image_reference |
string,null |
Yes | |
version.preparations[].installer_version |
string |
Yes | |
version.preparations[].ready_at |
string,null |
Yes | |
version.preparations[].receipt |
object,null |
Yes | |
version.preparations[].safe_error |
string,null |
Yes | |
version.preparations[].started_at |
string,null |
Yes | |
version.preparations[].status |
enum: queued, acquiring, preparing, ready, failed, canceled |
Yes | |
version.retryable |
boolean |
Yes | |
version.status |
enum: queued, acquiring, preparing, ready, failed, canceled |
Yes |
201: Safe project-scoped binary response
application/json
| Property | Type | Required | Description |
|---|---|---|---|
operation |
object |
Yes | |
operation.base_image |
string |
Yes | |
operation.failure_phase |
string,null |
Yes | |
operation.id |
string |
Yes | |
operation.image_digest |
string,null |
Yes | |
operation.image_reference |
string,null |
Yes | |
operation.installer_version |
string |
Yes | |
operation.ready_at |
string,null |
Yes | |
operation.receipt |
object,null |
Yes | |
operation.safe_error |
string,null |
Yes | |
operation.started_at |
string,null |
Yes | |
operation.status |
enum: queued, acquiring, preparing, ready, failed, canceled |
Yes | |
version |
object |
Yes | |
version.cancelable |
boolean |
Yes | |
version.configuration |
object |
Yes | |
version.configuration.arch |
any |
Yes | |
version.configuration.executable |
string |
Yes | |
version.configuration.format |
enum: deb, tar.gz |
Yes | |
version.configuration.launch_args |
array of string |
Yes | |
version.configuration.platform |
any |
Yes | |
version.configuration.window_title |
string |
Yes | |
version.configuration_digest |
string |
Yes | |
version.created_at |
string |
Yes | |
version.deletable |
boolean |
Yes | |
version.environment_uses |
array of object |
Yes | |
version.environment_uses[].id |
string |
Yes | |
version.environment_uses[].name |
string |
Yes | |
version.id |
string |
Yes | |
version.package_sha256 |
string,null |
Yes | |
version.package_size |
integer,null |
Yes | |
version.preparations |
array of object |
Yes | |
version.preparations[].base_image |
string |
Yes | |
version.preparations[].failure_phase |
string,null |
Yes | |
version.preparations[].id |
string |
Yes | |
version.preparations[].image_digest |
string,null |
Yes | |
version.preparations[].image_reference |
string,null |
Yes | |
version.preparations[].installer_version |
string |
Yes | |
version.preparations[].ready_at |
string,null |
Yes | |
version.preparations[].receipt |
object,null |
Yes | |
version.preparations[].safe_error |
string,null |
Yes | |
version.preparations[].started_at |
string,null |
Yes | |
version.preparations[].status |
enum: queued, acquiring, preparing, ready, failed, canceled |
Yes | |
version.retryable |
boolean |
Yes | |
version.status |
enum: queued, acquiring, preparing, ready, failed, canceled |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
list
GET /api/v1/organizations/{organization_id}/verify/binaries/{binary_id}/versions
Operation ID: api_v1_binary_versions.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
binary_id |
path |
string |
Yes | |
project_id |
query |
string |
Yes | |
page |
query |
integer |
No |
Responses
200: Safe project-scoped binary response
application/json
| Property | Type | Required | Description |
|---|---|---|---|
pagination |
object |
Yes | |
pagination.count |
integer |
Yes | |
pagination.last |
integer |
Yes | |
pagination.limit |
integer |
Yes | |
pagination.next |
integer |
Yes | |
pagination.page |
integer |
Yes | |
pagination.previous |
integer |
Yes | |
pagination.series |
array of integer or string |
Yes | |
permissions |
object |
Yes | |
permissions.manage |
boolean |
Yes | |
versions |
array of object |
Yes | |
versions[].cancelable |
boolean |
Yes | |
versions[].configuration |
object |
Yes | |
versions[].configuration.arch |
any |
Yes | |
versions[].configuration.executable |
string |
Yes | |
versions[].configuration.format |
enum: deb, tar.gz |
Yes | |
versions[].configuration.launch_args |
array of string |
Yes | |
versions[].configuration.platform |
any |
Yes | |
versions[].configuration.window_title |
string |
Yes | |
versions[].configuration_digest |
string |
Yes | |
versions[].created_at |
string |
Yes | |
versions[].deletable |
boolean |
Yes | |
versions[].environment_uses |
array of object |
Yes | |
versions[].environment_uses[].id |
string |
Yes | |
versions[].environment_uses[].name |
string |
Yes | |
versions[].id |
string |
Yes | |
versions[].package_sha256 |
string,null |
Yes | |
versions[].package_size |
integer,null |
Yes | |
versions[].preparations |
array of object |
Yes | |
versions[].preparations[].base_image |
string |
Yes | |
versions[].preparations[].failure_phase |
string,null |
Yes | |
versions[].preparations[].id |
string |
Yes | |
versions[].preparations[].image_digest |
string,null |
Yes | |
versions[].preparations[].image_reference |
string,null |
Yes | |
versions[].preparations[].installer_version |
string |
Yes | |
versions[].preparations[].ready_at |
string,null |
Yes | |
versions[].preparations[].receipt |
object,null |
Yes | |
versions[].preparations[].safe_error |
string,null |
Yes | |
versions[].preparations[].started_at |
string,null |
Yes | |
versions[].preparations[].status |
enum: queued, acquiring, preparing, ready, failed, canceled |
Yes | |
versions[].retryable |
boolean |
Yes | |
versions[].status |
enum: queued, acquiring, preparing, ready, failed, canceled |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
load
GET /api/v1/organizations/{organization_id}/verify/binaries/{binary_id}/versions/{id}
Operation ID: api_v1_binary_version.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
binary_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
project_id |
query |
string |
Yes |
Responses
200: Safe project-scoped binary response
application/json
| Property | Type | Required | Description |
|---|---|---|---|
permissions |
object |
Yes | |
permissions.manage |
boolean |
Yes | |
version |
object |
Yes | |
version.cancelable |
boolean |
Yes | |
version.configuration |
object |
Yes | |
version.configuration.arch |
any |
Yes | |
version.configuration.executable |
string |
Yes | |
version.configuration.format |
enum: deb, tar.gz |
Yes | |
version.configuration.launch_args |
array of string |
Yes | |
version.configuration.platform |
any |
Yes | |
version.configuration.window_title |
string |
Yes | |
version.configuration_digest |
string |
Yes | |
version.created_at |
string |
Yes | |
version.deletable |
boolean |
Yes | |
version.environment_uses |
array of object |
Yes | |
version.environment_uses[].id |
string |
Yes | |
version.environment_uses[].name |
string |
Yes | |
version.id |
string |
Yes | |
version.package_sha256 |
string,null |
Yes | |
version.package_size |
integer,null |
Yes | |
version.preparations |
array of object |
Yes | |
version.preparations[].base_image |
string |
Yes | |
version.preparations[].failure_phase |
string,null |
Yes | |
version.preparations[].id |
string |
Yes | |
version.preparations[].image_digest |
string,null |
Yes | |
version.preparations[].image_reference |
string,null |
Yes | |
version.preparations[].installer_version |
string |
Yes | |
version.preparations[].ready_at |
string,null |
Yes | |
version.preparations[].receipt |
object,null |
Yes | |
version.preparations[].safe_error |
string,null |
Yes | |
version.preparations[].started_at |
string,null |
Yes | |
version.preparations[].status |
enum: queued, acquiring, preparing, ready, failed, canceled |
Yes | |
version.retryable |
boolean |
Yes | |
version.status |
enum: queued, acquiring, preparing, ready, failed, canceled |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
remove
DELETE /api/v1/organizations/{organization_id}/verify/binaries/{binary_id}/versions/{id}
Operation ID: delete_api_v1_organizations_organization_id_verify_binaries_binary_id_versions_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
binary_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
project_id |
query |
string |
Yes |
Responses
200: Success
application/json
The response is object.