Unpublishes a specified API from a specified runtime environment.
Operation description
This operation is intended for API providers and is the opposite of DeployApi.
An API can be unpublished from a specified runtime environment in under 5 seconds.
An unpublished API cannot be called in the specified runtime environment.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apigateway:AbolishApi |
update |
*ApiGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GroupId |
string |
No |
The ID of the API group. |
123 |
| ApiId |
string |
Yes |
The ID of the specified API. |
d6f679aeb3be4b91b3688e887ca1fe16 |
| StageName |
string |
Yes |
The name of the runtime environment. Valid values:
|
RELEASE |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
CEF72CEB-54B6-4AE8-B225-F876FF7BZ016 |
Examples
Success response
JSON format
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BZ016"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.