An OPA Gateway controls access to servers in your Project.
Lists all Gateway Setup Tokens for your Team
This endpoint requires the following role: resource_admin
.
OK
{- "list": [
- {
- "id": "b09ba4db-d5b4-4ec5-90da-188e1d13d467",
- "registration_type": "gateway-agent",
- "description": "Gateway Token 1",
- "details": {
- "labels": {
- "region": "NA-West"
}
}, - "created_at": "2023-08-25T00:00:00Z",
- "token": "sft-gw.356c346c-256e-49d5-8db4-426426e066e4.eyJhdCI6ImZ5X2lZMnFmVk1TcHJQcDlUSEh0MS1SR240Rl9OOXZsSXEwUWhoNlNnSnciLCJhcyI6Imh0dHBzO0123GFtLXByb2R1Y3QtdGMxLnBhbS50cmV4Y2xvdWQuY29tposeL2FzL2FnZW50IiwicnMiOiJodHRwczovL3BhbS1wcm9kdWN0LXRjMS5wYW0udHJleGNsb3VkLmNvabc2MSJ9"
}, - {
- "id": "0bcea2c6-8fd7-44f8-8125-eba8418a18d8",
- "registration_type": "gateway-agent",
- "description": "Gateway Token 2",
- "details": {
- "labels": {
- "department": "eng"
}
}, - "created_at": "2023-08-25T00:00:00Z",
- "token": "sft-gw.342c346c-256e-49d5-8db4-426426e066e4.eyJhdCI6ImZ5X2lZMnFmVk1TcHJQcDlUSEh0MS1SR240ae9OOXZsSXEwUWhoNlNnSnciLCJhcyI6Imh0dHBzO0123GFtLXByb2R1Y3QtdGMxLnBhbS50cmV4Y2xvdWQuY29tposeL2FzL2FnZW50IiwicnMiOiJodHRwczovL3BhbS1wcm9kdWN0LXRjMS5wYW0udHJleGNsb3VkLmNvabc2MSyq"
}
]
}
Creates a Gateway Setup Token for your Team
This endpoint requires the following role: resource_admin
.
Created
{- "labels": {
- "env": "dev",
- "region": "us-west-2"
}
}
{- "created_at": "2023-08-25T12:00:00.000000Z",
- "description": "Gateway Token 1",
- "details": {
- "labels": {
- "property1": "string",
- "property2": "string"
}
}, - "id": "b09ba4db-d5b4-4ec5-90da-188e1d13d467",
- "name": "ProductionGateway",
- "registration_type": "gateway-agent",
- "token": "sft-gw.342c346c-256e-49d5-8db4-426426eqe26e4.eyJhdCI6ImZ5X2lZMnFmVk1TcHJQcDlUSEh0MS1SR240ae9OOXZsSXEwUWhoNlNnSnciLCJhcyI6Imh0dHBzO0123GFtLXByb2R1Y3QtdGMxLnBhbS50cmV4Y2xvdWQuY29tposeL2FzL2FnZW50IiwicnMiOiJodHRwczovL3BhbS1wcm9kdWN0LXRjMS5wYW0udHJleGNsb3VkLmNvabc2MSyq"
}
Retrieves the specified Gateway Setup Token
This endpoint requires the following role: resource_admin
.
OK
{- "created_at": "2023-08-25T12:00:00.000000Z",
- "description": "Gateway Token 1",
- "details": {
- "labels": {
- "property1": "string",
- "property2": "string"
}
}, - "id": "b09ba4db-d5b4-4ec5-90da-188e1d13d467",
- "name": "ProductionGateway",
- "registration_type": "gateway-agent",
- "token": "sft-gw.342c346c-256e-49d5-8db4-426426eqe26e4.eyJhdCI6ImZ5X2lZMnFmVk1TcHJQcDlUSEh0MS1SR240ae9OOXZsSXEwUWhoNlNnSnciLCJhcyI6Imh0dHBzO0123GFtLXByb2R1Y3QtdGMxLnBhbS50cmV4Y2xvdWQuY29tposeL2FzL2FnZW50IiwicnMiOiJodHRwczovL3BhbS1wcm9kdWN0LXRjMS5wYW0udHJleGNsb3VkLmNvabc2MSyq"
}
Deletes the specified Gateway Setup Token
This endpoint requires the following role: resource_admin
.
No Content
Retrieves the specified Gateway Setup Token
This endpoint requires the following role: resource_admin
.
OK
{- "created_at": "2023-08-25T12:00:00.000000Z",
- "description": "Gateway Token 1",
- "details": {
- "labels": {
- "property1": "string",
- "property2": "string"
}
}, - "id": "b09ba4db-d5b4-4ec5-90da-188e1d13d467",
- "name": "ProductionGateway",
- "registration_type": "gateway-agent",
- "token": "sft-gw.342c346c-256e-49d5-8db4-426426eqe26e4.eyJhdCI6ImZ5X2lZMnFmVk1TcHJQcDlUSEh0MS1SR240ae9OOXZsSXEwUWhoNlNnSnciLCJhcyI6Imh0dHBzO0123GFtLXByb2R1Y3QtdGMxLnBhbS50cmV4Y2xvdWQuY29tposeL2FzL2FnZW50IiwicnMiOiJodHRwczovL3BhbS1wcm9kdWN0LXRjMS5wYW0udHJleGNsb3VkLmNvabc2MSyq"
}
Lists all Gateways for your Team
This endpoint requires one of the following roles: resource_admin
, delegated_resource_admin
.
OK
{- "list": [
- {
- "id": "napa5791-fc26-4386-93f4-eca6a157ew15",
- "name"": "Production gateway",
- "access_address": "192.168.190.144:7234",
- "default_address": "192.168.19.32",
- "description": "Gateway used for prod env",
- "cloud_provider": null,
- "refuse_connections": false,
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "last_seen": "2023-08-25T13:00:00.000000Z"
}, - {
- "id": "7cdac13d-a3fe-43e8-9a41-13b15df97fc7",
- "name": "Dev Gateway",
- "access_address": "192.168.190.145:7234",
- "default_address": "192.168.19.33",
- "description": "Gateway used for dev env",
- "cloud_provider": null,
- "refuse_connections": false,
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "last_seen": "2023-08-25T14:35:00.000000Z"
}
]
}
Retrieves the properties of a specified Gateway
This endpoint requires one of the following roles: resource_admin
, delegated_resource_admin
.
OK
{- "access_address": "192.168.190.144:7234",
- "cloud_provider": "aws",
- "default_address": "192.168.19.32",
- "description": "string",
- "id": "d4f40b71-9474-41c5-94ff-3196a4fc2d03",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "last_seen": "2023-08-25T13:00:00.000000Z",
- "name": "ProductionGateway",
- "refuse_connections": false
}
Updates a specified Gateway
This endpoint requires the following role: resource_admin
.
No Content
{- "access_address": "192.168.190.144:7234",
- "default_address": "192.168.19.32",
- "description": "string",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "name": "ProductionGateway"
}
Retrieve a status report for the specified Gateway
This endpoint requires one of the following roles: resource_admin
, delegated_resource_admin
.
OK
{- "active_connections": 2,
- "gateway_id": "3b0fdbdd-1282-440d-a973-ddc409d6d743",
- "status": "ONLINE",
- "total_storage_bytes": 4096,
- "updated_at": "0001-01-01T00:00:00Z",
- "used_storage_bytes": 2048
}