Cloud Functions Service, REST: Function.ListScalingPolicies
Lists existing scaling policies for specified function
HTTP request
GET https://serverless-functions.api.cloud.yandex.net/functions/v1/functions/{functionId}/scalingPolicies
Path parameters
|
Field |
Description |
|
functionId |
string Required field. ID of the function to retrieve scaling policies for. To get a function ID, make a FunctionService.List request. |
Query parameters
|
Field |
Description |
|
pageSize |
string (int64) The maximum number of results per page that should be returned. If the number of available Default value: 100. |
|
pageToken |
string Page token. To get the next page of results, set |
Response
HTTP Code: 200 - OK
{
"scalingPolicies": [
{
"functionId": "string",
"tag": "string",
"createdAt": "string",
"modifiedAt": "string",
"provisionedInstancesCount": "string",
"zoneInstancesLimit": "string",
"zoneRequestsLimit": "string"
}
],
"nextPageToken": "string"
}
|
Field |
Description |
|
scalingPolicies[] |
Set of relevant scaling policies. |
|
nextPageToken |
string Token for getting the next page of the list. If the number of results is greater than Each subsequent page will have its own |
ScalingPolicy
|
Field |
Description |
|
functionId |
string ID of the function that the scaling policy belongs to. |
|
tag |
string Tag of the version that the scaling policy belongs to. For details, see Version tag. |
|
createdAt |
string (date-time) Creation timestamp for the scaling policy String in RFC3339 To work with values in this field, use the APIs described in the |
|
modifiedAt |
string (date-time) Modification timestamp for the scaling policy String in RFC3339 To work with values in this field, use the APIs described in the |
|
provisionedInstancesCount |
string (int64) Minimum guaranteed provisioned instances count for all zones in total. |
|
zoneInstancesLimit |
string (int64) Upper limit for instance count in each zone. |
|
zoneRequestsLimit |
string (int64) Upper limit of requests count in each zone. |