Serverless Containers Service, gRPC: ContainerService
A set of methods for managing serverless containers.
Call | Description |
---|---|
Get | Returns the specified container. |
List | Retrieves the list of containers in the specified folder. |
Create | Creates a container in the specified folder. |
Update | Updates the specified container. |
Delete | Deletes the specified container. |
DeployRevision | Deploys a revision for the specified container. |
Rollback | Rollback the specified container to an old revision. |
GetRevision | Returns the specified revision of a container. |
ListRevisions | Retrieves the list of revisions for the specified container, or of all container revisions in the specified folder. |
ListOperations | Lists operations for the specified container. |
ListAccessBindings | Lists existing access bindings for the specified container. |
SetAccessBindings | Sets access bindings for the container. |
UpdateAccessBindings | Updates access bindings for the specified container. |
Calls ContainerService
Get
Returns the specified container.
To get the list of all available containers, make a List request.
rpc Get (GetContainerRequest) returns (Container)
GetContainerRequest
Field | Description |
---|---|
container_id | string Required. ID of the container to return. To get a container ID make a ContainerService.List request. |
Container
Field | Description |
---|---|
id | string ID of the container. Generated at creation time. |
folder_id | string ID of the folder that the container belongs to. |
created_at | google.protobuf.Timestamp Creation timestamp for the container. |
name | string Name of the container. The name is unique within the folder. |
description | string Description of the container. |
labels | map<string,string> Container labels as key:value pairs. |
url | string URL that needs to be requested to call the container. |
status | enum Status Status of the container.
|
List
Retrieves the list of containers in the specified folder.
rpc List (ListContainersRequest) returns (ListContainersResponse)
ListContainersRequest
Field | Description |
---|---|
folder_id | string Required. ID of the folder to list containers in. To get a folder ID make a yandex.cloud.resourcemanager.v1.FolderService.List request. |
page_size | int64 The maximum number of results per page to return. If the number of available results is larger than pageSize , the service returns a ListContainersResponse.next_page_token that can be used to get the next page of results in subsequent list requests. Default value: 100. |
page_token | string Page token. To get the next page of results, set pageToken to the ListContainersResponse.next_page_token returned by a previous list request. |
filter | string A filter expression that filters containers listed in the response. The expression must specify:
name="my-container" . |
ListContainersResponse
Field | Description |
---|---|
containers[] | Container List of containers in the specified folder. |
next_page_token | string Token for getting the next page of the list. If the number of results is greater than the specified ListContainersRequest.page_size, use nextPageToken as the value for the ListContainersRequest.page_token parameter in the next list request. Each subsequent page will have its own nextPageToken to continue paging through the results. |
Container
Field | Description |
---|---|
id | string ID of the container. Generated at creation time. |
folder_id | string ID of the folder that the container belongs to. |
created_at | google.protobuf.Timestamp Creation timestamp for the container. |
name | string Name of the container. The name is unique within the folder. |
description | string Description of the container. |
labels | map<string,string> Container labels as key:value pairs. |
url | string URL that needs to be requested to call the container. |
status | enum Status Status of the container.
|
Create
Creates a container in the specified folder.
rpc Create (CreateContainerRequest) returns (operation.Operation)
Metadata and response of Operation:
Operation.metadata:CreateContainerMetadata
Operation.response:Container
CreateContainerRequest
Field | Description |
---|---|
folder_id | string Required. ID of the folder to create a container in. To get a folder ID make a yandex.cloud.resourcemanager.v1.FolderService.List request. |
name | string Name of the container. The name must be unique within the folder. Value must match the regular expression |[a-z][-a-z0-9]{1,61}[a-z0-9] . |
description | string Description of the container. The maximum string length in characters is 256. |
labels | map<string,string> Resource labels as key:value pairs. No more than 64 per resource. The maximum string length in characters for each value is 63. Each value must match the regular expression [-_./\\@0-9a-z]* . The string length in characters for each key must be 1-63. Each key must match the regular expression [a-z][-_./\\@0-9a-z]* . |
Operation
Field | Description |
---|---|
id | string ID of the operation. |
description | string Description of the operation. 0-256 characters long. |
created_at | google.protobuf.Timestamp Creation timestamp. |
created_by | string ID of the user or service account who initiated the operation. |
modified_at | google.protobuf.Timestamp The time when the Operation resource was last modified. |
done | bool If the value is false , it means the operation is still in progress. If true , the operation is completed, and either error or response is available. |
metadata | google.protobuf.Any Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any. |
result | oneof: error or response The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true , exactly one of error or response is set. |
error | google.rpc.Status The error result of the operation in case of failure or cancellation. |
response | google.protobuf.Any if operation finished successfully. |
CreateContainerMetadata
Field | Description |
---|---|
container_id | string ID of the container that is being created. |
Container
Field | Description |
---|---|
id | string ID of the container. Generated at creation time. |
folder_id | string ID of the folder that the container belongs to. |
created_at | google.protobuf.Timestamp Creation timestamp for the container. |
name | string Name of the container. The name is unique within the folder. |
description | string Description of the container. |
labels | map<string,string> Container labels as key:value pairs. |
url | string URL that needs to be requested to call the container. |
status | enum Status Status of the container.
|
Update
Updates the specified container.
rpc Update (UpdateContainerRequest) returns (operation.Operation)
Metadata and response of Operation:
Operation.metadata:UpdateContainerMetadata
Operation.response:Container
UpdateContainerRequest
Field | Description |
---|---|
container_id | string Required. ID of the container to update. To get a container ID make a ContainerService.List request. |
update_mask | google.protobuf.FieldMask Field mask that specifies which attributes of the container should be updated. |
name | string New name for the container. The name must be unique within the folder. Value must match the regular expression |[a-z][-a-z0-9]{1,61}[a-z0-9] . |
description | string New description for the container. The maximum string length in characters is 256. |
labels | map<string,string> Container labels as key:value pairs. Existing set of labels is completely replaced by the provided set, so if you just want to add or remove a label, request the current set of labels with a ContainerService.Get request. No more than 64 per resource. The maximum string length in characters for each value is 63. Each value must match the regular expression [-_./\\@0-9a-z]* . The string length in characters for each key must be 1-63. Each key must match the regular expression [a-z][-_./\\@0-9a-z]* . |
Operation
Field | Description |
---|---|
id | string ID of the operation. |
description | string Description of the operation. 0-256 characters long. |
created_at | google.protobuf.Timestamp Creation timestamp. |
created_by | string ID of the user or service account who initiated the operation. |
modified_at | google.protobuf.Timestamp The time when the Operation resource was last modified. |
done | bool If the value is false , it means the operation is still in progress. If true , the operation is completed, and either error or response is available. |
metadata | google.protobuf.Any Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any. |
result | oneof: error or response The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true , exactly one of error or response is set. |
error | google.rpc.Status The error result of the operation in case of failure or cancellation. |
response | google.protobuf.Any if operation finished successfully. |
UpdateContainerMetadata
Field | Description |
---|---|
container_id | string ID of the container that is being updated. |
Container
Field | Description |
---|---|
id | string ID of the container. Generated at creation time. |
folder_id | string ID of the folder that the container belongs to. |
created_at | google.protobuf.Timestamp Creation timestamp for the container. |
name | string Name of the container. The name is unique within the folder. |
description | string Description of the container. |
labels | map<string,string> Container labels as key:value pairs. |
url | string URL that needs to be requested to call the container. |
status | enum Status Status of the container.
|
Delete
Deletes the specified container.
rpc Delete (DeleteContainerRequest) returns (operation.Operation)
Metadata and response of Operation:
Operation.metadata:DeleteContainerMetadata
Operation.response:google.protobuf.Empty
DeleteContainerRequest
Field | Description |
---|---|
container_id | string Required. ID of the container to delete. To get a container ID make a ContainerService.List request. |
Operation
Field | Description |
---|---|
id | string ID of the operation. |
description | string Description of the operation. 0-256 characters long. |
created_at | google.protobuf.Timestamp Creation timestamp. |
created_by | string ID of the user or service account who initiated the operation. |
modified_at | google.protobuf.Timestamp The time when the Operation resource was last modified. |
done | bool If the value is false , it means the operation is still in progress. If true , the operation is completed, and either error or response is available. |
metadata | google.protobuf.Any Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any. |
result | oneof: error or response The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true , exactly one of error or response is set. |
error | google.rpc.Status The error result of the operation in case of failure or cancellation. |
response | google.protobuf.Any if operation finished successfully. |
DeleteContainerMetadata
Field | Description |
---|---|
container_id | string ID of the container that is being deleted. |
DeployRevision
Deploys a revision for the specified container.
rpc DeployRevision (DeployContainerRevisionRequest) returns (operation.Operation)
Metadata and response of Operation:
Operation.metadata:DeployContainerRevisionMetadata
Operation.response:Revision
DeployContainerRevisionRequest
Field | Description |
---|---|
container_id | string Required. ID of the container to create a revision for. To get a container ID, make a ContainerService.List request. |
description | string Description of the revision. |
resources | Resources Required. Resources allocated to the revision. |
execution_timeout | google.protobuf.Duration Timeout for the execution of the revision. If the timeout is exceeded, Serverless Containers responds with a 504 HTTP code. The maximum value is 600s. |
service_account_id | string ID of the service account to associate with the revision. |
image_spec | ImageSpec Required. Image configuration for the revision. |
concurrency | int64 The number of concurrent requests allowed per container instance. The default value is 1. |
secrets[] | Secret Yandex Lockbox secrets to be used by the revision. |
connectivity | Connectivity Network access. If specified the revision will be attached to specified network/subnet(s). |
provision_policy | ProvisionPolicy Policy for provisioning instances of the revision. The policy is only applied when the revision is ACTIVE. |
scaling_policy | ScalingPolicy Policy for scaling instances of the revision. |
log_options | LogOptions Options for logging from the container. |
storage_mounts[] | StorageMount S3 mounts to be used by the revision. |
mounts[] | Mount Mounts to be used by the revision. |
Resources
Field | Description |
---|---|
memory | int64 Amount of memory available to the revision, specified in bytes, multiple of 128MB. Acceptable values are 134217728 to 8589934592, inclusive. |
cores | int64 Number of cores available to the revision. Acceptable values are 0 to 4, inclusive. |
core_fraction | int64 Specifies baseline performance for a core in percent, multiple of 5%. Should be 100% for cores > 1. Acceptable values are 0 to 100, inclusive. |
ImageSpec
Field | Description |
---|---|
image_url | string Required. Image URL, that is used by the revision. |
command | Command Override for the image's ENTRYPOINT. |
args | Args Override for the image's CMD. |
environment | map<string,string> Additional environment for the container. The maximum string length in characters for each value is 4096. Each key must match the regular expression [a-zA-Z][a-zA-Z0-9_]* . |
working_dir | string Override for the image's WORKDIR. |
Command
Field | Description |
---|---|
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. |
Args
Field | Description |
---|---|
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. |
Secret
Field | Description |
---|---|
id | string ID of Yandex Lockbox secret. |
version_id | string ID of Yandex Lockbox secret. |
key | string Key in secret's payload, which value to be delivered into container environment. |
reference | oneof: environment_variable |
environment_variable | string Environment variable in which secret's value is delivered. |
Connectivity
Field | Description |
---|---|
network_id | string Network the revision will have access to. |
subnet_ids[] | 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
Field | Description |
---|---|
min_instances | int64 Minimum number of guaranteed provisioned container instances for all zones in total. |
ScalingPolicy
Field | Description |
---|---|
zone_instances_limit | int64 Upper limit for instance count in each zone. 0 means no limit. |
zone_requests_limit | int64 Upper limit of requests count in each zone. 0 means no limit. |
LogOptions
Field | Description |
---|---|
disabled | bool Is logging from container disabled. |
destination | oneof: log_group_id or folder_id Log entries destination. |
log_group_id | string Entry should be written to log group resolved by ID. Value must match the regular expression ([a-zA-Z][-a-zA-Z0-9_.]{0,63})? . |
folder_id | string Entry should be written to default log group for specified folder. Value must match the regular expression ([a-zA-Z][-a-zA-Z0-9_.]{0,63})? . |
min_level | yandex.cloud.logging.v1.LogLevel.Level Minimum log entry level. See [LogLevel.Level] for details. |
StorageMount
Field | Description |
---|---|
bucket_id | string Required. S3 bucket name for mounting. The string length in characters must be 3-63. Value must match the regular expression [-.0-9a-zA-Z]* . |
prefix | string S3 bucket prefix for mounting. |
read_only | bool Is mount read only. |
mount_point_path | string Required. Mount point path inside the container for mounting. The string length in characters must be 1-300. Value must match the regular expression [-_0-9a-zA-Z/]* . |
Mount
Field | Description |
---|---|
mount_point_path | string Required. The absolute mount point path inside the container for mounting. The string length in characters must be 1-300. Value must match the regular expression [-_0-9a-zA-Z/]* . |
mode | enum Mode Mount's mode |
target | oneof: object_storage or ephemeral_disk_spec Target mount option |
object_storage | ObjectStorage Object storage mounts |
ephemeral_disk_spec | DiskSpec Working disk (worker-local non-shared read-write NBS disk templates) |
ObjectStorage
Field | Description |
---|---|
bucket_id | string Required. ObjectStorage bucket name for mounting. The string length in characters must be 3-63. Value must match the regular expression [-.0-9a-zA-Z]* . |
prefix | string ObjectStorage bucket prefix for mounting. |
DiskSpec
Field | Description |
---|---|
size | int64 The size of disk for mount in bytes Value must be greater than 0. |
block_size | int64 Optional block size of disk for mount in bytes |
Operation
Field | Description |
---|---|
id | string ID of the operation. |
description | string Description of the operation. 0-256 characters long. |
created_at | google.protobuf.Timestamp Creation timestamp. |
created_by | string ID of the user or service account who initiated the operation. |
modified_at | google.protobuf.Timestamp The time when the Operation resource was last modified. |
done | bool If the value is false , it means the operation is still in progress. If true , the operation is completed, and either error or response is available. |
metadata | google.protobuf.Any Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any. |
result | oneof: error or response The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true , exactly one of error or response is set. |
error | google.rpc.Status The error result of the operation in case of failure or cancellation. |
response | google.protobuf.Any if operation finished successfully. |
DeployContainerRevisionMetadata
Field | Description |
---|---|
container_revision_id | string ID of the revision that is being created. |
Revision
Field | Description |
---|---|
id | string ID of the revision. |
container_id | string ID of the container that the revision belongs to. |
description | string Description of the revision. |
created_at | google.protobuf.Timestamp Creation timestamp for the revision. |
image | Image Image configuration for the revision. |
resources | Resources Resources allocated to the revision. |
execution_timeout | google.protobuf.Duration Timeout for the execution of the revision. If the timeout is exceeded, Serverless Containers responds with a 504 HTTP code. |
concurrency | int64 The number of concurrent requests allowed per container instance. |
service_account_id | string ID of the service account associated with the revision. |
status | enum Status Status of the revision.
|
secrets[] | Secret Yandex Lockbox secrets to be used by the revision. |
connectivity | Connectivity Network access. If specified the revision will be attached to specified network/subnet(s). |
provision_policy | ProvisionPolicy Policy for provisioning instances of the revision. The policy is only applied when the revision is ACTIVE. |
scaling_policy | ScalingPolicy Policy for scaling instances of the revision. |
log_options | LogOptions Options for logging from the container. |
storage_mounts[] | StorageMount S3 mounts to be used by the revision. |
mounts[] | Mount Mounts to be used by the revision. |
Image
Field | Description |
---|---|
image_url | string Image URL, that is used by the revision. |
image_digest | string Digest of the image. Calculated at creation time. |
command | Command Override for the image's ENTRYPOINT. |
args | Args Override for the image's CMD. |
environment | map<string,string> Additional environment for the container. The maximum string length in characters for each value is 4096. Each key must match the regular expression [a-zA-Z][a-zA-Z0-9_]* . |
working_dir | string Override for the image's WORKDIR. |
Rollback
Rollback the specified container to an old revision.
rpc Rollback (RollbackContainerRequest) returns (operation.Operation)
Metadata and response of Operation:
Operation.metadata:RollbackContainerMetadata
Operation.response:Container
RollbackContainerRequest
Field | Description |
---|---|
container_id | string Required. ID of the container to rollback to an old revision. To get a container ID, make a ContainerService.List request. |
revision_id | string Required. ID of the revision to rollback to. To get a revision ID make a ContainerService.ListRevisions request. |
Operation
Field | Description |
---|---|
id | string ID of the operation. |
description | string Description of the operation. 0-256 characters long. |
created_at | google.protobuf.Timestamp Creation timestamp. |
created_by | string ID of the user or service account who initiated the operation. |
modified_at | google.protobuf.Timestamp The time when the Operation resource was last modified. |
done | bool If the value is false , it means the operation is still in progress. If true , the operation is completed, and either error or response is available. |
metadata | google.protobuf.Any Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any. |
result | oneof: error or response The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true , exactly one of error or response is set. |
error | google.rpc.Status The error result of the operation in case of failure or cancellation. |
response | google.protobuf.Any if operation finished successfully. |
RollbackContainerMetadata
Field | Description |
---|---|
container_id | string ID of the container that is being rolled back. |
revision_id | string ID of the revision that the container is being rolled back to. |
Container
Field | Description |
---|---|
id | string ID of the container. Generated at creation time. |
folder_id | string ID of the folder that the container belongs to. |
created_at | google.protobuf.Timestamp Creation timestamp for the container. |
name | string Name of the container. The name is unique within the folder. |
description | string Description of the container. |
labels | map<string,string> Container labels as key:value pairs. |
url | string URL that needs to be requested to call the container. |
status | enum Status Status of the container.
|
GetRevision
Returns the specified revision of a container.
To get the list of available revision, make a ListRevisions request.
rpc GetRevision (GetContainerRevisionRequest) returns (Revision)
GetContainerRevisionRequest
Field | Description |
---|---|
container_revision_id | string Required. ID of the revision to return. To get a revision ID make a ContainerService.ListRevisions request. |
Revision
Field | Description |
---|---|
id | string ID of the revision. |
container_id | string ID of the container that the revision belongs to. |
description | string Description of the revision. |
created_at | google.protobuf.Timestamp Creation timestamp for the revision. |
image | Image Image configuration for the revision. |
resources | Resources Resources allocated to the revision. |
execution_timeout | google.protobuf.Duration Timeout for the execution of the revision. If the timeout is exceeded, Serverless Containers responds with a 504 HTTP code. |
concurrency | int64 The number of concurrent requests allowed per container instance. |
service_account_id | string ID of the service account associated with the revision. |
status | enum Status Status of the revision.
|
secrets[] | Secret Yandex Lockbox secrets to be used by the revision. |
connectivity | Connectivity Network access. If specified the revision will be attached to specified network/subnet(s). |
provision_policy | ProvisionPolicy Policy for provisioning instances of the revision. The policy is only applied when the revision is ACTIVE. |
scaling_policy | ScalingPolicy Policy for scaling instances of the revision. |
log_options | LogOptions Options for logging from the container. |
storage_mounts[] | StorageMount S3 mounts to be used by the revision. |
mounts[] | Mount Mounts to be used by the revision. |
Image
Field | Description |
---|---|
image_url | string Image URL, that is used by the revision. |
image_digest | string Digest of the image. Calculated at creation time. |
command | Command Override for the image's ENTRYPOINT. |
args | Args Override for the image's CMD. |
environment | map<string,string> Additional environment for the container. The maximum string length in characters for each value is 4096. Each key must match the regular expression [a-zA-Z][a-zA-Z0-9_]* . |
working_dir | string Override for the image's WORKDIR. |
Command
Field | Description |
---|---|
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. |
Args
Field | Description |
---|---|
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. |
Resources
Field | Description |
---|---|
memory | int64 Amount of memory available to the revision, specified in bytes, multiple of 128MB. Acceptable values are 134217728 to 8589934592, inclusive. |
cores | int64 Number of cores available to the revision. Acceptable values are 0 to 4, inclusive. |
core_fraction | int64 Specifies baseline performance for a core in percent, multiple of 5%. Should be 100% for cores > 1. Acceptable values are 0 to 100, inclusive. |
Secret
Field | Description |
---|---|
id | string ID of Yandex Lockbox secret. |
version_id | string ID of Yandex Lockbox secret. |
key | string Key in secret's payload, which value to be delivered into container environment. |
reference | oneof: environment_variable |
environment_variable | string Environment variable in which secret's value is delivered. |
Connectivity
Field | Description |
---|---|
network_id | string Network the revision will have access to. |
subnet_ids[] | 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
Field | Description |
---|---|
min_instances | int64 Minimum number of guaranteed provisioned container instances for all zones in total. |
ScalingPolicy
Field | Description |
---|---|
zone_instances_limit | int64 Upper limit for instance count in each zone. 0 means no limit. |
zone_requests_limit | int64 Upper limit of requests count in each zone. 0 means no limit. |
LogOptions
Field | Description |
---|---|
disabled | bool Is logging from container disabled. |
destination | oneof: log_group_id or folder_id Log entries destination. |
log_group_id | string Entry should be written to log group resolved by ID. Value must match the regular expression ([a-zA-Z][-a-zA-Z0-9_.]{0,63})? . |
folder_id | string Entry should be written to default log group for specified folder. Value must match the regular expression ([a-zA-Z][-a-zA-Z0-9_.]{0,63})? . |
min_level | yandex.cloud.logging.v1.LogLevel.Level Minimum log entry level. See [LogLevel.Level] for details. |
StorageMount
Field | Description |
---|---|
bucket_id | string Required. S3 bucket name for mounting. The string length in characters must be 3-63. Value must match the regular expression [-.0-9a-zA-Z]* . |
prefix | string S3 bucket prefix for mounting. |
read_only | bool Is mount read only. |
mount_point_path | string Required. Mount point path inside the container for mounting. The string length in characters must be 1-300. Value must match the regular expression [-_0-9a-zA-Z/]* . |
Mount
Field | Description |
---|---|
mount_point_path | string Required. The absolute mount point path inside the container for mounting. The string length in characters must be 1-300. Value must match the regular expression [-_0-9a-zA-Z/]* . |
mode | enum Mode Mount's mode |
target | oneof: object_storage or ephemeral_disk_spec Target mount option |
object_storage | ObjectStorage Object storage mounts |
ephemeral_disk_spec | DiskSpec Working disk (worker-local non-shared read-write NBS disk templates) |
ObjectStorage
Field | Description |
---|---|
bucket_id | string Required. ObjectStorage bucket name for mounting. The string length in characters must be 3-63. Value must match the regular expression [-.0-9a-zA-Z]* . |
prefix | string ObjectStorage bucket prefix for mounting. |
DiskSpec
Field | Description |
---|---|
size | int64 The size of disk for mount in bytes Value must be greater than 0. |
block_size | int64 Optional block size of disk for mount in bytes |
ListRevisions
Retrieves the list of revisions for the specified container, or of all container revisions in the specified folder.
rpc ListRevisions (ListContainersRevisionsRequest) returns (ListContainersRevisionsResponse)
ListContainersRevisionsRequest
Field | Description |
---|---|
id | oneof: folder_id or container_id |
folder_id | string ID of the folder to list container revisions for. To get a folder ID make a yandex.cloud.resourcemanager.v1.FolderService.List request. |
container_id | string ID of the container to list revisions for. To get a container ID use a ContainerService.List request. |
page_size | int64 The maximum number of results per page to return. If the number of available results is larger than pageSize , the service returns a ListContainersRevisionsResponse.next_page_token that can be used to get the next page of results in subsequent list requests. Default value: 100. Acceptable values are 0 to 1000, inclusive. |
page_token | string Page token. To get the next page of results, set pageToken to the ListContainersRevisionsResponse.next_page_token returned by a previous list request. The maximum string length in characters is 100. |
filter | string A filter expression that filters resources listed in the response. The expression must specify:
status="ACTIVE" . The maximum string length in characters is 1000. |
ListContainersRevisionsResponse
Field | Description |
---|---|
revisions[] | Revision List of revisions for the specified folder or container. |
next_page_token | string Token for getting the next page of the list. If the number of results is greater than the specified ListContainersRevisionsRequest.page_size, use nextPageToken as the value for the ListContainersRevisionsRequest.page_token parameter in the next list request. Each subsequent page will have its own nextPageToken to continue paging through the results. |
Revision
Field | Description |
---|---|
id | string ID of the revision. |
container_id | string ID of the container that the revision belongs to. |
description | string Description of the revision. |
created_at | google.protobuf.Timestamp Creation timestamp for the revision. |
image | Image Image configuration for the revision. |
resources | Resources Resources allocated to the revision. |
execution_timeout | google.protobuf.Duration Timeout for the execution of the revision. If the timeout is exceeded, Serverless Containers responds with a 504 HTTP code. |
concurrency | int64 The number of concurrent requests allowed per container instance. |
service_account_id | string ID of the service account associated with the revision. |
status | enum Status Status of the revision.
|
secrets[] | Secret Yandex Lockbox secrets to be used by the revision. |
connectivity | Connectivity Network access. If specified the revision will be attached to specified network/subnet(s). |
provision_policy | ProvisionPolicy Policy for provisioning instances of the revision. The policy is only applied when the revision is ACTIVE. |
scaling_policy | ScalingPolicy Policy for scaling instances of the revision. |
log_options | LogOptions Options for logging from the container. |
storage_mounts[] | StorageMount S3 mounts to be used by the revision. |
mounts[] | Mount Mounts to be used by the revision. |
Image
Field | Description |
---|---|
image_url | string Image URL, that is used by the revision. |
image_digest | string Digest of the image. Calculated at creation time. |
command | Command Override for the image's ENTRYPOINT. |
args | Args Override for the image's CMD. |
environment | map<string,string> Additional environment for the container. The maximum string length in characters for each value is 4096. Each key must match the regular expression [a-zA-Z][a-zA-Z0-9_]* . |
working_dir | string Override for the image's WORKDIR. |
Command
Field | Description |
---|---|
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. |
Args
Field | Description |
---|---|
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. |
Resources
Field | Description |
---|---|
memory | int64 Amount of memory available to the revision, specified in bytes, multiple of 128MB. Acceptable values are 134217728 to 8589934592, inclusive. |
cores | int64 Number of cores available to the revision. Acceptable values are 0 to 4, inclusive. |
core_fraction | int64 Specifies baseline performance for a core in percent, multiple of 5%. Should be 100% for cores > 1. Acceptable values are 0 to 100, inclusive. |
Secret
Field | Description |
---|---|
id | string ID of Yandex Lockbox secret. |
version_id | string ID of Yandex Lockbox secret. |
key | string Key in secret's payload, which value to be delivered into container environment. |
reference | oneof: environment_variable |
environment_variable | string Environment variable in which secret's value is delivered. |
Connectivity
Field | Description |
---|---|
network_id | string Network the revision will have access to. |
subnet_ids[] | 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
Field | Description |
---|---|
min_instances | int64 Minimum number of guaranteed provisioned container instances for all zones in total. |
ScalingPolicy
Field | Description |
---|---|
zone_instances_limit | int64 Upper limit for instance count in each zone. 0 means no limit. |
zone_requests_limit | int64 Upper limit of requests count in each zone. 0 means no limit. |
LogOptions
Field | Description |
---|---|
disabled | bool Is logging from container disabled. |
destination | oneof: log_group_id or folder_id Log entries destination. |
log_group_id | string Entry should be written to log group resolved by ID. Value must match the regular expression ([a-zA-Z][-a-zA-Z0-9_.]{0,63})? . |
folder_id | string Entry should be written to default log group for specified folder. Value must match the regular expression ([a-zA-Z][-a-zA-Z0-9_.]{0,63})? . |
min_level | yandex.cloud.logging.v1.LogLevel.Level Minimum log entry level. See [LogLevel.Level] for details. |
StorageMount
Field | Description |
---|---|
bucket_id | string Required. S3 bucket name for mounting. The string length in characters must be 3-63. Value must match the regular expression [-.0-9a-zA-Z]* . |
prefix | string S3 bucket prefix for mounting. |
read_only | bool Is mount read only. |
mount_point_path | string Required. Mount point path inside the container for mounting. The string length in characters must be 1-300. Value must match the regular expression [-_0-9a-zA-Z/]* . |
Mount
Field | Description |
---|---|
mount_point_path | string Required. The absolute mount point path inside the container for mounting. The string length in characters must be 1-300. Value must match the regular expression [-_0-9a-zA-Z/]* . |
mode | enum Mode Mount's mode |
target | oneof: object_storage or ephemeral_disk_spec Target mount option |
object_storage | ObjectStorage Object storage mounts |
ephemeral_disk_spec | DiskSpec Working disk (worker-local non-shared read-write NBS disk templates) |
ObjectStorage
Field | Description |
---|---|
bucket_id | string Required. ObjectStorage bucket name for mounting. The string length in characters must be 3-63. Value must match the regular expression [-.0-9a-zA-Z]* . |
prefix | string ObjectStorage bucket prefix for mounting. |
DiskSpec
Field | Description |
---|---|
size | int64 The size of disk for mount in bytes Value must be greater than 0. |
block_size | int64 Optional block size of disk for mount in bytes |
ListOperations
Lists operations for the specified container.
rpc ListOperations (ListContainerOperationsRequest) returns (ListContainerOperationsResponse)
ListContainerOperationsRequest
Field | Description |
---|---|
container_id | string Required. ID of the container to list operations for. |
page_size | int64 The maximum number of results per page that should be returned. If the number of available results is larger than pageSize , the service returns a ListContainerOperationsResponse.next_page_token that can be used to get the next page of results in subsequent list requests. Default value: 100. Acceptable values are 0 to 1000, inclusive. |
page_token | string Page token. To get the next page of results, set pageToken to the ListContainerOperationsResponse.next_page_token returned by a previous list request. The maximum string length in characters is 100. |
filter | string A filter expression that filters resources listed in the response. The expression must specify:
done=false , created_by='John.Doe' . The maximum string length in characters is 1000. |
ListContainerOperationsResponse
Field | Description |
---|---|
operations[] | operation.Operation List of operations for the specified container. |
next_page_token | string Token for getting the next page of the list. If the number of results is greater than the specified ListContainerOperationsRequest.page_size, use nextPageToken as the value for the ListContainerOperationsRequest.page_token parameter in the next list request. Each subsequent page will have its own nextPageToken to continue paging through the results. |
Operation
Field | Description |
---|---|
id | string ID of the operation. |
description | string Description of the operation. 0-256 characters long. |
created_at | google.protobuf.Timestamp Creation timestamp. |
created_by | string ID of the user or service account who initiated the operation. |
modified_at | google.protobuf.Timestamp The time when the Operation resource was last modified. |
done | bool If the value is false , it means the operation is still in progress. If true , the operation is completed, and either error or response is available. |
metadata | google.protobuf.Any Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any. |
result | oneof: error or response The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true , exactly one of error or response is set. |
error | google.rpc.Status The error result of the operation in case of failure or cancellation. |
response | google.protobuf.Any The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty |
ListAccessBindings
Lists existing access bindings for the specified container.
rpc ListAccessBindings (ListAccessBindingsRequest) returns (ListAccessBindingsResponse)
ListAccessBindingsRequest
Field | Description |
---|---|
resource_id | string Required. ID of the resource to list access bindings for. To get the resource ID, use a corresponding List request. For example, use the yandex.cloud.resourcemanager.v1.CloudService.List request to get the Cloud resource ID. The maximum string length in characters is 50. |
page_size | int64 The maximum number of results per page that should be returned. If the number of available results is larger than page_size , the service returns a ListAccessBindingsResponse.next_page_token that can be used to get the next page of results in subsequent list requests. Default value: 100. The maximum value is 1000. |
page_token | string Page token. Set page_token to the ListAccessBindingsResponse.next_page_token returned by a previous list request to get the next page of results. The maximum string length in characters is 100. |
ListAccessBindingsResponse
Field | Description |
---|---|
access_bindings[] | AccessBinding List of access bindings for the specified resource. |
next_page_token | string This token allows you to get the next page of results for list requests. If the number of results is larger than ListAccessBindingsRequest.page_size, use the next_page_token as the value for the ListAccessBindingsRequest.page_token query parameter in the next list request. Each subsequent list request will have its own next_page_token to continue paging through the results. |
AccessBinding
Field | Description |
---|---|
role_id | string Required. ID of the yandex.cloud.iam.v1.Role that is assigned to the subject . The maximum string length in characters is 50. |
subject | Subject Required. Identity for which access binding is being created. It can represent an account with a unique ID or several accounts with a system identifier. |
Subject
Field | Description |
---|---|
id | string Required. ID of the subject. It can contain one of the following values:
type is system .
type is userAccount , federatedUser or serviceAccount . The maximum string length in characters is 50. |
type | string Required. Type of the subject. It can contain one of the following values:
For more information, see Subject to which the role is assigned. The maximum string length in characters is 100. |
SetAccessBindings
Sets access bindings for the container.
rpc SetAccessBindings (SetAccessBindingsRequest) returns (operation.Operation)
Metadata and response of Operation:
Operation.metadata:SetAccessBindingsMetadata
Operation.response:google.protobuf.Empty
SetAccessBindingsRequest
Field | Description |
---|---|
resource_id | string Required. ID of the resource for which access bindings are being set. To get the resource ID, use a corresponding List request. The maximum string length in characters is 50. |
access_bindings[] | AccessBinding Required. Access bindings to be set. For more information, see Access Bindings. |
AccessBinding
Field | Description |
---|---|
role_id | string Required. ID of the yandex.cloud.iam.v1.Role that is assigned to the subject . The maximum string length in characters is 50. |
subject | Subject Required. Identity for which access binding is being created. It can represent an account with a unique ID or several accounts with a system identifier. |
Subject
Field | Description |
---|---|
id | string Required. ID of the subject. It can contain one of the following values:
type is system .
type is userAccount , federatedUser or serviceAccount . The maximum string length in characters is 50. |
type | string Required. Type of the subject. It can contain one of the following values:
For more information, see Subject to which the role is assigned. The maximum string length in characters is 100. |
Operation
Field | Description |
---|---|
id | string ID of the operation. |
description | string Description of the operation. 0-256 characters long. |
created_at | google.protobuf.Timestamp Creation timestamp. |
created_by | string ID of the user or service account who initiated the operation. |
modified_at | google.protobuf.Timestamp The time when the Operation resource was last modified. |
done | bool If the value is false , it means the operation is still in progress. If true , the operation is completed, and either error or response is available. |
metadata | google.protobuf.Any Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any. |
result | oneof: error or response The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true , exactly one of error or response is set. |
error | google.rpc.Status The error result of the operation in case of failure or cancellation. |
response | google.protobuf.Any if operation finished successfully. |
SetAccessBindingsMetadata
Field | Description |
---|---|
resource_id | string ID of the resource for which access bindings are being set. |
UpdateAccessBindings
Updates access bindings for the specified container.
rpc UpdateAccessBindings (UpdateAccessBindingsRequest) returns (operation.Operation)
Metadata and response of Operation:
Operation.metadata:UpdateAccessBindingsMetadata
Operation.response:google.protobuf.Empty
UpdateAccessBindingsRequest
Field | Description |
---|---|
resource_id | string Required. ID of the resource for which access bindings are being updated. The maximum string length in characters is 50. |
access_binding_deltas[] | AccessBindingDelta Required. Updates to access bindings. The number of elements must be greater than 0. |
AccessBindingDelta
Field | Description |
---|---|
action | enum AccessBindingAction Required. The action that is being performed on an access binding.
|
access_binding | AccessBinding Required. Access binding. For more information, see Access Bindings. |
AccessBinding
Field | Description |
---|---|
role_id | string Required. ID of the yandex.cloud.iam.v1.Role that is assigned to the subject . The maximum string length in characters is 50. |
subject | Subject Required. Identity for which access binding is being created. It can represent an account with a unique ID or several accounts with a system identifier. |
Subject
Field | Description |
---|---|
id | string Required. ID of the subject. It can contain one of the following values:
type is system .
type is userAccount , federatedUser or serviceAccount . The maximum string length in characters is 50. |
type | string Required. Type of the subject. It can contain one of the following values:
For more information, see Subject to which the role is assigned. The maximum string length in characters is 100. |
Operation
Field | Description |
---|---|
id | string ID of the operation. |
description | string Description of the operation. 0-256 characters long. |
created_at | google.protobuf.Timestamp Creation timestamp. |
created_by | string ID of the user or service account who initiated the operation. |
modified_at | google.protobuf.Timestamp The time when the Operation resource was last modified. |
done | bool If the value is false , it means the operation is still in progress. If true , the operation is completed, and either error or response is available. |
metadata | google.protobuf.Any Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any. |
result | oneof: error or response The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true , exactly one of error or response is set. |
error | google.rpc.Status The error result of the operation in case of failure or cancellation. |
response | google.protobuf.Any if operation finished successfully. |
UpdateAccessBindingsMetadata
Field | Description |
---|---|
resource_id | string ID of the resource for which access bindings are being updated. |