Manage compute resources and specifications¶
Manage compute specifications and compute instances in a workspace, including creation, configuration, runtime-status checks, and lifecycle operations. Specifications define available configurations; instances perform the actual work. This page does not manage workflow jobs themselves.
Prerequisites¶
Prepare access to the target workspace. For general rules, see Prepare to call an API.
Before managing compute specifications, confirm that your current identity has the required administrative permission.
Before updating, suspending, resuming, retrying, or deleting an instance, obtain its ID and current status from its list or details.
Call sequence¶
Query compute-specification management permission, then list visible specifications. Create or update a specification as needed and confirm that it is enabled.
Before creating or updating a compute instance, list available Worker images and prepare a compute specification or instance configuration as needed.
After creating an instance, query its details to confirm its configuration, capacity, and lifecycle state. Query Worker runtime and instance metrics when you need to observe it.
Suspend an instance only when its details show
ACTIVE. Resume a suspended instance; retry an instance inERROR. After each lifecycle operation, query details again to confirm the state.Before deleting, inspect active tasks and workflow bindings. Delete the instance only after confirming the result. Use legacy resource ownership adoption only for controlled remediation.
API operations¶
Manage compute specifications¶
What you need to do |
API operation |
Use it when |
|---|---|---|
Check compute-specification management permission |
You need to confirm your permission before creating, updating, enabling, or disabling a specification. |
|
List compute specifications |
You need to select an existing specification or confirm a specification change. |
|
Create a compute specification |
The current workspace needs a new compute specification. |
|
Update a compute specification |
You need to change an existing specification definition. |
|
Enable or disable a compute specification |
You need to change the enabled state of a specification. |
Create and observe compute instances¶
What you need to do |
API operation |
Use it when |
|---|---|---|
List compute instances |
You need to select an instance, obtain an instance ID, or confirm creation or deletion. |
|
List Worker images |
You need to select an available Worker image before creating or updating an instance. |
|
Create a compute instance |
You prepared the configuration and need to create an instance in the current workspace. |
|
Update a compute instance |
You need to change an instance’s updatable configuration. |
|
Get compute-instance details |
You need to confirm an instance’s configuration, capacity, or lifecycle state. |
|
Get Worker runtime |
You need the runtime replica status by Worker type. |
|
Get compute-instance metrics |
You need instance usage metrics. |
Manage the instance lifecycle¶
What you need to do |
API operation |
Use it when |
|---|---|---|
Suspend a compute instance |
Details confirm that the instance is |
|
Resume a compute instance |
You need to return a suspended instance to an available state. |
|
Retry a compute-instance operation |
Details confirm that the instance is in |
|
Preflight deletion of a compute instance |
You need to check active tasks and workflow bindings before deleting. |
|
Delete a compute instance |
You completed preflight checks and confirmed that the instance is no longer needed. |
|
Adopt legacy compute-resource ownership |
You are performing controlled remediation of legacy resource ownership. |
Confirm the result¶
After creating, updating, enabling, or disabling a specification, confirm it through the specification list. After creating, updating, suspending, resuming, or retrying an instance, query compute-instance details to confirm its current state. After deletion, use the instance list to confirm that it no longer appears.
Limitations and notes¶
Confirm compute-specification management permission before creating, updating, enabling, or disabling a specification.
Suspension applies only to
ACTIVEinstances. After a suspended instance is resumed or anERRORinstance is successfully retried, it returns toIDLE; Workers are not deployed immediately.Updating a serverless instance does not deploy Workers immediately; later workload demand activates them.
Deletion preflight returns active tasks and workflow bindings that require attention. Do not delete before confirming these impacts.
Adopting legacy compute-resource ownership is a controlled remediation operation that requires the appropriate administrative permission.