AsyncOutlineClient
An asynchronous client for interacting with an Outline VPN server's API.
Provides asynchronous access to server management, metrics, and access key functionalities.
Attributes:
| Name | Type | Description |
|---|---|---|
server |
AsyncServer
|
Manages server-level settings and configurations. |
metrics |
AsyncMetrics
|
Monitors and retrieves server metrics. |
access_keys |
AsyncAccessKeys
|
Manages access keys. |
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
management_url
|
str
|
The management URL used to communicate with the Outline server API. |
'https://myoutline.com/SecretPath'
|
ssl_verify
|
bool
|
Flag to enable or disable SSL certificate verification. Default is False. |
False
|
Source code in outline_vpn_api_client/async_client.py
514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 | |
get_information()
async
Retrieves detailed information about the Outline server, including its configuration, metrics status, and access keys.
Returns:
| Type | Description |
|---|---|
Info
|
models.Info: Server info, metrics status, and list of access keys. |
Raises:
| Type | Description |
|---|---|
ResponseNotOkException
|
If the server response indicates an error (status code >= 300). |
Source code in outline_vpn_api_client/async_client.py
535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 | |