Updated on 2026-10-27 GMT+08:00

Obtaining user feature information

Function

Obtaining user feature information

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/feature

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

snapshot

Boolean

Definition

Whether snapshots are supported.

Range

  • true: Yes

  • false: No

domain_name_resolution

Boolean

Definition

Whether private domain name resolution is supported.

Range

  • true: Yes

  • false: No

tracing_runtime

Array of strings

Definition

Languages supporting tracing.

Range

N/A

v2_runtime

Array of strings

Definition

Languages supported by v2.

Range

N/A

ephemeral_storage

Boolean

Definition

Whether ephemeral storage is supported.

Range

  • true: Yes

  • false: No

metric_policy

Boolean

Definition

Whether the metric policy for reserved instances is supported.

Range

  • true: Yes

  • false: No

Status code: 400

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Example Requests

Obtaining user feature information

GET /v2/{project_id}/fgs/feature

Example Responses

Status code: 200

{
  "snapshot" : true,
  "domain_name_resolution" : true,
  "tracing_runtime" : [ "Java" ],
  "v2_runtime" : [ "python2.7", "python3.6" ],
  "ephemeral_storage" : true,
  "metric_policy" : true
}

Status Codes

Status Code

Description

200

OK

400

Bad request.

Error Codes

See Error Codes.