ListPluginAttachments

更新时间:
复制 MD 格式

Retrieves a list of plug-in attachments.

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

apig:ListPluginAttachments

none

*All Resource

*

None None

Request syntax

GET /v1/plugin-attachments HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

attachResourceId

string

No

The resource attachment ID.

hr-cv2h58em1hkg7c6vt43g

attachResourceType

string

No

The resource attachment type (not yet in use).

Valid values:

  • GatewayDomain :

    GatewayDomain

  • Gateway :

    Gateway

  • GatewayRoute :

    GatewayRoute

  • HttpApi :

    HttpApi

  • Operation :

    Operation

GatewayRoute

environmentId

string

No

The environment ID.

env-crlnqhtlhtgqflkqislg

pluginId

string

No

The plug-in ID.

pl-ct8181um1hkiqns9f6e0

gatewayId

string

No

The gateway ID.

gw-cr79f75lhtgme744084g

pageNumber

integer

No

The page number to return. Pages start from 1. Default value: 1.

1

pageSize

integer

No

The number of entries per page. Default value: 10.

10

attachResourceTypes

string

No

The resource attachment types, separated by commas.

GatewayRoute

withParentResource

boolean

No

Specifies whether to return parent resource attachments.

false

Response elements

Element

Type

Description

Example

object

Schema of Response

requestId

string

The request ID.

9640D776-794A-5077-9184-A247CA4B45C1

code

string

The status code.

Ok

message

string

The status message.

success

data

object

The response payload.

pageNumber

integer

The page number.

1

pageSize

integer

The page size.

10

totalSize

integer

The total number of entries returned.

10

items

array<object>

The details of resource attachments.

object

The details of the resource attachment.

pluginAttachmentId

string

The ID of the resource attachment.

pa-d0j9t5em1hkncrlo51mg

parentResourceInfo ParentResourceInfo

The parent resource metadata.

resourceInfos

array

The information of resource attachments.

ResourceInfo

The information of the resource attachment.

environmentInfo EnvironmentInfo

The environment metadata.

enable

boolean

Indicates if enabled.

true

pluginId

string

The plug-in ID.

pl-cvu6r4um1hko3b3ti0a0

pluginConfig

string

The plug-in configurations (Base64-encoded).

bGltaXRfYnlfaGVhZGVyOiB4LWFwaS1rZXkKbGltaXRfa2V5czoKLSBrZXk6IGV4YW1wbGUta2V5LWEKICBxdWVyeV9wZXJfc2Vjb25kOiAxMAotIGtleTogZXhhbXBsZS1rZXktYgogIHF1ZXJ5X3Blcl9zZWNvbmQ6IDEK

pluginClassInfo

PluginClassInfo

The plug-in type metadata.

attachResourceType

string

The types of resource attachments.

  • HttpApi

  • Operation

  • GatewayRoute

  • GatewayDomain

  • Gateway

GatewayRoute

Examples

Success response

JSON format

