AttachPlugin
Associates a plug-in with an API.
Operation description
This API operation is intended for users of open APIs.
You can only associate APIs that are in the published state.
The association takes effect immediately.
Modifications to the plug-in take effect immediately.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apigateway:AttachPlugin |
update |
*ApiGroup
*Plugin
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PluginId |
string |
Yes |
The ID of the API Gateway plug-in. |
9a3f1a5279434f2ba74ccd91c295af9f |
| GroupId |
string |
No |
The ID of the API group. |
285bb759342649a1b70c2093a772e087 |
| ApiIds |
string |
No |
The IDs of the APIs to be associated. You can specify multiple IDs separated by commas (,). A maximum of 100 IDs are supported. |
a1234567890b1234567890c1234567890d |
| StageName |
string |
Yes |
The environment of the API to be operated. Valid values:
|
TEST |
| ApiId |
string |
No |
The ID of the API to be associated. |
8afff6c8c4c6447abb035812e4d66b65 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
EF924FE4-2EDD-4CD3-89EC-34E4708574E7 |
Examples
Success response
JSON format
{
"RequestId": "EF924FE4-2EDD-4CD3-89EC-34E4708574E7"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.