Schema
Required
disk(Attributes) Disk spec for the main disk of the endpoint. (see below for nested schema)image(String) The Docker image to use for the endpoint’s container.
Optional
-
args(String) The arguments to pass to the entrypoint command. -
auth_token(String, Sensitive) : Authentication token needed to access the endpoint. Authentication can only be enabled if the endpoint exposes one and only one HTTP port. Mutually exclusive withauth_token_mysterybox_secret. If not provided, authentication will be disabled. -
auth_token_mysterybox_secret(Attributes) : Secret storing the authentication token. Mutually exclusive withauth_token. Must reference a secret payload containingAUTH_TOKEN.Inner value description
Reference to a MysteryBox secret. (see below for nested schema) -
container_command(String) The entrypoint command for the endpoint’s container. -
cpu(List of String) : CPU family and vCPU count, such as [“amd:16”]. Endpoints accept one entry. Mutually exclusive with gpu. Omit platform and preset in Create. Reads include the saved platform and preset. The caller still selects the disk and pricing model. -
environment_variables(Attributes List) : Specifies the environment variables for the endpoint’s container.Inner value description
EnvironmentVariable defines an environment variable for the endpoint’s container. (see below for nested schema) -
gpu(List of String) : GPU model and optional count, such as [“H100:8”]. An omitted count means one GPU. Endpoints accept one entry. Mutually exclusive with cpu. Omit platform and preset in Create. Reads include the saved platform and preset. The caller still selects the disk and pricing model. -
injected_files(Attributes List) : Small config files injected into the container before the user process starts. Intended for configs, not datasets. Read methods return target paths. File content is returned only by Get with view SECRET.Inner value description
FileInjection materializes a small file inside the container at launch. (see below for nested schema) -
labels(Map of String) Labels associated with the resource. -
metadata(Attributes) :Inner value description
Common resource metadata. (see below for nested schema) -
name(String) Human-readable name for the resource. -
parent_id(String) Identifier of the parent resource to which the resource belongs. -
platform(String) : Compute platform that the endpoint will be run on. Reads return the saved platform for a selector-based endpoint. -
ports(Attributes List) Specifies the ports that the endpoint exposes. (see below for nested schema) -
preemptible(Boolean) : Whether to use a preemptible VM for the endpoint. Preemptible VMs are cheaper but can be stopped by the platform at any time. -
preset(String) : Compute preset that the endpoint will be run on. Reads return the saved preset for a selector-based endpoint. -
pricing_model(Attributes) : Pricing model for the VM. Must match the preemptible flag. Preemptible VMs require follows_spot_price or spot_pricing_policy. Regular VMs use on_demand or omit this field.Inner value description
PricingModelSpec defines how the workload’s VM is priced. It mirrors the pricing model of the Compute Instance API. (see below for nested schema) -
public_ip(Boolean) Whether to assign a public IP to the endpoint. -
registry_credentials(Attributes) Registry credentials for private Docker registry. (see below for nested schema) -
sensitive(Attributes, Sensitive) This object mirrors the structure of the resource, providing view on the resource’s write-only fields. It is a preferred way to define such fields as they are not stored in the state file. To use any field in write-only mode, do not set it in the main resource, instead set it in thesensitiveobject. Setting the field in the main resource will overwrite the field in thesensitiveobject at merging. (see below for nested schema) -
shm_size_bytes(Number) Shared memory size in bytes for the endpoint’s container. -
ssh_authorized_keys(List of String) Public keys to be authorized for SSH access to the job. -
subnet_id(String) : Subnet ID where the endpoint will be deployed. If omitted, the service uses the project’s default subnet in the workload region. -
volumes(Attributes List) : Volumes to be mounted into the endpoint’s container.Inner value description
VolumeMount represents a volume mount for the endpoint’s container. (see below for nested schema) -
working_dir(String) The working directory for the endpoint’s container.
Read-Only
-
created_at(String) : Timestamp indicating when the resource was created. A string representing a timestamp in ISO 8601 format:YYYY-MM-DDTHH:MM:SSZorYYYY-MM-DDTHH:MM:SS.SSS±HH:MM -
id(String) Identifier for the resource, unique for its resource type. -
labels_all(Map of String) Effective labels sent to the API after merging providerdefault_labelswith resourcelabels. -
resource_version(Number) : Version of the resource for safe concurrent modifications and consistent reads. Positive and monotonically increases on each resource spec change (but not on each change of the resource’s container(s) or status). Service allows zero value or current. -
status(Attributes) :Inner value description
EndpointStatus represents the status of a VM app. (see below for nested schema) -
updated_at(String) : Timestamp indicating when the resource was last updated. A string representing a timestamp in ISO 8601 format:YYYY-MM-DDTHH:MM:SSZorYYYY-MM-DDTHH:MM:SS.SSS±HH:MM
Nested Schema for disk
Required:
-
type(String) : Disk type.Supported values
the list of available types will be clarified later, it is not final version Possible values:UNSPECIFIEDNETWORK_SSDNETWORK_HDDNETWORK_SSD_NON_REPLICATEDNETWORK_SSD_IO_M3
size_bytes(Number) Disk size in bytes.
Nested Schema for auth_token_mysterybox_secret
Optional:
-
secret_id(String) : MysteryBox secret ID. If you omit it, the service sets it from version_id. -
version_id(String) : MysteryBox secret version ID. If you omit it, the service sets the primary version of the secret at create time.
Nested Schema for environment_variables
Required:
name(String) The name of the environment variable.
-
mysterybox_secret(Attributes) : Secret storing the environment variable value. Mutually exclusive withvalue. The value is read from the payload entry whose key matches the variable name, or the first entry when no such key exists.Inner value description
Reference to a MysteryBox secret. (see below for nested schema) -
value(String, Sensitive) : Environment variable value. Mutually exclusive withmysterybox_secret.
Nested Schema for environment_variables.mysterybox_secret
Optional:
-
secret_id(String) : MysteryBox secret ID. If you omit it, the service sets it from version_id. -
version_id(String) : MysteryBox secret version ID. If you omit it, the service sets the primary version of the secret at create time.
Nested Schema for injected_files
Required:
-
container_path(String) : Absolute path inside the container where the content is written. Must be a clean absolute path: root, trailing slashes, empty path segments, ”.” and ”..” are not allowed.
-
content(String, Sensitive) : File content. On create, must contain between 1 byte and 64 KiB (one mystery box secret payload). Returned only by Get with view SECRET.
Nested Schema for metadata
Nested Schema for ports
Required:
-
protocol(String) : Port’s protocol.Supported values
Represents protocol of the endpoint’s port which will be exposed. Possible values:PROTOCOL_UNSPECIFIEDHTTP- HTTP protocol.TCP- TCP protocol.UDP- UDP protocol.
-
container_port(Number) Container port. -
host_port(Number) : Host port. If not specified, will be same as container_port.
Nested Schema for pricing_model
Optional:
-
follows_spot_price(Attributes) : The preemptible VM accepts the current spot price. Cannot be set alongside on_demand or spot_pricing_policy. (see below for nested schema) -
on_demand(Attributes) : A regular, non-preemptible VM. Cannot be set alongside follows_spot_price or spot_pricing_policy. (see below for nested schema) -
spot_pricing_policy(Attributes) : The preemptible VM accepts the current spot price unless it exceeds the maximum price specified by the selected pricing policy. When the spot price exceeds that maximum price, the VM is preempted. Cannot be set alongside on_demand or follows_spot_price. (see below for nested schema)
Nested Schema for pricing_model.follows_spot_price
Nested Schema for pricing_model.on_demand
Nested Schema for pricing_model.spot_pricing_policy
Required:
id(String) PricingPolicy ID used as the maximum agreed price for the preemptible VM.
Nested Schema for registry_credentials
Optional:
-
mysterybox_secret_version(String) : Secret version storing the registry credentials. Must have keys “REGISTRY_USERNAME” and “REGISTRY_PASSWORD”. -
password(String, Sensitive) : Registry password for private Docker registry. Get returns the password only with view SECRET. -
username(String) Registry username for private Docker registry.
Nested Schema for sensitive
Optional:
-
injected_files(Attributes List) : Small config files injected into the container before the user process starts. Intended for configs, not datasets. Read methods return target paths. File content is returned only by Get with view SECRET.Inner value description
FileInjection materializes a small file inside the container at launch. (see below for nested schema) -
registry_credentials(Attributes) Registry credentials for private Docker registry. (see below for nested schema) -
version(String) The version of the write-only fields combined. You can use a hash here, some number, or a version of the secret from which you pull the value, or you can concatenate all of that together. This field is not sent to the server, but it is stored in the state, so don’t store raw secrets here. Changing this field will trigger an update of the resource even if no other fields are changed. Use of this field is not required, but if you do not use it, changes in write-only fields will not trigger updates of the resource by themselves and therefore might not be reflected. -
volumes(Attributes List) : Volumes to be mounted into the endpoint’s container.Inner value description
VolumeMount represents a volume mount for the endpoint’s container. (see below for nested schema)
Nested Schema for sensitive.injected_files
Optional:
-
content(String, Sensitive, Write-only) : File content. On create, must contain between 1 byte and 64 KiB (one mystery box secret payload). Returned only by Get with view SECRET.
Nested Schema for sensitive.registry_credentials
Optional:
-
password(String, Sensitive, Write-only) : Registry password for private Docker registry. Get returns the password only with view SECRET.
Nested Schema for sensitive.volumes
Optional:
-
s3_config(Attributes) :Inner value description
Config for accessing an external S3-compatible storage. The bucket name is specified in thesourcefield as an S3 URI. (see below for nested schema)
Nested Schema for sensitive.volumes.s3_config
Optional:
-
credentials(Attributes) : Inline S3 credentials. Get returns the values only with view SECRET.Inner value description
Inline S3 credentials. Cannot be set alongside mysterybox_secret. (see below for nested schema)
Nested Schema for sensitive.volumes.s3_config.credentials
Optional:
access_key_id(String, Sensitive, Write-only) Access key ID.secret_access_key(String, Sensitive, Write-only) Secret access key.session_token(String, Sensitive, Write-only) Session token (optional, for temporary credentials).
Nested Schema for volumes
Required:
-
mode(String) : Mount mode.Supported values
Mode that will be used to mount the volume. Possible values:MODE_UNSPECIFIEDREAD_ONLY- Read-only mode.READ_WRITE- Read-write mode.
-
container_path(String) : Path inside the endpoint’s container where the volume is mounted. Must be an absolute path. -
s3_config(Attributes) :Inner value description
Config for accessing an external S3-compatible storage. The bucket name is specified in thesourcefield as an S3 URI. (see below for nested schema) -
source(String) : Source of the volume mount. Can be a name or an ID of Nebius Storage bucket or filesystem, or an S3 URI (e.g. “s3://bucket-name”) when using external S3 storage. -
source_path(String) : Path inside the source volume. Optional.
Nested Schema for volumes.s3_config
Required:
endpoint(String) S3-compatible endpoint URL (e.g. “https://s3.amazonaws.com”).region(String) S3 region.
-
credentials(Attributes) : Inline S3 credentials. Get returns the values only with view SECRET.Inner value description
Inline S3 credentials. Cannot be set alongside mysterybox_secret. (see below for nested schema) -
mysterybox_secret(Attributes) : Reference to a MysteryBox secret containing S3 credentials.Inner value description
Reference to a MysteryBox secret. Cannot be set alongside credentials. (see below for nested schema)
Nested Schema for volumes.s3_config.credentials
Optional:
access_key_id(String, Sensitive) Access key ID.secret_access_key(String, Sensitive) Secret access key.session_token(String, Sensitive) Session token (optional, for temporary credentials).
Nested Schema for volumes.s3_config.mysterybox_secret
Optional:
-
secret_id(String) : MysteryBox secret ID. If you omit it, the service sets it from version_id. -
version_id(String) : MysteryBox secret version ID. If you omit it, the service sets the primary version of the secret at create time.
Nested Schema for status
Read-Only:
-
instances(Attributes List) : Status of individual endpoint instances.Inner value description
EndpointInstanceStatus represents the status of a endpoint instance. (see below for nested schema) -
private_endpoints(List of String) Private endpoints to access the workload. -
public_endpoints(List of String) Public endpoints to access the workload. -
state(String) : State of the endpoint.Supported values
Endpoint state. Possible values:STATE_UNSPECIFIEDPROVISIONING- The endpoint is creating resources.STARTING- The endpoint is being started.RUNNING- The endpoint is running.STOPPING- The endpoint is being stopped.DELETING- The endpoint is being deleted.STOPPED- The endpoint has been stopped.ERROR- The endpoint encountered an error.IMAGE_PULLING- The endpoint is pulling an image (STARTING -> IMAGE_PULLING -> RUNNING).
-
state_details(Attributes) : Details of the endpoint’s state.Inner value description
Endpoint state details. (see below for nested schema)
Nested Schema for status.instances
Read-Only:
-
compute_instance_id(String) ID of the compute instance running the endpoint. -
compute_instance_state(String) : The current state of the compute instance.Supported values
Possible values:UNSPECIFIEDCREATINGUPDATINGSTARTINGRUNNINGSTOPPINGSTOPPEDDELETINGERROR
-
private_ip(String) Private IP address of the instance. -
public_ip(String) Public IP address of the instance. -
state(String) : The current state of the endpoint’s workload.Supported values
Endpoint instance state. Possible values:STATE_UNSPECIFIEDPROVISIONING- The endpoint is creating resources.STARTING- The endpoint is being started.RUNNING- The endpoint is running.STOPPING- The endpoint is being stopped.DELETING- The endpoint is being deleted.STOPPED- The endpoint has been stopped.FAILED- The endpoint has failed.ERROR- The endpoint encountered an error.IMAGE_PULLING- The endpoint is pulling an image (STARTING -> IMAGE_PULLING -> RUNNING).
Nested Schema for status.state_details
Read-Only:
-
code(String) Short state description. -
message(String) Detailed human-readable description. -
service_error(Attributes) : Structured error details for the failure, if available. For quota-related failures,service_error.details.quota_failureis populated with the quota violations. (see below for nested schema)
Nested Schema for status.state_details.service_error
Read-Only:
-
bad_request(Attributes) :Inner value description
The request is invalid. Cannot be set alongside bad_resource_state, resource_not_found, resource_already_exists, out_of_range, permission_denied, resource_conflict, operation_aborted, operation_conflict, too_many_requests, quota_failure, not_enough_resources or internal_error. (see below for nested schema) -
bad_resource_state(Attributes) :Inner value description
The resource we are trying to use, create, change or delete is in a bad state and cannot be used. Cannot be set alongside bad_request, resource_not_found, resource_already_exists, out_of_range, permission_denied, resource_conflict, operation_aborted, operation_conflict, too_many_requests, quota_failure, not_enough_resources or internal_error. (see below for nested schema) -
code(String) : Detailed error code, service-specific. E.g. “DnsZoneNotEmpty”. Name of the exception, without Exception suffix if not set. Example: for PermissionDeniedException -> code == PermissionDenied. -
internal_error(Attributes) :Inner value description
Generic internal error. Cannot be set alongside bad_request, bad_resource_state, resource_not_found, resource_already_exists, out_of_range, permission_denied, resource_conflict, operation_aborted, operation_conflict, too_many_requests, quota_failure or not_enough_resources. (see below for nested schema) -
not_enough_resources(Attributes) :Inner value description
Indicates that there are not enough resources available to perform the requested action. Cannot be set alongside bad_request, bad_resource_state, resource_not_found, resource_already_exists, out_of_range, permission_denied, resource_conflict, operation_aborted, operation_conflict, too_many_requests, quota_failure or internal_error. (see below for nested schema) -
operation_aborted(Attributes) :Inner value description
Operation on the resource has been aborted by a subsequent operation. Cannot be set alongside bad_request, bad_resource_state, resource_not_found, resource_already_exists, out_of_range, permission_denied, resource_conflict, operation_conflict, too_many_requests, quota_failure, not_enough_resources or internal_error. (see below for nested schema) -
operation_conflict(Attributes) :Inner value description
Operation cannot be started because a conflicting operation is already running on the same resource. Wait until the conflicting operation finishes, then you can retry starting your operation. Cannot be set alongside bad_request, bad_resource_state, resource_not_found, resource_already_exists, out_of_range, permission_denied, resource_conflict, operation_aborted, too_many_requests, quota_failure, not_enough_resources or internal_error. (see below for nested schema) -
out_of_range(Attributes) :Inner value description
Indicates that element with requested parameters is exceeding the particular range. Cannot be set alongside bad_request, bad_resource_state, resource_not_found, resource_already_exists, permission_denied, resource_conflict, operation_aborted, operation_conflict, too_many_requests, quota_failure, not_enough_resources or internal_error. (see below for nested schema) -
permission_denied(Attributes) :Inner value description
Indicates that the action cannot be performed because there are insufficient access rights to a resource. Cannot be set alongside bad_request, bad_resource_state, resource_not_found, resource_already_exists, out_of_range, resource_conflict, operation_aborted, operation_conflict, too_many_requests, quota_failure, not_enough_resources or internal_error. (see below for nested schema) -
quota_failure(Attributes) :Inner value description
Indicates a failure due to exceeding specified limits or allocations in a system or service. Cannot be set alongside bad_request, bad_resource_state, resource_not_found, resource_already_exists, out_of_range, permission_denied, resource_conflict, operation_aborted, operation_conflict, too_many_requests, not_enough_resources or internal_error. (see below for nested schema) -
resource_already_exists(Attributes) :Inner value description
Resource we are trying to create already exists. Cannot be set alongside bad_request, bad_resource_state, resource_not_found, out_of_range, permission_denied, resource_conflict, operation_aborted, operation_conflict, too_many_requests, quota_failure, not_enough_resources or internal_error. (see below for nested schema) -
resource_conflict(Attributes) :Inner value description
There is a difference between the actual resource state and the expected one. Cannot be set alongside bad_request, bad_resource_state, resource_not_found, resource_already_exists, out_of_range, permission_denied, operation_aborted, operation_conflict, too_many_requests, quota_failure, not_enough_resources or internal_error. (see below for nested schema) -
resource_not_found(Attributes) :Inner value description
Resource we are trying to interact with does not exist. Cannot be set alongside bad_request, bad_resource_state, resource_already_exists, out_of_range, permission_denied, resource_conflict, operation_aborted, operation_conflict, too_many_requests, quota_failure, not_enough_resources or internal_error. (see below for nested schema) -
retry_type(String) : Retry type tells how to provide retry, e.g.: just a single call or the whole logic before it.Supported values
Possible values:UNSPECIFIEDCALL- Just retry the failed call.UNIT_OF_WORK- Retry whole logic before call and make a new one.NOTHING- Do not retry, this is a fatal error.
-
service(String) ID of Service which the error originated in. E.g. “dns”. -
too_many_requests(Attributes) :Inner value description
You initiated too many requests to the service at once. Enhance your calm. Cannot be set alongside bad_request, bad_resource_state, resource_not_found, resource_already_exists, out_of_range, permission_denied, resource_conflict, operation_aborted, operation_conflict, quota_failure, not_enough_resources or internal_error. (see below for nested schema)
Nested Schema for status.state_details.service_error.bad_request
Read-Only:
violations(Attributes List) Describes all violations. (see below for nested schema)
Nested Schema for status.state_details.service_error.bad_request.violations
Read-Only:
-
field(String) What field value is invalid. -
message(String) Description why the value is invalid, in English. -
related_fields(List of String) : Other fields whose values contribute to this violation. Does not include the primary field.
Nested Schema for status.state_details.service_error.bad_resource_state
Read-Only:
message(String) The reason why this state is bad and cannot be used.resource_id(String) ID of the resource which is bad.
Nested Schema for status.state_details.service_error.internal_error
Read-Only:
request_id(String) Error request ID.trace_id(String) Trace ID for the failing request.
Nested Schema for status.state_details.service_error.not_enough_resources
Read-Only:
violations(Attributes List) Describes all resource violations. (see below for nested schema)
Nested Schema for status.state_details.service_error.not_enough_resources.violations
Read-Only:
-
message(String) A description of how the resource is insufficient. -
requested(String) Requested value. -
resource_type(String) : The type of resource that is insufficient. This field is populated when it is possible to determine the lacking resource type. Not for programmatic use.
Nested Schema for status.state_details.service_error.operation_aborted
Read-Only:
aborted_by_operation_id(String) ID of the subsequent operation.operation_id(String) ID of the aborted operation.resource_id(String) Resource ID corresponding to both of the operations.
Nested Schema for status.state_details.service_error.operation_conflict
Read-Only:
conflicting_operation_id(String) ID of the conflicting operation (the one that’s running).resource_id(String) Resource ID corresponding to the conflicting operation.
Nested Schema for status.state_details.service_error.out_of_range
Read-Only:
limit(String) Available limit.requested(String) Requested value.
Nested Schema for status.state_details.service_error.permission_denied
Read-Only:
resource_id(String) ID of the resource that cannot be accessed.
Nested Schema for status.state_details.service_error.quota_failure
Read-Only:
violations(Attributes List) Describes all quota violations. (see below for nested schema)
Nested Schema for status.state_details.service_error.quota_failure.violations
Read-Only:
limit(String) Maximum permissible value.message(String) A description of how the quota check failed.quota(String) Which quota check failed.region(String) Region for the violation, if known. E.g. “eu-north1”.requested(String) Requested value.
Nested Schema for status.state_details.service_error.resource_already_exists
Read-Only:
resource_id(String) ID of the existing resource.
Nested Schema for status.state_details.service_error.resource_conflict
Read-Only:
message(String) Detailed info about conflict.resource_id(String) ID of conflicting resource.
Nested Schema for status.state_details.service_error.resource_not_found
Read-Only:
resource_id(String) ID of the requested resource.
Nested Schema for status.state_details.service_error.too_many_requests
Read-Only:
violation(String) What request limit is exceeded (service-dependent).