Method getVersion
Returns the specified version of a function.
To get the list of available version, make a listVersions request.
HTTP request
GET https://serverless-functions.api.cloud.yandex.net/functions/v1/versions/{functionVersionId}
Path parameters
Parameter | Description |
---|---|
functionVersionId | Required. ID of the version to return. To get a version ID make a listVersions request. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"functionId": "string",
"description": "string",
"createdAt": "string",
"runtime": "string",
"entrypoint": "string",
"resources": {
"memory": "string"
},
"executionTimeout": "string",
"serviceAccountId": "string",
"imageSize": "string",
"status": "string",
"tags": [
"string"
],
"logGroupId": "string",
"environment": "object",
"connectivity": {
"networkId": "string",
"subnetId": [
"string"
]
}
}
Version of a function. For details about the concept, see Function versions.
Field | Description |
---|---|
id | string ID of the version. |
functionId | string ID of the function that the version belongs to. |
description | string Description of the version. The string length in characters must be 0-256. |
createdAt | string (date-time) Creation timestamp for the version. String in RFC3339 text format. |
runtime | string ID of the runtime environment for the function. Supported environments and their identifiers are listed in the Runtime environments. |
entrypoint | string Entrypoint for the function: the name of the function to be called as the handler. Specified in the format |
resources | object Resources allocated to the version. Resources allocated to a version. |
resources. memory |
string (int64) Amount of memory available to the version, specified in bytes. Acceptable values are 134217728 to 2147483648, inclusive. |
executionTimeout | string Timeout for the execution of the version. If the timeout is exceeded, Cloud Functions responds with a 504 HTTP code. |
serviceAccountId | string ID of the service account associated with the version. |
imageSize | string (int64) Final size of the deployment package after unpacking. |
status | string Status of the version.
|
tags[] | string Version tags. For details, see Version tag. |
logGroupId | string ID of the log group for the version. |
environment | object Environment settings for the version. |
connectivity | object Network access. If specified the version will be attached to specified network/subnet(s). Version connectivity specification. |
connectivity. networkId |
string Network the version will have access to. It's essential to specify network with subnets in all availability zones. |
connectivity. subnetId[] |
string Complete list of subnets (from the same network) the version can be attached to. It's essential to specify at least one subnet for each availability zones. |