CiNode
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/ci/nodes/{id}/cordon |
create |
CI runner |
POST |
/api/v1/ci/nodes/{id}/drain |
create |
CI runner |
POST |
/api/v1/ci/nodes/{id}/heartbeat |
create |
Success |
POST |
/api/v1/ci/nodes/{id}/uncordon |
create |
CI runner |
POST |
/api/v1/ci/nodes/enroll |
create |
Success |
GET |
/api/v1/ci/nodes/{id} |
load |
CI runner |
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:
ci_node, err := client.CiNode(nil).Load(map[string]any{"id": "example_id"}, nil)
if err != nil {
panic(err)
}
fmt.Println(ci_node)
Lua
Construct client as shown in the Lua setup, then call the operations:
local ci_node, err = client:CiNode():load({ id = "example_id" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$ci_node = $client->CiNode()->load(["id" => "example_id"]);
Python
Construct client as shown in the Python setup, then call the operations:
ci_node = client.CiNode().load({"id": "example_id"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
ci_node = client.CiNode.load({ "id" => "example_id" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const ci_node = await client.CiNode().load({ id: "example_id" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
architecture |
one,string,null |
Yes | Architecture |
bazel_enabled |
boolean |
Yes | Bazel Enabled |
bazel_properties_json |
one,string,null |
Yes | Bazel Properties Json |
ci_runner_pool_id |
string |
Yes | Ci Runner Pool Id |
cordoned_at |
one,string,null |
Yes | Cordoned At |
cordoned_at_label |
one,string,null |
Yes | Cordoned At Label |
created_at |
string |
Yes | Created At |
created_at_label |
one,string,null |
Yes | Created At Label |
health_state |
string |
Yes | Health State |
heartbeat_age_seconds |
one,integer,null |
Yes | Heartbeat Age Seconds |
id |
string |
Yes | Id |
kind |
string |
Yes | Kind |
labels_csv |
one,string,null |
Yes | Labels Csv |
last_seen_at |
one,string,null |
Yes | Last Seen At |
last_seen_at_label |
one,string,null |
Yes | Last Seen At Label |
name |
string |
Yes | Name |
network_peer_id |
one,string,null |
Yes | Network Peer Id |
node_capabilities_csv |
one,string,null |
Yes | Node Capabilities Csv |
node_certificate_expires_at |
one,string,null |
Yes | Node Certificate Expires At |
node_certificate_expires_at_label |
one,string,null |
Yes | Node Certificate Expires At Label |
node_certificate_fingerprint_sha256 |
one,string,null |
Yes | Node Certificate Fingerprint Sha256 |
node_certificate_serial |
one,string,null |
Yes | Node Certificate Serial |
offline_at |
one,string,null |
Yes | Offline At |
offline_at_label |
one,string,null |
Yes | Offline At Label |
online_at |
one,string,null |
Yes | Online At |
online_at_label |
one,string,null |
Yes | Online At Label |
organization_id |
string |
Yes | Organization Id |
os |
one,string,null |
Yes | Os |
revoked_at |
one,string,null |
Yes | Revoked At |
revoked_at_label |
one,string,null |
Yes | Revoked At Label |
schedulable |
boolean |
Yes | Schedulable |
slug |
string |
Yes | Slug |
status |
string |
Yes | Status |
updated_at |
string |
Yes | Updated At |
updated_at_label |
one,string,null |
Yes | Updated At Label |
version |
one,string,null |
Yes | Version |
create
POST /api/v1/ci/nodes/{id}/cordon
Operation ID: cordon_api_v1_node.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: CI runner
application/json
| Property | Type | Required | Description |
|---|---|---|---|
runner |
object |
Yes | |
runner.architecture |
string |
Yes | |
runner.bazel_enabled |
boolean |
Yes | |
runner.bazel_properties_json |
string |
Yes | |
runner.ci_runner_pool_id |
string |
Yes | |
runner.cordoned_at |
string (date-time) |
Yes | |
runner.cordoned_at_label |
string |
Yes | |
runner.created_at |
string (date-time) |
Yes | |
runner.created_at_label |
string |
Yes | |
runner.health_state |
string |
Yes | |
runner.heartbeat_age_seconds |
integer |
Yes | |
runner.id |
string |
Yes | |
runner.kind |
string |
Yes | |
runner.labels_csv |
string |
Yes | |
runner.last_seen_at |
string (date-time) |
Yes | |
runner.last_seen_at_label |
string |
Yes | |
runner.name |
string |
Yes | |
runner.network_peer_id |
string |
Yes | |
runner.node_capabilities_csv |
string |
Yes | |
runner.node_certificate_expires_at |
string (date-time) |
Yes | |
runner.node_certificate_expires_at_label |
string |
Yes | |
runner.node_certificate_fingerprint_sha256 |
string |
Yes | |
runner.node_certificate_serial |
string |
Yes | |
runner.offline_at |
string (date-time) |
Yes | |
runner.offline_at_label |
string |
Yes | |
runner.online_at |
string (date-time) |
Yes | |
runner.online_at_label |
string |
Yes | |
runner.organization_id |
string |
Yes | |
runner.os |
string |
Yes | |
runner.revoked_at |
string (date-time) |
Yes | |
runner.revoked_at_label |
string |
Yes | |
runner.schedulable |
boolean |
Yes | |
runner.slug |
string |
Yes | |
runner.status |
string |
Yes | |
runner.updated_at |
string (date-time) |
Yes | |
runner.updated_at_label |
string |
Yes | |
runner.version |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/ci/nodes/{id}/drain
Operation ID: drain_api_v1_node.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: CI runner
application/json
| Property | Type | Required | Description |
|---|---|---|---|
runner |
object |
Yes | |
runner.architecture |
string |
Yes | |
runner.bazel_enabled |
boolean |
Yes | |
runner.bazel_properties_json |
string |
Yes | |
runner.ci_runner_pool_id |
string |
Yes | |
runner.cordoned_at |
string (date-time) |
Yes | |
runner.cordoned_at_label |
string |
Yes | |
runner.created_at |
string (date-time) |
Yes | |
runner.created_at_label |
string |
Yes | |
runner.health_state |
string |
Yes | |
runner.heartbeat_age_seconds |
integer |
Yes | |
runner.id |
string |
Yes | |
runner.kind |
string |
Yes | |
runner.labels_csv |
string |
Yes | |
runner.last_seen_at |
string (date-time) |
Yes | |
runner.last_seen_at_label |
string |
Yes | |
runner.name |
string |
Yes | |
runner.network_peer_id |
string |
Yes | |
runner.node_capabilities_csv |
string |
Yes | |
runner.node_certificate_expires_at |
string (date-time) |
Yes | |
runner.node_certificate_expires_at_label |
string |
Yes | |
runner.node_certificate_fingerprint_sha256 |
string |
Yes | |
runner.node_certificate_serial |
string |
Yes | |
runner.offline_at |
string (date-time) |
Yes | |
runner.offline_at_label |
string |
Yes | |
runner.online_at |
string (date-time) |
Yes | |
runner.online_at_label |
string |
Yes | |
runner.organization_id |
string |
Yes | |
runner.os |
string |
Yes | |
runner.revoked_at |
string (date-time) |
Yes | |
runner.revoked_at_label |
string |
Yes | |
runner.schedulable |
boolean |
Yes | |
runner.slug |
string |
Yes | |
runner.status |
string |
Yes | |
runner.updated_at |
string (date-time) |
Yes | |
runner.updated_at_label |
string |
Yes | |
runner.version |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/ci/nodes/{id}/heartbeat
Operation ID: heartbeat_api_v1_node.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/ci/nodes/{id}/uncordon
Operation ID: uncordon_api_v1_node.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: CI runner
application/json
| Property | Type | Required | Description |
|---|---|---|---|
runner |
object |
Yes | |
runner.architecture |
string |
Yes | |
runner.bazel_enabled |
boolean |
Yes | |
runner.bazel_properties_json |
string |
Yes | |
runner.ci_runner_pool_id |
string |
Yes | |
runner.cordoned_at |
string (date-time) |
Yes | |
runner.cordoned_at_label |
string |
Yes | |
runner.created_at |
string (date-time) |
Yes | |
runner.created_at_label |
string |
Yes | |
runner.health_state |
string |
Yes | |
runner.heartbeat_age_seconds |
integer |
Yes | |
runner.id |
string |
Yes | |
runner.kind |
string |
Yes | |
runner.labels_csv |
string |
Yes | |
runner.last_seen_at |
string (date-time) |
Yes | |
runner.last_seen_at_label |
string |
Yes | |
runner.name |
string |
Yes | |
runner.network_peer_id |
string |
Yes | |
runner.node_capabilities_csv |
string |
Yes | |
runner.node_certificate_expires_at |
string (date-time) |
Yes | |
runner.node_certificate_expires_at_label |
string |
Yes | |
runner.node_certificate_fingerprint_sha256 |
string |
Yes | |
runner.node_certificate_serial |
string |
Yes | |
runner.offline_at |
string (date-time) |
Yes | |
runner.offline_at_label |
string |
Yes | |
runner.online_at |
string (date-time) |
Yes | |
runner.online_at_label |
string |
Yes | |
runner.organization_id |
string |
Yes | |
runner.os |
string |
Yes | |
runner.revoked_at |
string (date-time) |
Yes | |
runner.revoked_at_label |
string |
Yes | |
runner.schedulable |
boolean |
Yes | |
runner.slug |
string |
Yes | |
runner.status |
string |
Yes | |
runner.updated_at |
string (date-time) |
Yes | |
runner.updated_at_label |
string |
Yes | |
runner.version |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/ci/nodes/enroll
Operation ID: api_v1_nodes_enroll.
Authentication: bearer token (bearerAuth).
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
load
GET /api/v1/ci/nodes/{id}
Operation ID: api_v1_node.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path |
string |
Yes |
Responses
200: CI runner
application/json
| Property | Type | Required | Description |
|---|---|---|---|
runner |
object |
Yes | |
runner.architecture |
string |
Yes | |
runner.bazel_enabled |
boolean |
Yes | |
runner.bazel_properties_json |
string |
Yes | |
runner.ci_runner_pool_id |
string |
Yes | |
runner.cordoned_at |
string (date-time) |
Yes | |
runner.cordoned_at_label |
string |
Yes | |
runner.created_at |
string (date-time) |
Yes | |
runner.created_at_label |
string |
Yes | |
runner.health_state |
string |
Yes | |
runner.heartbeat_age_seconds |
integer |
Yes | |
runner.id |
string |
Yes | |
runner.kind |
string |
Yes | |
runner.labels_csv |
string |
Yes | |
runner.last_seen_at |
string (date-time) |
Yes | |
runner.last_seen_at_label |
string |
Yes | |
runner.name |
string |
Yes | |
runner.network_peer_id |
string |
Yes | |
runner.node_capabilities_csv |
string |
Yes | |
runner.node_certificate_expires_at |
string (date-time) |
Yes | |
runner.node_certificate_expires_at_label |
string |
Yes | |
runner.node_certificate_fingerprint_sha256 |
string |
Yes | |
runner.node_certificate_serial |
string |
Yes | |
runner.offline_at |
string (date-time) |
Yes | |
runner.offline_at_label |
string |
Yes | |
runner.online_at |
string (date-time) |
Yes | |
runner.online_at_label |
string |
Yes | |
runner.organization_id |
string |
Yes | |
runner.os |
string |
Yes | |
runner.revoked_at |
string (date-time) |
Yes | |
runner.revoked_at_label |
string |
Yes | |
runner.schedulable |
boolean |
Yes | |
runner.slug |
string |
Yes | |
runner.status |
string |
Yes | |
runner.updated_at |
string (date-time) |
Yes | |
runner.updated_at_label |
string |
Yes | |
runner.version |
string |
Yes |