Help Center/ FunctionGraph/ API Reference/ APIs/ Function Lifecycle Management/ Obtaining the runtime types supported by a user
Updated on 2026-10-27 GMT+08:00

Obtaining the runtime types supported by a user

Function

Obtain the list of runtime types supported by all users.

Calling Method

For details, see Calling APIs.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions. For details about the required permissions, see Permissions Policies and Supported Actions.

URI

GET /v2/{project_id}/fgs/runtimetypes

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Parameter description:

Project ID. For details, see Obtaining a Project ID.

Constraints:

None

Value range:

32 characters, including letters and digits.

Default value:

None

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Parameter description:

User token.

The token can be obtained by calling the IAM API. The value of X-Subject-Token in the response header is the user token.

Constraints:

None

Value range:

None

Default value:

None

Content-Type

No

String

Parameter description:

Specifies the type (or format) of the message body.

Constraints:

None

Value range:

Only application/json is supported.

Default value:

application/json

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

[items]

Array of RuntimeTypeItem objects

Parameter description:

Whether the tenant can return runtime response bodies.

Range:

None

Table 4 RuntimeTypeItem

Parameter

Type

Description

type

String

Definition

Runtime type.

Range

N/A

display_name

String

Definition

Runtime name.

Range

N/A

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: 500

Table 7 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Example Requests

Obtain the list of runtime types supported by a user.

GET /v2/{project_id}/fgs/runtimetypes

Example Responses

Status code: 200

[ {
  "type" : "Java11",
  "display_name" : "Java 11"
}, {
  "type" : "Java21",
  "display_name" : "Java 21"
} ]

Status Codes

Status Code

Description

200

OK

401

Unauthorized.

403

Forbidden.

500

Internal server error.

Error Codes

See Error Codes.