Creates function rules.
Authorization information
Request syntax
PUT /2021-04-06/services/{serviceName}/functions/{functionName}/on-demand-config
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
serviceName | string | Yes | The description of the resource. | demo-service |
functionName | string | Yes | The body of the request. | demo-function |
qualifier | string | Yes | The trace ID of the request for Function Compute API, which is also the unique ID of the request. | prod |
body | object | No | If the ETag specified in the request matches the ETag value of the OndemandConfig, FC returns 200 OK. If the ETag specified in the request does not match the ETag value of the object, FC returns 412 Precondition Failed. | |
maximumInstanceCount | long | Yes | The maximum number of instances. | 10 |
If-Match | string | No | The name of the service. | e19d5cd5af0378da05f63f891c7467af |
X-Fc-Account-Id | string | No | The ID of your Alibaba Cloud account. | 188077086902**** |
X-Fc-Date | string | No | Example 1 | Wed, 11 May 2022 09:00:00 GMT |
X-Fc-Trace-Id | string | No | Creates function rules. | r9s89isisi**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"resource": "12345#servierName#qualifier#functionName",
"maximumInstanceCount": 10
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2021-06-30 | The internal configurations of the API operation change but you can still call the operation. | |||||||||||||||
| ||||||||||||||||
2021-06-30 | The input parameters of the API operation change. | |||||||||||||||
| ||||||||||||||||
2021-06-30 | The input parameters of the API operation change. | |||||||||||||||
| ||||||||||||||||
2021-06-30 | The input parameters of the API operation change. | |||||||||||||||
|