Creates a provisioned configuration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:PutProvisionConfig |
create |
*All Resource
|
None | None |
Request syntax
PUT /2023-03-30/functions/{functionName}/provision-config HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| functionName |
string |
Yes |
The function name. |
my-func |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| qualifier |
string |
No |
The function alias. |
prod |
| body | PutProvisionConfigInput |
Yes |
The provisioned configuration. |
Response elements
|
Element |
Type |
Description |
Example |
| ProvisionConfig |
The provisioned configuration. |
Examples
Success response
JSON format
{
"scheduledActions": [
{
"endTime": "2024-03-10T10:10:10Z",
"name": "test_1",
"scheduleExpression": "cron(0 0 22 * * *)",
"startTime": "2023-03-10T10:10:10Z",
"target": 50,
"timeZone": "Asia/Shanghai"
}
],
"currentError": "image not found",
"defaultTarget": 5,
"current": 1,
"alwaysAllocateCPU": true,
"alwaysAllocateGPU": true,
"targetTrackingPolicies": [
{
"endTime": "2024-03-10T10:10:10Z",
"maxCapacity": 10,
"metricTarget": 0.6,
"metricType": "CPUUtilization",
"minCapacity": 1,
"name": "test_1",
"startTime": "2023-03-10T10:10:10Z",
"timeZone": "Asia/Shanghai"
}
],
"functionArn": "acs:fc:cn-shanghai:124:functions/myFunction/prod",
"target": 5
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.