الانتقال إلى المحتوى الرئيسي
GET
/
community-scripts
/
{communityScriptId}
.rsc
الحصول على محتوى الاسكربت الخام
curl --request GET \
  --url https://api.altostrat.io/community-scripts/{communityScriptId}.rsc \
  --header 'Authorization: Bearer <token>'
"/ip firewall filter\nadd action=accept chain=input comment=\"defconf: accept established,related,untracked\" connection-state=established,related,untracked\n"

Authorizations

Authorization
string
header
required

تستخدم واجهة برمجة تطبيقات Altostrat SDX رموز Bearer من نوع JWT للمصادقة. احصل على رمز عبر واجهة برمجة تطبيقات المصادقة وأدرجه في ترويسة Authorization كـ 'Bearer {token}'.

Path Parameters

communityScriptId
string<ulid>
required

المعرف الفريد للسكريبت المجتمعي.

Example:

"01H8XGJWBWBAQ1Z3G1B6X2Q8P5"

Response

محتوى الاسكربت الخام.

The response is of type string.

Example:

"/ip firewall filter\nadd action=accept chain=input comment=\"defconf: accept established,related,untracked\" connection-state=established,related,untracked\n"