الانتقال إلى المحتوى الرئيسي
POST
/
sites
/
{siteId}
/
transient-accesses
إنشاء جلسة وصول مؤقت
curl --request POST \
  --url https://api.altostrat.io/sites/{siteId}/transient-accesses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "expire_after_minutes": 60,
  "type": "winbox",
  "full_access": true,
  "allow_rfc1918": false,
  "allow_only_cidr": "203.0.113.42/32"
}'
{
  "id": "f0e9d8c7-b6a5-4f3e-2d1c-0b9a8e7f6d5c",
  "username": "transient-user-abc123",
  "password": "P@ssw0rdABC123XYZ",
  "port": 45821,
  "type": "winbox",
  "full_access": true,
  "allow_rfc1918": false,
  "allow_only_cidr": "198.51.100.10/32",
  "revoked_early": false,
  "expires_at": "2025-10-29T12:15:49Z",
  "expired": false,
  "entry_point": "edge-us-east-1a.ostrat.io",
  "time_to_expire": "15 دقيقة من الآن",
  "onclick": "winbox://edge-us-east-1a.ostrat.io:45821?username=transient-user-abc123&password=P@ssw0rdABC123XYZ"
}

Authorizations

Authorization
string
header
required

أدخل رمز JWT bearer الخاص بك.

Path Parameters

siteId
string<uuid>
required

المعرف الفريد للموقع.

Example:

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

Body

application/json
expire_after_minutes
integer
required

عدد الدقائق حتى انتهاء صلاحية الجلسة تلقائيًا.

Required range: 15 <= x <= 1440
Example:

60

type
enum<string>
required

نوع بروتوكول الوصول.

الخيارات المتاحة:
winbox,
ssh
Example:

"winbox"

full_access
boolean
required

ما إذا كنت تريد منح امتيازات إدارية كاملة.

Example:

true

allow_rfc1918
boolean
required

ما إذا كنت تريد السماح بالاتصالات من عناوين IP الخاصة (RFC1918). عادةً يجب أن تكون القيمة خطأ (false) لأسباب أمنية.

Example:

false

allow_only_cidr
string
required

تقييد الوصول إلى عنوان IP مصدر واحد أو نطاق CIDR. استخدم /32 لعنوان IP واحد.

Example:

"203.0.113.42/32"

Response

كائن الوصول المؤقت الذي تم إنشاؤه حديثًا.

id
string<uuid>

المعرف الفريد لجلسة الوصول المؤقت.

Example:

"f0e9d8c7-b6a5-4f3e-2d1c-0b9a8e7f6d5c"

username
string

اسم المستخدم المؤقت لهذه الجلسة.

Example:

"transient-user-abc123"

password
string

كلمة المرور المؤقتة لهذه الجلسة.

Example:

"P@ssw0rdABC123XYZ"

port
integer

المنفذ العام على خادم إدارة Altostrat للاتصال به.

Example:

45821

type
enum<string>

نوع بروتوكول الوصول.

الخيارات المتاحة:
winbox,
ssh
Example:

"winbox"

full_access
boolean

ما إذا كانت الجلسة تتمتع بامتيازات إدارية كاملة.

Example:

true

allow_rfc1918
boolean

ما إذا كان الوصول مسموحًا به من نطاقات IP الخاصة (RFC1918).

Example:

false

allow_only_cidr
string

مصدر CIDR المسموح له بالاتصال حصريًا.

Example:

"198.51.100.10/32"

revoked_early
boolean

صحيح (True) إذا تم إلغاء الجلسة يدويًا قبل انتهاء صلاحيتها.

Example:

false

expires_at
string<date-time>

الطابع الزمني الذي ستنتهي فيه صلاحية هذه الجلسة تلقائيًا.

Example:

"2025-10-29T12:15:49Z"

expired
boolean

صحيح (True) إذا انتهت صلاحية الجلسة أو تم إلغاؤها.

Example:

false

entry_point
string

اسم المضيف لخادم إدارة Altostrat للاتصال به.

Example:

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

time_to_expire
string

سلسلة نصية قابلة للقراءة البشرية تشير إلى المدة المتبقية حتى انتهاء صلاحية الجلسة.

Example:

"15 دقيقة من الآن"

onclick
string

سلسلة اتصال Winbox للوصول السهل بنقرة واحدة.

Example:

"winbox://edge-us-east-1a.ostrat.io:45821?username=transient-user-abc123&password=P@ssw0rdABC123XYZ"