API

GithubRunnerEgress

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}/github_runner_egress create Current tenant-scoped routing status
GET /api/v1/organizations/{organization_id}/github_runner_egress load Current tenant-scoped routing status

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:

github_runner_egress, err := client.GithubRunnerEgress(nil).Load(map[string]any{"organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(github_runner_egress)
created, err := client.GithubRunnerEgress(nil).Create(map[string]any{"organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

Construct client as shown in the Lua setup, then call the operations:

local github_runner_egress, err = client:GithubRunnerEgress():load({ organization_id = "example" })
local created, err = client:GithubRunnerEgress():create({ organization_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$github_runner_egress = $client->GithubRunnerEgress()->load(["organization_id" => "example"]);
$created = $client->GithubRunnerEgress()->create(["organization_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

github_runner_egress = client.GithubRunnerEgress().load({"organization_id": "example"})
created = client.GithubRunnerEgress().create({ "organization_id": "example" })

Ruby

Construct client as shown in the Ruby setup, then call the operations:

github_runner_egress = client.GithubRunnerEgress.load({ "organization_id" => "example" })
created = client.GithubRunnerEgress.create({ "organization_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const github_runner_egress = await client.GithubRunnerEgress().load({ organization_id: "example" })
const created = await client.GithubRunnerEgress().create({ organization_id: "example" })

Fields

Field Type Required Description
can_request boolean Yes Can Request
cidr one,string,null Yes Cidr
ipv4 one,string,null Yes Ipv4
requested_at_label one,string,null Yes Requested At Label
status string Yes Status

create

POST /api/v1/organizations/{organization_id}/github_runner_egress

Operation ID: post_api_v1_organizations_organization_id_github_runner_egress.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes

Request body

application/json

The request body is object.

Responses

200: Current tenant-scoped routing status

application/json

Property Type Required Description
github_runner_egress object Yes
github_runner_egress.can_request boolean Yes
github_runner_egress.cidr string Yes
github_runner_egress.ipv4 string Yes
github_runner_egress.requested_at_label string Yes
github_runner_egress.status enum: not_requested, pending, active, unavailable Yes
401: Unauthorized
403: Organization owner or admin required
404: Organization not found
422: Unprocessable entity
502: Bad gateway

load

GET /api/v1/organizations/{organization_id}/github_runner_egress

Operation ID: get_api_v1_organizations_organization_id_github_runner_egress.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes

Responses

200: Current tenant-scoped routing status

application/json

Property Type Required Description
github_runner_egress object Yes
github_runner_egress.can_request boolean Yes
github_runner_egress.cidr string Yes
github_runner_egress.ipv4 string Yes
github_runner_egress.requested_at_label string Yes
github_runner_egress.status enum: not_requested, pending, active, unavailable Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway