Перейти к основному содержанию
POST
Create project

Заголовки

X-Workspace-Id
string

Workspace ID

Тело

application/json
name
string
обязательно

Name of the project

Пример:

"Web Servers"

hexColor
string

Hex color of the project

Пример:

"#78716C"

description
string

What the project covers

hostIds
string[]

Asset (host) IDs picked by hand

scopeRules
object[]

Scope rules; matching assets join the project

autoAddAssets
boolean
по умолчанию:true

Add assets found later when they match a rule

template
string

Workflow template (file name of a default workflow) for the pipeline. Ignored when tools are given.

Пример:

"vulnerability_scan_basic.yaml"

tools
object[]

Tools of the pipeline, with optional stages

workflowName
string

Name of the pipeline

on
object

When the pipeline runs on its own: schedules and "assets added". Requires a pipeline. Replaces schedule and onAssetsAdded.

schedule
string

Deprecated, use on.schedule. Cron schedule (UTC) of the pipeline, e.g. "0 2 * * 1". Requires a pipeline.

Пример:

"0 0 */3 * *"

onAssetsAdded
object

Deprecated, use on.assetsAdded. Run the pipeline on assets as they join the project. Requires a pipeline.

runNow
boolean

Start a run on the whole scope right after creation

Ответ

200 - application/json
id
string
обязательно
createdAt
string<date-time>
обязательно
updatedAt
string<date-time>
обязательно
name
string
обязательно
autoAddAssets
boolean
обязательно
totalAssets
number
обязательно
hexColor
string
Пример:

"#78716C"

description
string | null
archivedAt
string<date-time> | null
projectWorkflows
object[]
lastRunAt
string<date-time> | null