List browser preview grants
import requests
url = "https://api.13-215-85-171.sslip.io/v1/machines/{id}/preview-urls"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.13-215-85-171.sslip.io/v1/machines/{id}/preview-urls \
--header 'Authorization: Bearer <token>'{
"items": [
{
"id": "<string>",
"machine_id": "<string>",
"port": 123,
"status": "active",
"auth_mode": "direct",
"bootstrap_transport": "query",
"token_kinds": [
"http_port"
],
"principal_kind": "user",
"issued_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"use_count": 123,
"http_request_count": 123,
"websocket_connection_count": 123,
"bytes_in_count": 123,
"bytes_out_count": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"principal_id": "<string>",
"revoked_at": "2023-11-07T05:31:56Z",
"first_used_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z",
"last_error_code": "<string>",
"last_error_at": "2023-11-07T05:31:56Z",
"disabled_at": "2023-11-07T05:31:56Z"
}
]
}
Machines
List browser preview grants
GET
/
v1
/
machines
/
{id}
/
preview-urls
List browser preview grants
import requests
url = "https://api.13-215-85-171.sslip.io/v1/machines/{id}/preview-urls"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.13-215-85-171.sslip.io/v1/machines/{id}/preview-urls \
--header 'Authorization: Bearer <token>'{
"items": [
{
"id": "<string>",
"machine_id": "<string>",
"port": 123,
"status": "active",
"auth_mode": "direct",
"bootstrap_transport": "query",
"token_kinds": [
"http_port"
],
"principal_kind": "user",
"issued_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"use_count": 123,
"http_request_count": 123,
"websocket_connection_count": 123,
"bytes_in_count": 123,
"bytes_out_count": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"principal_id": "<string>",
"revoked_at": "2023-11-07T05:31:56Z",
"first_used_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z",
"last_error_code": "<string>",
"last_error_at": "2023-11-07T05:31:56Z",
"disabled_at": "2023-11-07T05:31:56Z"
}
]
}