Deletes a route from a gateway.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:DeleteGatewayRoute |
delete |
*Gateway
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RouteId |
string |
No |
The ID of the route. |
252 |
| GatewayUniqueId |
string |
No |
The unique ID of the gateway. |
gw-492af9b04bb4474cae9d645be850e3d7 |
| AcceptLanguage |
string |
No |
The language of the response. Valid values:
|
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data structure. |
||
| RequestId |
string |
The ID of the request. |
ADDD8AB7-8D1C-4697-A83E-410D2607**** |
| HttpStatusCode |
integer |
The HTTP status code returned. |
200 |
| Message |
string |
The message returned. |
The request is successfully processed. |
| Code |
integer |
The HTTP status code returned. |
200 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Data |
object |
The data returned. |
|
| Id |
integer |
The ID. |
12 |
| Name |
string |
The name. |
test |
| GatewayUniqueId |
string |
The unique ID of the gateway. |
gw-5017305290e14cebbrvec4a5**** |
| GatewayId |
integer |
The ID of the gateway. |
125 |
| Predicates |
string |
The matching rules. |
{\"PathPredicates\":{\"Path\":\"/metas\",\"Type\":\"PRE\",\"IgnoreCase\":false}} |
| DefaultServiceId |
integer |
The default service ID. |
1 |
| RouteOrder |
integer |
The sequence number of the route. |
1 |
| Status |
integer |
The status of the route. Valid values:
|
2 |
| GmtCreate |
string |
The creation time. |
2022-01-07 18:07:57 |
| GmtModified |
string |
The modification time. |
2021-12-30T06:41:52.000+0000 |
Examples
Success response
JSON format
{
"RequestId": "ADDD8AB7-8D1C-4697-A83E-410D2607****",
"HttpStatusCode": 200,
"Message": "The request is successfully processed.\n",
"Code": 200,
"Success": true,
"Data": {
"Id": 12,
"Name": "test",
"GatewayUniqueId": "gw-5017305290e14cebbrvec4a5****",
"GatewayId": 125,
"Predicates": "{\\\"PathPredicates\\\":{\\\"Path\\\":\\\"/metas\\\",\\\"Type\\\":\\\"PRE\\\",\\\"IgnoreCase\\\":false}}",
"DefaultServiceId": 1,
"RouteOrder": 1,
"Status": 2,
"GmtCreate": "2022-01-07 18:07:57",
"GmtModified": "2021-12-30T06:41:52.000+0000"
}
}
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.