Skip to main content
PATCH
/
radius
/
nas
/
{nasId}
Update a NAS Device
curl --request PATCH \
  --url https://api.altostrat.io/radius/nas/{nasId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "<string>",
  "description": "<string>",
  "metadata": "<any>"
}'
{
  "id": "nas_01HGM5V65A5A5A5A5A5A5A5A5C",
  "nas_identifier": "192.168.88.1",
  "type": "mikrotik",
  "description": "Main office router",
  "metadata": "<any>",
  "certificate": "<string>",
  "private_key": "<string>",
  "client_ca": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Enter your API key in the format: Bearer <token>

Path Parameters

nasId
string
required

The unique identifier for the NAS device, prefixed with nas_.

Body

application/json
type
string | null
description
string | null
metadata
any

Response

The updated NAS device object.

Represents a Network Access Server (NAS) device.

id
string

Unique identifier for the NAS device.

Example:

"nas_01HGM5V65A5A5A5A5A5A5A5A5C"

nas_identifier
string

The IP address or hostname that the NAS uses to identify itself in RADIUS requests.

Example:

"192.168.88.1"

type
string | null

The type or vendor of the NAS device.

Example:

"mikrotik"

description
string | null

A brief description of the NAS device.

Example:

"Main office router"

metadata
any
certificate
string

The PEM-encoded client certificate for RadSec (TLS) authentication.

private_key
string

The PEM-encoded private key for the client certificate. Only returned on creation.

client_ca
string

The PEM-encoded Certificate Authority (CA) certificate that signed the client certificate.

created_at
string<date-time>
updated_at
string<date-time>