全部產品
Search
文件中心

Microservices Engine:GetPlugins

更新時間:Oct 23, 2026

取得外掛程式市場外掛程式。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

mse:GetPlugins

get

*Gateway

acs:mse:{#regionId}:{#accountId}:instance/{#GatewayUniqueId}

無 無

請求參數

名稱

類型

必填

描述

樣本值

GatewayUniqueId

string

是

閘道 ID。

gw-0adf3ad751284cc69fcf9669fba*****

Category

integer

否

外掛程式類型:

  • 自訂:0

  • 認證權限:1

  • 安全防護:2

  • 傳輸協定:3

  • 流量管控:4

  • 流量觀測:5

1

EnableOnly

boolean

否

是否已啟用。

true

Name

string

否

外掛程式名稱。

key-auth

AcceptLanguage

string

否

傳回資訊的語言類型:

zh:中文 en:英文

zh

返回參數

名稱

類型

描述

樣本值

object

傳回資料。

RequestId

string

請求 ID。

03A3E2F4-6804-5663-9D5D-2EC47A1*****

Success

boolean

是否成功。

true

Code

integer

Code。

200

ErrorCode

string

錯誤碼。

500

HttpStatusCode

integer

HTTP STATUS 編碼。

200

Message

string

介面資訊。

success

DynamicCode

string

動態錯誤資訊中的預留位置。

code

DynamicMessage

string

動態錯誤資訊。

message

Data

array<object>

傳回資料。

object

物件。

Id

integer

外掛程式 ID。

1

PrimaryUser

string

建立者 ID。

123

Category

integer

外掛程式類型:

自訂:0

認證權限:1

安全防護:2

傳輸協定:3

流量管控:4

流量觀測:5

0

Name

string

外掛程式名稱。

key-auth

Version

string

外掛程式版本。

v1

Summary

string

外掛程式概要。

這是一個外掛程式

SummaryEn

string

英文外掛程式概要。

Authentication based on API Key.

Phase

integer

外掛程式執行階段:

  • 預設階段:0

  • 認證階段:1

  • 鑑權階段:2

  • 統計階段:3

1

Priority

integer

外掛程式執行優先順序。數值越大,優先順序越高。

1

ConfigCheck

string

設定驗證。

# 設定必要欄位的驗證,如下例所示,要求外掛程式設定必須存在 "name"、"age"、"friends" 欄位 name: John age: 18 friends: - David - Anne

WasmLang

integer

Wasm 實作語言:

  • C++:0

  • TinyGo:1

  • Rust:2

  • AssemblyScript:3

  • Zig:4

0

PublishState

integer

發佈狀態:

  • 0:成功

  • 1:發佈中

  • 2:發佈失敗

1

WasmFile

string

Wasm 外掛程式 OSS。

https://mse-shared-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/cfg/import/1917515******/gw-0adf3ad751284cc69fcf9669fba*****/2022/11/02/4d390496-2c17-4b42-a479-f9068ba****/16673573***5.wasm

Status

string

啟用狀態。

  • 未啟用:0

  • 啟用:1

1

Mode

integer

外掛程式語言:

  • 0:WASM 外掛程式

  • 2:LUA 外掛程式

0

MaxVersion

string

最新版本。

1.0.0

NewVersionPublishingFlag

boolean

最新版本是否正在發佈中。

false

樣本

正常返回樣本

JSON格式

{
  "RequestId": "03A3E2F4-6804-5663-9D5D-2EC47A1*****\n",
  "Success": true,
  "Code": 200,
  "ErrorCode": "500",
  "HttpStatusCode": 200,
  "Message": "success",
  "DynamicCode": "code",
  "DynamicMessage": "message",
  "Data": [
    {
      "Id": 1,
      "PrimaryUser": "123",
      "Category": 0,
      "Name": "key-auth",
      "Version": "v1",
      "Summary": "This is a plugin.",
      "SummaryEn": "Authentication based on API Key.",
      "Phase": 1,
      "Priority": 1,
      "ConfigCheck": "# Validate required fields in configuration, as shown in the following example, the plugin configuration must contain \"name\", \"age\", \"friends\" fields\nname: John\nage: 18\nfriends:\n- David\n- Anne",
      "WasmLang": 0,
      "PublishState": 1,
      "WasmFile": "https://mse-shared-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/cfg/import/1917515******/gw-0adf3ad751284cc69fcf9669fba*****/2022/11/02/4d390496-2c17-4b42-a479-f9068ba****/16673573***5.wasm",
      "Status": "1",
      "Mode": 0,
      "MaxVersion": "1.0.0",
      "NewVersionPublishingFlag": false
    }
  ]
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 IllegalRequest Invalid request:%s
400 InvalidParameter Parameter error:%s 請求參數錯誤:%s。
500 InternalError Console error. Try again later:%s 主控台錯誤。稍後重試:%s。
403 NoPermission You are not authorized to perform this operation:%s 沒有權限使用此介面:%s。
404 NotFound Not found:%s 資源不存在:%s。

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情。