Skip to main content

kobana kadu environments

Commands of kobana kadu environments. Every global option (Global options) applies here.

CommandHTTPDescription
environments listGET /v1/environmentsList environments
environments createPOST /v1/environmentsCreate environment
environments getGET /v1/environments/{id}Get environment details
environments updatePATCH /v1/environments/{id}Update environment
environments deleteDELETE /v1/environments/{id}Delete environment (soft delete)

environments list​

List environments

kobana kadu environments list [OPTIONS]

GET /v1/environments

Query parameters

NameTypeRequiredDescription
cursorstringno
limitnumberno
sort_bystringnoField in snake_case: created_at (default), updated_at or a filterable field.
sort_orderstringnoDefault: desc. Values: asc, desc.

Responses

HTTPDescription
200OK
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

environments create​

Create environment

kobana kadu environments create [OPTIONS]

POST /v1/environments

Request body

NameTypeRequiredDescription
labelstringyes
colorstringyes
branchstringno

More fields and nested objects: kobana schema kadu.environments.create.

Responses

HTTPDescription
201created
400VALIDATION_ERROR
409CONFLICT — an active environment with this label already exists / IDEMPOTENCY_KEY_REUSED
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

environments get​

Get environment details

kobana kadu environments get [ID] [OPTIONS]

GET /v1/environments/{id}

Path arguments: id

Responses

HTTPDescription
200OK
404not found
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

environments update​

Update environment

kobana kadu environments update [ID] [OPTIONS]

PATCH /v1/environments/{id}

Path arguments: id

Request body

NameTypeRequiredDescription
labelstringno
colorstringno
branchstringno

More fields and nested objects: kobana schema kadu.environments.update.

Responses

HTTPDescription
200OK
404NOT_FOUND
409CONFLICT — label already in use / IDEMPOTENCY_KEY_REUSED
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

environments delete​

Delete environment (soft delete)

kobana kadu environments delete [ID] [OPTIONS]

DELETE /v1/environments/{id}

Rejected while the environment has secrets or schedules.

Path arguments: id

Responses

HTTPDescription
200OK
404NOT_FOUND
409ENVIRONMENT_IN_USE — details: { secrets, schedules } / REPO_MANAGED — declared in kadu.yaml: remove it from there
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).