49 Pydantic request models extracted from source. Types and Field(...) expressions are rendered verbatim. Runtime validators may impose additional rules; consult the implementation, and do not send authentication secrets in documentation.
LoginIn
Source: schemas.py:7
| Field | Type | Default/constraints |
|---|---|---|
username |
str |
Field(min_length=1, max_length=80) |
password |
str |
Field(min_length=1, max_length=256) |
totp |
str | None |
None |
AdminCreate
Source: schemas.py:12
| Field | Type | Default/constraints |
|---|---|---|
username |
str |
Field(pattern='^[a-zA-Z0-9._-]{3,80}$') |
password |
str |
REQUIRED |
role_id |
str |
REQUIRED |
AdminUpdate
Source: schemas.py:17
| Field | Type | Default/constraints |
|---|---|---|
role_id |
str | None |
None |
enabled |
bool | None |
None |
RoleUpdate
Source: schemas.py:21
| Field | Type | Default/constraints |
|---|---|---|
description |
str |
Field(max_length=255) |
permissions |
list[str] |
REQUIRED |
SwitchCreate
Source: schemas.py:25
| Field | Type | Default/constraints |
|---|---|---|
name |
str |
Field(min_length=1, max_length=120) |
ip |
str |
Field(min_length=3, max_length=46) |
platform |
Literal['aruba_os_switch'] |
'aruba_os_switch' |
snmp_username |
str | None |
None |
snmp_auth_password |
str | None |
None |
snmp_priv_password |
str | None |
None |
SwitchCredentials
Source: schemas.py:33
| Field | Type | Default/constraints |
|---|---|---|
username |
str |
Field(min_length=1, max_length=64) |
auth_password |
str |
Field(min_length=8, max_length=255) |
priv_password |
str |
Field(min_length=8, max_length=255) |
SwitchCoA
Source: schemas.py:38
| Field | Type | Default/constraints |
|---|---|---|
enabled |
bool |
REQUIRED |
capability_verified |
bool |
REQUIRED |
coa_port |
int |
Field(ge=1, le=65535) |
shared_secret |
str | None |
Field(default=None, min_length=16, max_length=256) |
DeviceUpdate
Source: schemas.py:44
| Field | Type | Default/constraints |
|---|---|---|
category |
str |
Field(max_length=60) |
approved |
bool |
REQUIRED |
blocked |
bool |
False |
certificate_fingerprint |
str | None |
Field(default=None, pattern='^[a-fA-F0-9]{64}$') |
PolicyWrite
Source: schemas.py:53
| Field | Type | Default/constraints |
|---|---|---|
name |
str |
Field(min_length=2, max_length=120) |
priority |
int |
Field(ge=1, le=1000000) |
action |
Literal['allow', 'deny', 'quarantine'] |
REQUIRED |
vlan |
int | None |
Field(default=None, ge=1, le=4094) |
conditions |
dict |
REQUIRED |
enabled |
bool |
False |
Simulation
Source: schemas.py:64
| Field | Type | Default/constraints |
|---|---|---|
context |
dict |
Field(default_factory=dict) |
simulate_authenticated |
bool |
False |
RadiusAuth
Source: schemas.py:68
| Field | Type | Default/constraints |
|---|---|---|
nas_ip |
str |
REQUIRED |
mac |
str |
REQUIRED |
username |
str |
Field(default='', max_length=160) |
method |
Literal['EAP-TLS', 'PEAP-MSCHAPv2', 'MAB', 'PORTAL'] |
REQUIRED |
authenticated |
bool |
REQUIRED |
certificate_valid |
bool |
False |
certificate_fingerprint |
str | None |
Field(default=None, pattern='^[a-fA-F0-9]{64}$') |
RadiusAccounting
Source: schemas.py:77
| Field | Type | Default/constraints |
|---|---|---|
nas_ip |
str |
REQUIRED |
session_id |
str |
REQUIRED |
mac |
str |
REQUIRED |
username |
str |
Field(default='', max_length=160) |
status |
Literal['start', 'interim', 'stop'] |
REQUIRED |
method |
str |
Field(default='unknown', max_length=30) |
GuestCreate
Source: schemas.py:85
| Field | Type | Default/constraints |
|---|---|---|
name |
str |
Field(min_length=1, max_length=160) |
email |
str |
Field(min_length=3, max_length=255) |
sponsor |
str |
Field(default='', max_length=120) |
mac |
str | None |
None |
expires_at |
datetime |
REQUIRED |
IntegrationCreate
Source: schemas.py:95
| Field | Type | Default/constraints |
|---|---|---|
kind |
Literal['keycloak', 'active_directory', 'radius_direct', 'radius_proxy', 'radius_builtin', 'smtp'] |
REQUIRED |
name |
str |
Field(min_length=1, max_length=80) |
config |
dict |
Field(default_factory=dict) |
secrets |
dict[str, str] |
Field(default_factory=dict) |
EnforcementRequest
Source: schemas.py:101
| Field | Type | Default/constraints |
|---|---|---|
vlan |
int | None |
Field(default=None, ge=1, le=4094) |
confirm |
Literal['I_UNDERSTAND_NETWORK_IMPACT'] |
REQUIRED |
MabLookup
Source: schemas.py:105
| Field | Type | Default/constraints |
|---|---|---|
nas_ip |
str |
REQUIRED |
mac |
str |
REQUIRED |
username |
str |
Field(min_length=1, max_length=64) |
DashboardLayout
Source: schemas.py:110
| Field | Type | Default/constraints |
|---|---|---|
widgets |
list[Literal['inventory', 'authentication', 'switch_health', 'alerts', 'recent_events', 'system', 'cpu', 'memory', 'storage', 'license', 'guests', 'discovery', 'device_categories', 'auth_methods', 'security_trend', 'switch_states', 'latest_devices', 'recent_auth']] |
Field(min_length=1, max_length=20) |
DashboardRefresh
Source: schemas.py:118
| Field | Type | Default/constraints |
|---|---|---|
seconds |
Literal[0, 5, 10, 15, 30, 60, 120, 300] |
REQUIRED |
ManagedDeviceCreate
Source: schemas.py:121
| Field | Type | Default/constraints |
|---|---|---|
mac |
str |
REQUIRED |
hostname |
str |
Field(default='', max_length=255) |
ip |
str | None |
None |
category |
str |
Field(default='Unknown', max_length=60) |
access_status |
Literal['unreviewed', 'allowlisted', 'blocklisted'] |
'unreviewed' |
OwnerAssign
Source: schemas.py:132
| Field | Type | Default/constraints |
|---|---|---|
user_id |
str |
Field(min_length=36, max_length=36) |
DirectoryLookup
Source: schemas.py:135
| Field | Type | Default/constraints |
|---|---|---|
username |
str |
Field(min_length=1, max_length=120, pattern='^[A-Za-z0-9._@-]+$') |
UserWrite
Source: schemas.py:138
| Field | Type | Default/constraints |
|---|---|---|
username |
str |
Field(min_length=1, max_length=160, pattern='^[A-Za-z0-9._@\\\\-]+$') |
display_name |
str |
Field(default='', max_length=160) |
email |
str |
Field(default='', max_length=255) |
department |
str |
Field(default='', max_length=120) |
access_status |
Literal['unreviewed', 'allowlisted', 'blocklisted'] |
'unreviewed' |
AccessStatusWrite
Source: schemas.py:145
| Field | Type | Default/constraints |
|---|---|---|
access_status |
Literal['unreviewed', 'allowlisted', 'blocklisted'] |
REQUIRED |
GroupWrite
Source: schemas.py:148
| Field | Type | Default/constraints |
|---|---|---|
kind |
Literal['user', 'device', 'network_device', 'admin'] |
REQUIRED |
name |
str |
Field(min_length=2, max_length=120) |
description |
str |
Field(default='', max_length=255) |
external_identity |
str |
Field(default='', max_length=255) |
GroupMemberWrite
Source: schemas.py:154
| Field | Type | Default/constraints |
|---|---|---|
member_id |
str |
Field(min_length=1, max_length=36) |
GroupRuleWrite
Source: schemas.py:157
| Field | Type | Default/constraints |
|---|---|---|
field |
str |
Field(min_length=2, max_length=40) |
value |
str |
Field(min_length=1, max_length=160) |
enabled |
bool |
True |
SwitchRegistration
Source: schemas.py:162
| Field | Type | Default/constraints |
|---|---|---|
name |
str |
Field(min_length=1, max_length=120) |
ip |
str |
Field(min_length=3, max_length=46) |
platform |
Literal['aruba_os_switch'] |
'aruba_os_switch' |
connection_type |
Literal['snmpv3', 'snmpv2c', 'ssh_cli'] |
'snmpv3' |
auto_discover |
bool |
False |
discovery_interval_minutes |
int |
Field(default=60, ge=10, le=10080) |
snmp_username |
str | None |
None |
snmp_auth_password |
str | None |
None |
snmp_priv_password |
str | None |
None |
snmp_community |
str | None |
None |
cli_username |
str | None |
None |
cli_password |
str | None |
None |
cli_hostkey_sha256 |
str | None |
None |
SwitchConnectionUpdate
Source: schemas.py:177
| Field | Type | Default/constraints |
|---|---|---|
connection_type |
Literal['snmpv3', 'snmpv2c', 'ssh_cli'] |
REQUIRED |
auto_discover |
bool |
False |
discovery_interval_minutes |
int |
Field(default=60, ge=10, le=10080) |
snmp_username |
str | None |
None |
snmp_auth_password |
str | None |
None |
snmp_priv_password |
str | None |
None |
snmp_community |
str | None |
None |
cli_username |
str | None |
None |
cli_password |
str | None |
None |
cli_hostkey_sha256 |
str | None |
None |
WidgetSizes
Source: schemas.py:190
| Field | Type | Default/constraints |
|---|---|---|
sizes |
dict[str, int] |
Field(default_factory=dict) |
IpScanRequest
Source: schemas.py:201
| Field | Type | Default/constraints |
|---|---|---|
scope |
str |
Field(min_length=7, max_length=70) |
confirm_authorized |
Literal[True] |
REQUIRED |
IpCandidateReview
Source: schemas.py:205
| Field | Type | Default/constraints |
|---|---|---|
decision |
Literal['dismiss', 'register'] |
REQUIRED |
mac |
str | None |
None |
hostname |
str |
Field(default='', max_length=255) |
category |
str |
Field(default='Unknown', max_length=60) |
CategoryWrite
Source: schemas.py:211
| Field | Type | Default/constraints |
|---|---|---|
kind |
Literal['device', 'switch', 'port'] |
REQUIRED |
name |
str |
Field(min_length=2, max_length=60) |
description |
str |
Field(default='', max_length=255) |
CategoryAssignment
Source: schemas.py:216
| Field | Type | Default/constraints |
|---|---|---|
category_id |
str | None |
None |
ManagementPolicyWrite
Source: schemas.py:219
| Field | Type | Default/constraints |
|---|---|---|
name |
str |
Field(min_length=2, max_length=120) |
kind |
Literal['switch', 'port'] |
REQUIRED |
category_id |
str |
REQUIRED |
enabled |
bool |
True |
discover_enabled |
bool |
True |
interval_minutes |
int |
Field(default=60, ge=10, le=10080) |
PortManagementUpdate
Source: schemas.py:227
| Field | Type | Default/constraints |
|---|---|---|
category_id |
str | None |
None |
discovery_override |
bool | None |
None |
GroupRuleUpdate
Source: schemas.py:231
| Field | Type | Default/constraints |
|---|---|---|
field |
str |
Field(min_length=2, max_length=40) |
value |
str |
Field(min_length=1, max_length=160) |
enabled |
bool |
True |
GroupPolicyBinding
Source: schemas.py:236
| Field | Type | Default/constraints |
|---|---|---|
policy_id |
str |
REQUIRED |
TableLayout
Source: schemas.py:239
| Field | Type | Default/constraints |
|---|---|---|
columns |
list[str] |
Field(min_length=1, max_length=30) |
ManualPortWrite
Source: schemas.py:248
| Field | Type | Default/constraints |
|---|---|---|
ifindex |
int |
Field(ge=1, le=2147483647) |
name |
str |
Field(min_length=1, max_length=120) |
category_id |
str | None |
None |
SwitchMetadataWrite
Source: schemas.py:253
| Field | Type | Default/constraints |
|---|---|---|
name |
str |
Field(min_length=1, max_length=120) |
ip |
str |
REQUIRED |
category_id |
str | None |
None |
FirstAdmin
Source: setup_wizard.py:39
| Field | Type | Default/constraints |
|---|---|---|
token |
str |
Field(min_length=40, max_length=150) |
username |
str |
Field(default='admin', pattern='^[a-zA-Z0-9._-]{3,40}$') |
password |
str |
Field(min_length=16, max_length=256) |
confirm_password |
str |
Field(min_length=16, max_length=256) |
SiteInput
Source: setup_wizard.py:45
| Field | Type | Default/constraints |
|---|---|---|
display_name |
str |
Field(default='WeserGate NAC', min_length=2, max_length=120) |
management_hostname |
str |
Field(min_length=4, max_length=253) |
portal_hostname |
str |
Field(min_length=4, max_length=253) |
OIDCTestStart
Source: setup_wizard.py:59
| Field | Type | Default/constraints |
|---|---|---|
integration_id |
str |
Field(min_length=1, max_length=36) |
AdminDirectoryMappingWrite
Source: setup_wizard.py:62
| Field | Type | Default/constraints |
|---|---|---|
principal_kind |
str |
Field(pattern='^(ad_user|ad_group)$') |
principal |
str |
Field(min_length=2, max_length=255) |
role_id |
str |
Field(min_length=2, max_length=40) |
TLSUpload
Source: setup_wizard.py:67
| Field | Type | Default/constraints |
|---|---|---|
management_cert |
str |
Field(min_length=50, max_length=100000) |
management_key |
str |
Field(min_length=50, max_length=100000) |
portal_cert |
str |
Field(min_length=50, max_length=100000) |
portal_key |
str |
Field(min_length=50, max_length=100000) |
StepUpdate
Source: setup_wizard.py:73
| Field | Type | Default/constraints |
|---|---|---|
step |
str |
REQUIRED |
decision |
str |
REQUIRED |
BuiltinEnable
Source: setup_wizard.py:233
| Field | Type | Default/constraints |
|---|---|---|
integration_id |
str |
Field(min_length=36, max_length=36) |
enabled |
bool |
REQUIRED |
NetworkPlanInput
Source: preproduction.py:19
| Field | Type | Default/constraints |
|---|---|---|
management_interface |
str |
Field(min_length=2, max_length=15) |
management_address |
str |
Field(min_length=9, max_length=43) |
management_gateway |
str |
Field(min_length=7, max_length=45) |
management_dns |
list[str] |
Field(min_length=1, max_length=3) |
quarantine_interface |
str |
Field(min_length=2, max_length=15) |
quarantine_address |
str |
Field(min_length=9, max_length=43) |
management_hostname |
str |
Field(min_length=1, max_length=253) |
portal_hostname |
str |
Field(min_length=1, max_length=253) |
Activation
Source: licensing_api.py:13
| Field | Type | Default/constraints |
|---|---|---|
document |
dict |
REQUIRED |
en/docs/reference/request-schemas.mdRead documentation Not a certified production NAC. Physical switch/RADIUS enforcement and 1,000-device traffic remain unverified.

