---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "autoglue_server Resource - terraform-provider-autoglue"
subcategory: ""
description: |-
  Create and manage a server (org-scoped). Mirrors API validation for role/status/ssh_key_id.
---

# autoglue_server (Resource)

Create and manage a server (org-scoped). Mirrors API validation for role/status/ssh_key_id.



<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `hostname` (String) Hostname.
- `private_ip_address` (String) Private IP address (required).
- `role` (String) Server role (e.g., agent/manager/bastion). Lowercased by the provider.
- `ssh_key_id` (String) SSH key ID (UUID) that belongs to the org.
- `ssh_user` (String) SSH username (required).

### Optional

- `public_ip_address` (String) Public IP address (required when role = bastion).
- `status` (String) Status (pending|provisioning|ready|failed). Lowercased by the provider.

### Read-Only

- `created_at` (String)
- `id` (String) Server ID (UUID).
- `organization_id` (String)
- `raw` (String) Full server JSON from API.
- `updated_at` (String)
