NetworkConnection
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/network_connections |
create |
Success |
PATCH |
/api/v1/organizations/{organization_id}/verify/network_connections/{id} |
patch |
Private network connection metadata without its secret |
PUT |
/api/v1/organizations/{organization_id}/verify/network_connections/{id} |
update |
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:
created, err := client.NetworkConnection(nil).Create(map[string]any{"organization_id": "example", "name": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
updated, err := client.NetworkConnection(nil).Update(map[string]any{"organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(updated)
patched, err := client.NetworkConnection(nil).Patch(map[string]any{"organization_id": "example", "aws_client_vpn_profile": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(patched)
Lua
Construct client as shown in the Lua setup, then call the operations:
local created, err = client:NetworkConnection():create({ organization_id = "example", name = "example" })
local updated, err = client:NetworkConnection():update({ organization_id = "example" })
local patched, err = client:NetworkConnection():patch({ organization_id = "example", aws_client_vpn_profile = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$created = $client->NetworkConnection()->create(["organization_id" => "example", "name" => "example"]);
$updated = $client->NetworkConnection()->update(["organization_id" => "example"]);
$patched = $client->NetworkConnection()->patch(["organization_id" => "example", "aws_client_vpn_profile" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
created = client.NetworkConnection().create({ "organization_id": "example", "name": "example" })
updated = client.NetworkConnection().update({"organization_id": "example"})
patched = client.NetworkConnection().patch({"organization_id": "example", "aws_client_vpn_profile": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
created = client.NetworkConnection.create({ "organization_id" => "example", "name" => "example" })
updated = client.NetworkConnection.update({ "organization_id" => "example" })
patched = client.NetworkConnection.patch({ "organization_id" => "example", "aws_client_vpn_profile" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const created = await client.NetworkConnection().create({ organization_id: "example", name: "example" })
const updated = await client.NetworkConnection().update({ organization_id: "example" })
const patched = await client.NetworkConnection().patch({ organization_id: "example", aws_client_vpn_profile: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
aws_client_vpn_profile |
string |
No | Aws Client Vpn Profile |
created_at |
string |
Yes | Created At |
device_tag |
string |
No | Device Tag |
id |
string |
Yes | Id |
name |
string |
Yes | Name |
oauth_client_id |
string |
No | Oauth Client Id |
oauth_client_secret |
string |
No | Oauth Client Secret |
provider |
string |
No | Provider |
status |
string |
No | Status |
updated_at |
string |
Yes | Updated At |
create
POST /api/v1/organizations/{organization_id}/verify/network_connections
Operation ID: api_v1_network_connections.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes |
Request body
application/json
The request body is object and any.
Responses
200: Success
application/json
The response is object.
201: Private network connection saved
application/json
| Property | Type | Required | Description |
|---|---|---|---|
created_at |
string (date-time) |
Yes | |
device_tag |
string |
Yes | |
id |
string |
Yes | |
name |
string |
Yes | |
oauth_client_id |
string |
Yes | |
provider |
enum: tailscale, aws_client_vpn |
Yes | |
status |
enum: active, disabled |
Yes | |
updated_at |
string (date-time) |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
patch
PATCH /api/v1/organizations/{organization_id}/verify/network_connections/{id}
Operation ID: api_v1_network_connection.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
aws_client_vpn_profile |
string |
No | |
device_tag |
string |
No | |
name |
string |
No | |
oauth_client_id |
string |
No | |
oauth_client_secret |
string |
No | |
provider |
enum: tailscale, aws_client_vpn |
No | |
status |
enum: active, disabled |
No |
Responses
200: Private network connection metadata without its secret
application/json
| Property | Type | Required | Description |
|---|---|---|---|
created_at |
string (date-time) |
Yes | |
device_tag |
string |
Yes | |
id |
string |
Yes | |
name |
string |
Yes | |
oauth_client_id |
string |
Yes | |
provider |
enum: tailscale, aws_client_vpn |
Yes | |
status |
enum: active, disabled |
Yes | |
updated_at |
string (date-time) |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
update
PUT /api/v1/organizations/{organization_id}/verify/network_connections/{id}
Operation ID: put_api_v1_organizations_organization_id_verify_network_connections_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.