Serverless Containers Service, REST: Container.getRevision
Returns the specified revision of a container.
To get the list of available revision, make a listRevisions request.
HTTP request
GET https://serverless-containers.api.cloud.yandex.net/containers/v1/revisions/{containerRevisionId}
Path parameters
Parameter | Description |
---|---|
containerRevisionId | Required. ID of the revision to return. To get a revision ID make a listRevisions request. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"containerId": "string",
"description": "string",
"createdAt": "string",
"image": {
"imageUrl": "string",
"imageDigest": "string",
"command": {
"command": [
"string"
]
},
"args": {
"args": [
"string"
]
},
"environment": "object",
"workingDir": "string"
},
"resources": {
"memory": "string",
"cores": "string",
"coreFraction": "string"
},
"executionTimeout": "string",
"concurrency": "string",
"serviceAccountId": "string",
"status": "string",
"secrets": [
{
"id": "string",
"versionId": "string",
"key": "string",
"environmentVariable": "string"
}
],
"connectivity": {
"networkId": "string",
"subnetIds": [
"string"
]
},
"provisionPolicy": {
"minInstances": "string"
},
"scalingPolicy": {
"zoneInstancesLimit": "string",
"zoneRequestsLimit": "string"
},
"logOptions": {
"disabled": true,
"minLevel": "string",
// `logOptions` includes only one of the fields `logGroupId`, `folderId`
"logGroupId": "string",
"folderId": "string",
// end of the list of possible fields`logOptions`
}
}
Field | Description |
---|---|
id | string ID of the revision. |
containerId | string ID of the container that the revision belongs to. |
description | string Description of the revision. |
createdAt | string (date-time) Creation timestamp for the revision. 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). |
image | object Image configuration for the revision. Revision image specification. |
image. imageUrl |
string Image URL, that is used by the revision. |
image. imageDigest |
string Digest of the image. Calculated at creation time. |
image. command |
object Override for the image's ENTRYPOINT. |
image. command. command[] |
string Command that will override ENTRYPOINT of an image. Commands will be executed as is. The runtime will not substitute environment variables or execute shell commands. If one wants to do that, they should invoke shell interpreter with an appropriate shell script. |
image. args |
object Override for the image's CMD. |
image. args. args[] |
string Arguments that will override CMD of an image. Arguments will be passed as is. The runtime will not substitute environment variables or execute shell commands. If one wants to do that, they should invoke shell interpreter with an appropriate shell script. |
image. environment |
object Additional environment for the container. Each key must match the regular expression |
image. workingDir |
string Override for the image's WORKDIR. |
resources | object Resources allocated to the revision. Resources allocated to a revision. |
resources. memory |
string (int64) Amount of memory available to the revision, specified in bytes. Acceptable values are 134217728 to 4294967296, inclusive. |
resources. cores |
string (int64) Number of cores available to the revision. Acceptable values are 0 to 1, inclusive. |
resources. coreFraction |
string (int64) Specifies baseline performance for a core in percent. Acceptable values are 0 to 100, inclusive. |
executionTimeout | string Timeout for the execution of the revision. If the timeout is exceeded, Serverless Containers responds with a 504 HTTP code. |
concurrency | string (int64) The number of concurrent requests allowed per container instance. |
serviceAccountId | string ID of the service account associated with the revision. |
status | string Status of the revision.
|
secrets[] | object Yandex Lockbox secrets to be used by the revision. |
secrets[]. id |
string ID of Yandex Lockbox secret. |
secrets[]. versionId |
string ID of Yandex Lockbox secret. |
secrets[]. key |
string Key in secret's payload, which value to be delivered into container environment. |
secrets[]. environmentVariable |
string Environment variable in which secret's value is delivered. |
connectivity | object Network access. If specified the revision will be attached to specified network/subnet(s). Revision connectivity specification. |
connectivity. networkId |
string Network the revision will have access to. |
connectivity. subnetIds[] |
string The list of subnets (from the same network) the revision can be attached to. Deprecated, it is sufficient to specify only network_id, without the list of subnet_ids. The string length in characters for each value must be greater than 0. |
provisionPolicy | object Policy for provisioning instances of the revision. The policy is only applied when the revision is ACTIVE. |
provisionPolicy. minInstances |
string (int64) Minimum number of guaranteed provisioned container instances for all zones in total. |
scalingPolicy | object Policy for scaling instances of the revision. |
scalingPolicy. zoneInstancesLimit |
string (int64) Upper limit for instance count in each zone. 0 means no limit. |
scalingPolicy. zoneRequestsLimit |
string (int64) Upper limit of requests count in each zone. 0 means no limit. |
logOptions | object Options for logging from the container. |
logOptions. disabled |
boolean (boolean) Is logging from container disabled. |
logOptions. minLevel |
string Minimum log entry level. See [LogLevel.Level] for details.
|
logOptions. logGroupId |
string logOptions includes only one of the fields logGroupId , folderId Entry should be written to log group resolved by ID. Value must match the regular expression |
logOptions. folderId |
string logOptions includes only one of the fields logGroupId , folderId Entry should be written to default log group for specified folder. Value must match the regular expression |