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
Parameter | Description |
---|---|
functionId | Required. ID of the function to retrieve scaling policies for. To get a function ID, make a list request. |
Query parameters
Parameter | Description |
---|---|
pageSize | The maximum number of results per page that should be returned. If the number of available results is larger than Default value: 100. Acceptable values are 0 to 1000, inclusive. |
pageToken | Page token. To get the next page of results, set The maximum string length in characters is 100. |
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[] | object Set of relevant scaling policies. |
scalingPolicies[]. functionId |
string ID of the function that the scaling policy belongs to. |
scalingPolicies[]. tag |
string Tag of the version that the scaling policy belongs to. For details, see Version tag. |
scalingPolicies[]. createdAt |
string (date-time) Creation timestamp for the scaling policy String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
scalingPolicies[]. modifiedAt |
string (date-time) Modification timestamp for the scaling policy String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
scalingPolicies[]. provisionedInstancesCount |
string (int64) Minimum guaranteed provisioned instances count for all zones in total. Billed separately. |
scalingPolicies[]. zoneInstancesLimit |
string (int64) Upper limit for instance count in each zone. 0 means no limit. |
scalingPolicies[]. zoneRequestsLimit |
string (int64) Upper limit of requests count in each zone. 0 means no limit. |
nextPageToken | string Token for getting the next page of the list. If the number of results is greater than the specified pageSize, use Each subsequent page will have its own |