Parameter | Required | Description |
Function | Yes | Select the namespace, name, and version of the response body modification function. |
Backend timeout | Yes | Set the backend timeout that API Gateway forwards the request to the function that is used to modify the response body. The maximum time limit is 30 minutes. When no response is returned before the timeout after API Gateway calls the function, API Gateway will end the call and return an error message. |
Custom content | Yes | Set the response content sent by API Gateway to the function used to modify the response body. You can select Header, Body, and Query. The response content not selected will not be modified and will be forwarded to the client as is. |
Base64 Encoding | Yes | Specify whether to Base64-encode the response content to be forwarded by the service backend to the function. Generally, it is applicable to binary content. |
Parameter | Required | Description |
Request method | Yes | Request method of the custom response body function, which can be GET, POST, PUT, DELETE, HEAD, and ANY. |
Public network service | Yes | Access address of the custom response body rewriting service, which can be an HTTP or HTTPS address. |
Path match mode | Yes | It can be backend path or full path match. Backend path match: The configured path is used to request the service. Full path match: The overlapping part is used to request the service. For example, if the configured API path is `/a/` and the request path is `/a/b`, then the path transferred to the service will be `/b` after full path match is enabled. |
Parameter | Required | Description |
VPC | Yes | Select the VPC of the response body rewriting service. |
Request method | Yes | Request method of the response body rewriting function, which can be GET, POST, PUT, DELETE, HEAD, and ANY. |
Backend address | Yes | Access address of the response body rewriting service, which can be an HTTP or HTTPS address. |
{"endpoint_timeout":15, // Backend timeout period in seconds. Value range: 0–60"func_name":"test_name", // Custom SCF name"func_namespace":"test_namespace", // Custom SCF namespace"func_qualifier":"$LATEST", // Custom SCF version"is_base64_encoded":true, // Whether to Base64-encode the response content to be forwarded by the service backend to the SCF"is_custom_status":true, // Whether to send the response status code content to the SCF"is_custom_headers":true, // Whether to send the response Header content to the SCF"is_custom_body":true, // Whether to send the response Body content to the SCF"user_id":1253970226 // appid}
Was this page helpful?