Description
The configurations of Function Compute as a backend service.
Node
FunctionComputeConfig
Subnode
HTTP functions
Parameter | Type | Required | Description | Example |
fcRegionId | String | Yes | The region in which Function Compute resides. | cn-hangzhou |
fcType | String | Yes | The function type. | HttpTrigger |
method | String | Yes | The HTTP method. | GET |
path | String | Yes | The backend request path. | /test/api |
fcBaseUrl | String | Yes | The trigger path. | https://122746XXXX.cn-hangzhou-internal.fc.aliyuncs.com/2016-08-15/proxy/testService2.LATEST/testHttpTrigger/ |
onlyBusinessPath | Boolean | No | Specifies whether to receive only the business path. | FALSE |
fcVersion | String | Yes | The Function Compute version. | 2.0 |
contentTypeCatagory | String | No | The ContentType header that is used if the ServiceProtocol parameter is set to HTTP. Valid values:
| DEFAULT |
contentTypeValue | String | No | The value of the ContentType header when you set the ServiceProtocol property to HTTP and the ContentTypeCatagory property to DEFAULT or CUSTOM. | application/x-www-form-urlencoded; charset=UTF-8 |
roleArn | String | No | The Alibaba Cloud Resource Name (ARN) of the RAM role to be assumed by API Gateway to access Function Compute. | acs:ram::12274XXXXX:role/aliyunserviceroleforapigateway |
Event functions
Parameter | Type | Required | Description | Example |
fcRegionId | String | Yes | The region in which Function Compute resides. | cn-hangzhou |
fcType | String | Yes | The function type. | FCEvent |
method | String | No | HTTP Method | GET |
functionName | String | Yes | The function name that is defined in Function Compute. | fc-mobile |
serviceName | String | Yes | The service name that is defined in Function Compute. | apitest |
qualifier | String | Yes | The function alias. | LATEST |
path | String | No | The backend request path. | / |
fcVersion | String | Yes | The Function Compute version. | 2.0 |
roleArn | String | Yes | The Alibaba Cloud Resource Name (ARN) of the RAM role to be assumed by API Gateway to access Function Compute. | acs:ram::XXX:role/aliyunserviceroleforapigateway |