Updated on 2026-01-13 GMT+08:00

Querying the Data Protection Type

Function

This API is used to query the lifecycle type of data protection in a project.

Calling Method

For details, see Calling APIs.

URI

GET /v1/{project_id}/data-protect-types

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

life_cycle

Yes

String

Data lifecycle, which includes collection, transmission, storage, usage, sharing, and destruction.

limit

No

Integer

Number of records on each page.

offset

No

Integer

Pagination offset.

Request Parameters

None

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

[items]

Array of DataTypeDetail objects

Data protection measure details.

Table 4 DataTypeDetail

Parameter

Type

Description

category

String

Category of data protection measures.

create_time

Long

Creation time.

data_type

String

Data protection type.

data_type_id

String

Value of level_id when the data protection type is LEVEL.

id

Long

Data protection measure ID.

is_deleted

Boolean

Deletion flag.

life_cycle

String

Lifecycle type.

update_time

Long

Update time.

Example Requests

None

Example Responses

None

Status Codes

Status Code

Description

200

Query succeeded.

401

Unauthorized. The user is not logged in or the token is invalid.

403

Unauthorized to access the resource.

404

The specified project does not exist.

Error Codes

See Error Codes.