首页 GetWorkload

GetWorkload

更新时间: 2026-07-22 16:40:24

Retrieve workload information by ID

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

eflo:GetWorkload

get

*Workload

acs:eflo:{#regionId}:{#accountId}:workload/{#WorkloadId}

None None

Request parameters

Parameter

Type

Required

Description

Example

WorkloadId

integer

Yes

Workload ID

13

Response elements

Element

Type

Description

Example

object

Result

Data

object

Data

WorkloadId

integer

Workload ID

13

WorkloadName

string

Workload Name

test

WorkloadDescription

string

Workload Description

test

WorkloadType

string

Workload Type

AI

Family

string

Workload cluster, such as AI or GPU

AI

Scene

string

Usage scenario

NLP-LLM

Scope

string

Scope identifier

common

JobKind

string

Training Job Type

PyTorchJob

DefaultCpuPerWorker

integer

Default CPU allocation per worker

90

DefaultGpuPerWorker

integer

Default GPU allocation per worker

8

DefaultMemoryPerWorker

integer

Default memory allocation per worker, in GB

500

DefaultShareMemory

integer

Default shared memory allocation, in GB

500

ParamSettings

array<object>

Parameter Settings

object

Parameter

ParamName

string

Parameter Name

ITERATION

ParamDesc

string

Parameter Description

number

ParamValue

string

Parameter Value

100

DefaultValue

string

Default Parameter Value

100

ParamRegex

string

Validation regex for the parameter

[0-9]+

ParamType

string

Parameter type

number

StaticConfig

object

Static Configuration

FrameWork

string

Framework

PyTorch

SoftwareStack

string

Software Stack

python

Os

string

Operating System

linux

Parameters

string

Parameter count

7B

VersionId

integer

Version ID

1

RequestId

string

Request ID

E67E2E4C-2B47-5C55-AA17-1D771E070AEF

AccessDeniedDetail

string

Access denial details

{}

TotalCount

integer

Total count

0

Examples

Success response

JSON format

{
  "Data": {
    "WorkloadId": 13,
    "WorkloadName": "test",
    "WorkloadDescription": "test",
    "WorkloadType": "AI",
    "Family": "AI",
    "Scene": "NLP-LLM",
    "Scope": "common",
    "JobKind": "PyTorchJob",
    "DefaultCpuPerWorker": 90,
    "DefaultGpuPerWorker": 8,
    "DefaultMemoryPerWorker": 500,
    "DefaultShareMemory": 500,
    "ParamSettings": [
      {
        "ParamName": "ITERATION",
        "ParamDesc": "number",
        "ParamValue": "100",
        "DefaultValue": "100",
        "ParamRegex": "[0-9]+",
        "ParamType": "number"
      }
    ],
    "StaticConfig": {
      "FrameWork": "PyTorch",
      "SoftwareStack": "python",
      "Os": "linux",
      "Parameters": "7B"
    },
    "VersionId": 1
  },
  "RequestId": "E67E2E4C-2B47-5C55-AA17-1D771E070AEF",
  "AccessDeniedDetail": "{}",
  "TotalCount": 0
}

Error codes

HTTP status code

Error code

Error message

Description

400 NotFound not found. Data does not exist

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.

阿里云首页 智能计算灵骏 相关技术圈