All Products
Search
Document Center

Microservices Engine:GetPluginConfig

Last Updated:Oct 26, 2026

Retrieves the plug-in configuration.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

mse:GetPluginConfig

get

*Gateway

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

None None

Request parameters

Parameter

Type

Required

Description

Example

GatewayUniqueId

string

Yes

The unique ID of the gateway.

gw-ubuwqygbq4783gqb2y3f87q****

PluginId

integer

Yes

The ID of the gateway plug-in.

123

AcceptLanguage

string

No

The language of the returned information. Valid values:

  • zh: Chinese.

  • en: English.

zh

Response elements

Element

Type

Description

Example

object

RestResult

RequestId

string

The request ID.

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

Success

boolean

Indicates whether the request is successful.

true

Code

integer

The code.

200

ErrorCode

string

The error code.

500

HttpStatusCode

integer

The HTTP status code.

200

Message

string

The API message.

success

DynamicCode

string

The dynamic error code.

code

DynamicMessage

string

The dynamic error message.

message

Data

object

The returned data.

Id

integer

The plug-in ID.

1

PrimaryUser

string

The ID of the creator.

123

Type

integer

The plug-in type. Valid values:

  • 0: HTTP filter.

  • 1: Network filter.

0

Category

integer

The plug-in category. Valid values:

  • 0: Custom.

  • 1: Authentication and authorization.

  • 2: Security protection.

  • 3: Transport protocol.

  • 4: Traffic control.

  • 5: Traffic observation.

0

Name

string

The plug-in name.

name

Version

string

The plug-in version.

v1

Summary

string

The plug-in summary.

This is a plug-in

SummaryEn

string

The plug-in summary in English.

Convert request/response headers, request query parameters, and request/response body parameters.

Readme

string

The README description.

read me

ReadmeEn

string

The README description in English.

read me

ConfigExample

string

The plug-in configuration example.

blocked_code: 404 blocked_message: resource not found

Phase

integer

The plug-in execution phase. Valid values:

  • 0: Default phase.

  • 1: Authentication phase.

  • 2: Authorization phase.

  • 3: Statistics phase.

0

Priority

integer

The plug-in execution priority. A larger value indicates a higher priority.

1

ConfigCheck

string

The configuration validation.

# Validate required configuration fields. In the following example, the plug-in configuration must contain the "name", "age", and "friends" fields. name: John age: 18 friends: - David - Anne

Mode

integer

The mode.

0

WasmLang

integer

The WebAssembly (Wasm) implementation language. Valid values:

  • 0: C++.

  • 1: TinyGo.

  • 2: Rust.

  • 3: AssemblyScript.

  • 4: Zig.

0

ImageName

string

The image name.

name

PublishState

integer

The publish status.

1

Status

string

The enabling status. Valid values:

  • 0: Disabled.

  • 1: Enabled.

1

GatewayConfigList

array<object>

The list of gateway plug-in configurations.

array<object>

The data object.

Id

integer

The plug-in configuration ID.

1

GatewayId

integer

The gateway ID.

1

GatewayUniqueId

string

The unique ID of the gateway.

gw-ubuwqygbq4783gqb2y3f87q****

PluginId

integer

The ID of the gateway plug-in.

1

Enable

boolean

Indicates whether the plug-in is enabled.

true

Config

string

The plug-in configuration.

# Validate required configuration fields. In the following example, the plug-in configuration must contain the "name", "age", and "friends" fields. name: John age: 18 friends: - David - Anne

ConfigLevel

integer

The plug-in application scope. Valid values:

  • 0: Global.

  • 1: Domain name.

  • 2: Route.

0

ResourceList

array<object>

The list of domain name and route resources, distinguished by ConfigLevel.

object

Id

integer

The resource ID.

1

Name

string

The resource name, which is the domain name or route name.

test-route

GmtCreate

string

The creation time.

1667309705000

GmtModified

string

The update time.

1667309705000

RouteConfigStartIndex

integer

The start index of route-level rules in GatewayConfigList. If no route-level rules exist, the value is -1.

0

DomainConfigStartIndex

integer

The start index of domain-level rules in GatewayConfigList. If no domain-level rules exist, the value is -1.

5

GatewayConfigStartIndex

integer

The index of instance-level rules in GatewayConfigList. If no instance-level rules exist, the value is -1.

7

VersionJson

string

The list of gateway plug-in version information.

[{"id":1, "version": "1.0.0"}]

Examples

Success response

JSON format

{
  "RequestId": "03A3E2F4-6804-5663-9D5D-2EC47A1*****",
  "Success": true,
  "Code": 200,
  "ErrorCode": "500",
  "HttpStatusCode": 200,
  "Message": "success",
  "DynamicCode": "code",
  "DynamicMessage": "message",
  "Data": {
    "Id": 1,
    "PrimaryUser": "123",
    "Type": 0,
    "Category": 0,
    "Name": "name",
    "Version": "v1",
    "Summary": "This is a plug-in",
    "SummaryEn": "Convert request/response headers, request query parameters, and request/response body parameters.",
    "Readme": "read me",
    "ReadmeEn": "read me",
    "ConfigExample": "blocked_code: 404\nblocked_message: resource not found\n",
    "Phase": 0,
    "Priority": 1,
    "ConfigCheck": "# Validate required fields in the configuration. As shown in the following example, the plug-in configuration must contain the \"name\", \"age\", and \"friends\" fields.\nname: John\nage: 18\nfriends:\n- David\n- Anne",
    "Mode": 0,
    "WasmLang": 0,
    "ImageName": "name",
    "PublishState": 1,
    "Status": "1",
    "GatewayConfigList": [
      {
        "Id": 1,
        "GatewayId": 1,
        "GatewayUniqueId": "gw-ubuwqygbq4783gqb2y3f87q****",
        "PluginId": 1,
        "Enable": true,
        "Config": "# Validate required fields in the configuration. As shown in the following example, the plug-in configuration must contain the \"name\", \"age\", and \"friends\" fields.\nname: John\nage: 18\nfriends:\n- David\n- Anne",
        "ConfigLevel": 0,
        "ResourceList": [
          {
            "Id": 1,
            "Name": "test-route"
          }
        ],
        "GmtCreate": "1667309705000",
        "GmtModified": "1667309705000"
      }
    ],
    "RouteConfigStartIndex": 0,
    "DomainConfigStartIndex": 5,
    "GatewayConfigStartIndex": 7,
    "VersionJson": "[{\"id\":1, \"version\": \"1.0.0\"}]"
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 IllegalRequest Invalid request:%s Invalid request: %s
400 InvalidParameter Parameter error:%s Request parameter error: %s
500 InternalError Console error. Try again later:%s Console error. Try again later: %s
403 NoPermission You are not authorized to perform this operation:%s You do not have the permission to use this interface:%s
404 NotFound Not found:%s The resource does not exist:%s

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.