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

Exporting the Template Content

Function

This API is used to export the template content.

Calling Method

For details, see Calling APIs.

URI

POST /v1/{project_id}/scan-templates/{template_id}/export

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

template_id

Yes

String

Template ID.

project_id

Yes

String

Project ID, which is used to identify a specific project.

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

bucket

No

String

OBS bucket name.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

status

String

Status.

bucket

String

Bucket name.

full_file_name

String

Full path file name.

create_time

String

Creation time.

start_time

String

Start time.

end_time

String

End time.

failed_description

String

File description.

Status code: 201

Rule imported.

Example Requests

POST /v1/{project_id}/scan-templates/{template_id}/export

{
  "bucket" : "string"
}

Example Responses

None

Status Codes

Status Code

Description

200

Request succeeded. The export task status is returned.

201

Rule imported.

401

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

403

Unauthorized to access the resource.

404

The specified task or project is not found.

Error Codes

See Error Codes.