{
  "requestId": "9640D776-794A-5077-9184-A247CA4B45C1",
  "code": "Ok",
  "message": "success",
  "data": {
    "pageNumber": 1,
    "pageSize": 10,
    "totalSize": 10,
    "items": [
      {
        "pluginAttachmentId": "pa-d0j9t5em1hkncrlo51mg",
        "parentResourceInfo": {
          "resourceType": "",
          "apiInfo": {
            "httpApiId": "api-xxx",
            "name": "test",
            "basePath": "/v1",
            "description": "",
            "versionInfo": {
              "enable": true,
              "scheme": "Query",
              "headerName": "my-version",
              "queryName": "myVersion",
              "version": "v1"
            },
            "ingressInfo": {
              "sourceId": "",
              "ingressClass": "",
              "watchNamespace": "",
              "environmentInfo": {
                "environmentId": ""
              },
              "k8sClusterInfo": {
                "clusterId": ""
              },
              "overrideIngressIp": true
            },
            "type": "Rest",
            "resourceGroupId": "rg-xxx",
            "enabelAuth": true,
            "authConfig": {
              "authType": "",
              "authMode": ""
            },
            "gatewayId": "",
            "modelCategory": "",
            "protocols": [
              "HTTP"
            ],
            "environments": [
              {
                "environmentId": "env-xxx",
                "backendScene": "SingleService",
                "backendType": "Service",
                "serviceConfigs": [
                  {
                    "gatewayServiceId": "gs-xxx",
                    "name": "demo-service",
                    "protocol": "HTTP",
                    "port": "8080",
                    "weight": 100,
                    "version": "v1",
                    "match": {
                      "default": true,
                      "conditions": [
                        {
                          "type": "Query",
                          "key": "color",
                          "value": "gray",
                          "operator": "equal"
                        }
                      ]
                    },
                    "serviceId": "svc-xxx"
                  }
                ],
                "customDomains": [
                  {
                    "domainId": "d-xxx",
                    "name": "www.example.com",
                    "protocol": "HTTP"
                  }
                ],
                "name": "test",
                "alias": "test",
                "gatewayInfo": {
                  "gatewayId": "gw-xxx",
                  "name": "test"
                },
                "deployStatus": "Deployed",
                "subDomains": [
                  {
                    "domainId": "d-xxx",
                    "name": "www.example.com",
                    "protocol": "HTTP",
                    "networkType": "Internet"
                  }
                ]
              }
            ],
            "aiProtocols": [
              ""
            ],
            "deployConfigs": [
              {
                "environmentId": "env-xxx",
                "backendScene": "SingleService",
                "autoDeploy": true,
                "gatewayId": "gw-xx",
                "routeBackend": {
                  "scene": "Single",
                  "services": [
                    {
                      "serviceId": "service-cq2bmmdlhtgj***",
                      "name": "item-service",
                      "protocol": "HTTP",
                      "port": 0,
                      "weight": 49,
                      "version": "v1"
                    }
                  ]
                },
                "gatewayInfo": {
                  "gatewayId": "",
                  "name": "",
                  "vpcInfo": {
                    "vpcId": "",
                    "name": ""
                  },
                  "engineVersion": ""
                },
                "mock": {
                  "enable": false,
                  "responseCode": 200,
                  "responseContent": ""
                },
                "gatewayType": "API",
                "customDomainIds": [
                  "d-xxx"
                ],
                "serviceConfigs": [
                  {
                    "serviceId": "svc-xxx",
                    "weight": 100,
                    "modelNamePattern": "qwen-*",
                    "modelName": "qwen-max",
                    "intentCode": "",
                    "match": {
                      "default": true,
                      "conditions": [
                        {
                          "type": "Query",
                          "key": "color",
                          "value": "gray",
                          "operator": "equal"
                        }
                      ]
                    },
                    "port": 0,
                    "protocol": "",
                    "gatewayServiceId": "",
                    "name": "",
                    "version": "",
                    "multiServiceRouteStrategy": "",
                    "observabilityRouteConfig": {
                      "mode": "",
                      "rateLimit": 0,
                      "queueSize": 0
                    }
                  }
                ],
                "policyConfigs": [
                  {
                    "type": "AiFallback",
                    "enable": true,
                    "aiFallbackConfig": {
                      "serviceConfigs": [
                        {
                          "serviceId": "",
                          "targetModelName": ""
                        }
                      ]
                    },
                    "aiSecurityGuardConfig": {
                      "serviceAddress": "",
                      "checkRequest": true,
                      "checkResponse": true,
                      "checkRequestImage": true,
                      "checkResponseImage": true,
                      "requestCheckService": "",
                      "responseCheckService": "",
                      "requestImageCheckService": "",
                      "responseImageCheckService": "",
                      "riskAlertLevel": "",
                      "riskConfig": [
                        {
                          "type": "",
                          "level": "",
                          "consumerRules": {
                            "pattern": "",
                            "matchType": ""
                          }
                        }
                      ],
                      "bufferLimit": 0,
                      "consumerRequestCheckService": [
                        {
                          "name": "",
                          "requestCheckService": "",
                          "requestImageCheckService": "",
                          "matchType": "",
                          "modalityType": ""
                        }
                      ],
                      "consumerResponseCheckService": [
                        {
                          "name": "",
                          "responseCheckService": "",
                          "responseImageCheckService": "",
                          "matchType": "",
                          "modalityType": ""
                        }
                      ],
                      "consumerRiskLevel": [
                        {
                          "name": "",
                          "matchType": "",
                          "type": "",
                          "level": ""
                        }
                      ]
                    },
                    "aiTokenRateLimitConfig": {
                      "rules": [
                        {
                          "limitType": "",
                          "matchKey": "",
                          "matchType": "",
                          "matchValue": "",
                          "limitMode": "",
                          "limitValue": 0
                        }
                      ],
                      "globalRules": [
                        {
                          "limitType": "",
                          "matchKey": "",
                          "matchType": "",
                          "matchValue": "",
                          "limitMode": "",
                          "limitValue": 0
                        }
                      ],
                      "enableGlobalRules": true
                    },
                    "aiStatisticsConfig": {
                      "logRequestContent": true,
                      "logResponseContent": true
                    }
                  }
                ],
                "customDomainInfos": [
                  {
                    "domainId": "",
                    "name": "",
                    "protocol": ""
                  }
                ],
                "subDomains": [
                  {
                    "domainId": "",
                    "name": "",
                    "protocol": "",
                    "networkType": ""
                  }
                ]
              }
            ],
            "deployCntMap": {
              "key": {
                "deployedCnt": 0,
                "Cnt": 0
              }
            },
            "agentProtocols": [
              ""
            ]
          }
        },
        "resourceInfos": [
          {
            "resourceType": "",
            "resourceId": "",
            "resourceName": "",
            "resourceVersion": ""
          }
        ],
        "environmentInfo": {
          "environmentId": "",
          "name": "",
          "alias": "",
          "description": "",
          "gatewayInfo": {
            "gatewayId": "",
            "name": "",
            "vpcInfo": {
              "vpcId": "",
              "name": ""
            },
            "engineVersion": ""
          },
          "subDomainInfos": [
            {
              "domainId": "",
              "name": "",
              "protocol": "",
              "networkType": ""
            }
          ],
          "default": true,
          "createTimestamp": 0,
          "updateTimestamp": 0,
          "resourceGroupId": "rg-xxxx"
        },
        "enable": true,
        "pluginId": "pl-cvu6r4um1hko3b3ti0a0",
        "pluginConfig": "bGltaXRfYnlfaGVhZGVyOiB4LWFwaS1rZXkKbGltaXRfa2V5czoKLSBrZXk6IGV4YW1wbGUta2V5LWEKICBxdWVyeV9wZXJfc2Vjb25kOiAxMAotIGtleTogZXhhbXBsZS1rZXktYgogIHF1ZXJ5X3Blcl9zZWNvbmQ6IDEK",
        "pluginClassInfo": {
          "pluginClassId": "",
          "type": "",
          "mode": "",
          "name": "",
          "alias": "",
          "description": "",
          "source": "",
          "version": "",
          "versionDescription": "",
          "executeStage": "",
          "executePriority": 0,
          "configExample": "",
          "imageName": "",
          "wasmLanguage": "",
          "supportedMinGatewayVersion": "",
          "wasmUrl": "",
          "innerPlugin": true
        },
        "attachResourceType": "GatewayRoute"
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.