Saltar al contenido principal

kobana kadu environments

Comandos de kobana kadu environments. Toda opción global (Opciones globales) vale aquí.

ComandoHTTPDescripción
environments listGET /v1/environmentsLista entornos
environments createPOST /v1/environmentsCrea entorno
environments getGET /v1/environments/{id}Detalla el entorno
environments updatePATCH /v1/environments/{id}Actualiza entorno
environments deleteDELETE /v1/environments/{id}Elimina entorno (soft delete)

environments list​

Lista entornos

kobana kadu environments list [OPCIONES]

GET /v1/environments

Parámetros de consulta

NombreTipoObligatorioDescripción
cursorstringno
limitnumberno
sort_bystringnoCampo en snake_case: created_at (predeterminado), updated_at o un campo filtrable.
sort_orderstringnoPredeterminado: desc. Valores: asc, desc.

Respuestas

HTTPDescripción
200OK
503AS_UNAVAILABLE — la verificación del token no está disponible (Authorization Server fuera de línea o configuración ausente). Intenta de nuevo (Retry-After).

environments create​

Crea entorno

kobana kadu environments create [OPCIONES]

POST /v1/environments

Cuerpo de la solicitud

NombreTipoObligatorioDescripción
labelstringsí
colorstringsí
branchstringno

Otros campos y objetos anidados: kobana schema kadu.environments.create.

Respuestas

HTTPDescripción
201created
400VALIDATION_ERROR
409CONFLICT — ya existe un entorno vivo con este label / IDEMPOTENCY_KEY_REUSED
503AS_UNAVAILABLE — la verificación del token no está disponible (Authorization Server fuera de línea o configuración ausente). Intenta de nuevo (Retry-After).

environments get​

Detalla el entorno

kobana kadu environments get [ID] [OPCIONES]

GET /v1/environments/{id}

Argumentos de la ruta: id

Respuestas

HTTPDescripción
200OK
404not found
503AS_UNAVAILABLE — la verificación del token no está disponible (Authorization Server fuera de línea o configuración ausente). Intenta de nuevo (Retry-After).

environments update​

Actualiza entorno

kobana kadu environments update [ID] [OPCIONES]

PATCH /v1/environments/{id}

Argumentos de la ruta: id

Cuerpo de la solicitud

NombreTipoObligatorioDescripción
labelstringno
colorstringno
branchstringno

Otros campos y objetos anidados: kobana schema kadu.environments.update.

Respuestas

HTTPDescripción
200OK
404NOT_FOUND
409CONFLICT — label ya usado / IDEMPOTENCY_KEY_REUSED
503AS_UNAVAILABLE — la verificación del token no está disponible (Authorization Server fuera de línea o configuración ausente). Intenta de nuevo (Retry-After).

environments delete​

Elimina entorno (soft delete)

kobana kadu environments delete [ID] [OPCIONES]

DELETE /v1/environments/{id}

Rechazado mientras el entorno tenga secrets o programaciones.

Argumentos de la ruta: id

Respuestas

HTTPDescripción
200OK
404NOT_FOUND
409ENVIRONMENT_IN_USE — details: { secrets, schedules } / REPO_MANAGED — declarado en el kadu.yaml: quítalo de allí
503AS_UNAVAILABLE — la verificación del token no está disponible (Authorization Server fuera de línea o configuración ausente). Intenta de nuevo (Retry-After).