Modifies the definition of a backend service in an environment. This operation updates the backend addresses of all APIs that use this backend service and are published in the environment in a batch. You do not need to republish the APIs.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apigateway:ModifyBackendModel |
update |
*Backend
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BackendId |
string |
No |
The backend ID. |
20bcdc9453524b78a8beb1f6de21edb7 |
| BackendType |
string |
No |
The backend type. |
OSS |
| StageName |
string |
No |
The API environment. Valid values:
|
TEST |
| BackendModelId |
string |
No |
The backend model ID. |
3bb6375bc71c4e4c95ce05b4e7a55a9d |
| BackendModelData |
string |
No |
The backend model data. |
{\"ServiceAddress\":\"http://121.40.XX.XX\"} |
| Description |
string |
No |
The description of the backend model definition. |
modify plugin first |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
19B89B04-418B-55EE-94A8-6B42CA06002A |
| OperationId |
string |
The operation ID. |
c16a1880f5164d779f6a54f64d997cd9 |
Examples
Success response
JSON format
{
"RequestId": "19B89B04-418B-55EE-94A8-6B42CA06002A",
"OperationId": "c16a1880f5164d779f6a54f64d997cd9"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.