Help Center/ CodeArts Build/ API Reference/ APIs/ Tenant Management/ Querying the Built-in Executor Specifications
Updated on 2025-08-22 GMT+08:00

Querying the Built-in Executor Specifications

Function

This API is used to query the specifications of the built-in executor.

Calling Method

For details, see Calling APIs.

URI

GET /v2/resource/spec

Table 1 Query Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition

CodeArts project ID. For details about how to obtain the CodeArts project ID, see Obtaining a CodeArts Project ID.

Constraints

N/A.

Range

Use a 32-character string that includes digits and lowercase letters.

Default Value

N/A.

arch

Yes

String

Definition

CPU architecture of the server.

Constraints

x86-64 or arm

Range

x86-64 or arm.

Default Value

x86-64

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Definition

User token. (The value of the X-Subject-Token response header is the user token.) It is obtained by calling the IAM API. For details, see Obtaining an IAM User Token.

Constraints

Global tenant tokens are not supported. Use a region-level token whose scope is project.

Range

N/A.

Default Value

N/A.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

[items]

Array of strings

Definition

Specifications of the built-in executor.

Range

N/A.

Status code: 400

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Status code: 401

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Status code: 403

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Status code: 404

Table 7 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Status code: 500

Table 8 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Example Requests

GET https://{endpoint}/v2/resource/spec?project_id=6ecbc5bac7c8442fb3d2563d53c13582&arch=x86-64

Example Responses

Status code: 200

OK

[ "DEFAULT", "2U8G" ]

Status Codes

Status Code

Description

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

Error Codes

See Error Codes.