Vai al contenuto principale
POST
/
sites
/
{siteId}
/
credentials
Ruota le credenziali API per un sito
curl --request POST \
  --url https://api.altostrat.io/sites/{siteId}/credentials \
  --header 'Authorization: Bearer <token>'
{
  "id": "b7a6c5d4-e3f2-1098-7654-3210abcdef98",
  "site_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
  "username": "altostrat-api",
  "password": "Extr3m3lyS3cur3P@ssw0rdG3n3r@t3d",
  "ip_address": "100.64.1.23",
  "api_port": 8728,
  "server_ip": "edge-us-east-1a.ostrat.io",
  "created_at": "2025-10-28T05:00:00Z",
  "updated_at": "2025-10-28T05:00:00Z"
}

Authorizations

Authorization
string
header
required

Inserisci il tuo token bearer JWT.

Path Parameters

siteId
string<uuid>
required

L'identificatore univoco per il sito.

Example:

"d290f1ee-6c54-4b01-90e6-d701748f0851"

Response

Il nuovo oggetto credenziali API.

id
string<uuid>

L'identificatore univoco per il set di credenziali.

Example:

"b7a6c5d4-e3f2-1098-7654-3210abcdef98"

site_id
string<uuid>

L'ID del sito a cui appartengono queste credenziali.

Example:

"d290f1ee-6c54-4b01-90e6-d701748f0851"

username
string

Il nome utente per l'accesso API al dispositivo.

Example:

"altostrat-api"

password
string

La password per l'accesso API al dispositivo.

Example:

"Extr3m3lyS3cur3P@ssw0rdG3n3r@t3d"

ip_address
string<ipv4>

L'indirizzo IP privato del dispositivo all'interno del tunnel di gestione.

Example:

"100.64.1.23"

api_port
integer

La porta API configurata sul dispositivo, come da sua policy.

Example:

8728

server_ip
string

L'hostname del server di gestione Altostrat che gestisce il tunnel del dispositivo.

Example:

"edge-us-east-1a.ostrat.io"

created_at
string<date-time>

La data e ora di creazione di queste credenziali.

Example:

"2025-10-28T05:00:00Z"

updated_at
string<date-time>

La data e ora dell'ultimo aggiornamento di queste credenziali.

Example:

"2025-10-28T05:00:00Z"