Metadata-Version: 2.4
Name: acerdp
Version: 1.1.0
Summary: Client for the AceRDP API: Windows RDP and Linux VPS servers.
License: MIT
Project-URL: Documentation, https://acerdp.io/api-docs
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# AceRDP API client (Python)

Order and manage AceRDP Windows RDP and Linux VPS servers from your own code. Every method is one operation of the [API reference](https://acerdp.io/api-docs); it returns the answer's `data` and throws `AceRdpError` (with `code`, `status` and the request id) when the API refuses.

Create the key in the panel under Settings > API. Pass `idempotency_key` with anything that charges your balance, so a retry never charges twice.

A read, or a change sent with `idempotency_key`, is tried again after `429` or a server error (twice by default, waiting what `Retry-After` says). `wait_until_ready(server_id)` waits until a new or reinstalled server is ready.

```python
import os
from acerdp import AceRdp

api = AceRdp(os.environ["ACERDP_API_KEY"])
servers = api.list_servers()
api.send_a_power_action(server=servers[0]["id"], action="restart")
```

## Methods

- `add_an_ssh_key`: Add an SSH key
- `add_extra_ip_addresses`: Add extra IP addresses
- `add_heavy_use`: Add Heavy use
- `add_ram`: Add RAM
- `add_storage`: Add storage
- `configure_brute_force_protection`: Configure brute-force protection
- `create_a_server`: Create a server
- `create_a_webhook`: Create a webhook
- `delete_a_webhook`: Delete a webhook
- `delete_an_expired_server`: Delete an expired server
- `disable_ip_restrictions`: Disable IP restrictions
- `extend_a_server`: Extend a server
- `fix_everything`: Fix everything
- `get_a_plan`: Get a plan
- `get_a_server`: Get a server
- `get_a_servers_alerts`: Get a server's alerts
- `get_a_ticket`: Get a ticket
- `get_a_top_up`: Get a top-up
- `get_an_order`: Get an order
- `get_brute_force_protection`: Get brute-force protection
- `get_diagnostics_state`: Get diagnostics state
- `get_ip_restrictions`: Get IP restrictions
- `get_location_options`: Get location options
- `get_power_status`: Get power status
- `get_provisioning_status`: Get provisioning status
- `get_recovery_status`: Get recovery status
- `get_server_credentials`: Get server credentials
- `get_transaction_details`: Get transaction details
- `get_usage_history`: Get usage history
- `get_user_balance`: Get user balance
- `get_user_profile`: Get user profile
- `list_add_ons`: List add-ons
- `list_all_transactions`: List all transactions
- `list_deliveries`: List deliveries
- `list_events`: List events
- `list_extra_ip_addresses`: List extra IP addresses
- `list_invoices`: List invoices
- `list_locations`: List locations
- `list_notifications`: List notifications
- `list_operating_systems`: List operating systems
- `list_plans`: List plans
- `list_servers`: List servers
- `list_ssh_keys`: List SSH keys
- `list_tickets`: List tickets
- `list_upgrade_options`: List upgrade options
- `list_webhooks`: List webhooks
- `mark_notifications_as_read`: Mark notifications as read
- `move_a_server`: Move a server
- `quote_a_new_server`: Quote a new server
- `quote_a_renewal`: Quote a renewal
- `reinstall_a_server`: Reinstall a server
- `remove_an_extra_ip_address`: Remove an extra IP address
- `remove_an_ssh_key`: Remove an SSH key
- `remove_heavy_use`: Remove Heavy use
- `renew_servers`: Renew servers
- `replace_ip_restrictions`: Replace IP restrictions
- `resend_a_delivery`: Resend a delivery
- `reset_the_password`: Reset the password
- `run_a_repair`: Run a repair
- `run_diagnostics`: Run diagnostics
- `send_a_power_action`: Send a power action
- `send_a_test_event`: Send a test event
- `servers_due_for_renewal`: Servers due for renewal
- `start_the_recovery_hour`: Start the recovery hour
- `top_up_your_balance`: Top up your balance
- `unblock_an_address`: Unblock an address
- `update_a_server`: Update a server
- `upgrade_a_server`: Upgrade a server
