ci.workflows.convertTranslate a GitHub Actions or GitLab CI file into a Deutsche Cloud workflow
Answers `{ yaml, valid, issues, notes }`; `notes` lists what had no Deutsche Cloud equivalent and was left out. The result is validated by the real parser, with one repair round, and returned rather than committed. 503 when the installation has no AI provider configured. The prompt it uses is public at /docs/workflows/prompt.md.
Request syntax
POST /ci/api/workflows/convert
{
"source": "string",
"from": "enum",
"filename": "string"
}Request body
sourceRequiredstring
The file to translate, as it is, 1 to 65,536 characters
Constraints: 1-65536 chars
fromRequiredenum
What the file is: github (a GitHub Actions workflow), gitlab (a GitLab CI configuration) or other (any other CI system)
One of:
github,gitlab,otherfilenameOptionalstring
Its original file name, up to 200 characters, given to the model as context and naming the parser’s issues; omitted: issues say "workflow"
Constraints: 1-200 chars
Response
200 with { yaml, valid, issues, notes }: the translated file in the native format, whether it parses, the parser’s issues (strings) when it does not, and what was left out. An invalid first answer gets one repair round, kept only if it parses. 503 when no AI provider or model is configured; 502 when the provider does not answer the first request.
A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.
Errors
- 400The request does not pass the schema above. The body is { "error": …, "issues": […] }, one issue per field.
- 401No credentials, or an access key that is unknown, revoked or expired.
- 403The caller's policies do not allow ci:ListRuns on this resource. The body names the action and the resource, and the refusal is recorded in the audit log.
- 404The resource does not exist in your organization.
Examples
The required parameters only, with example values. Replace id and the other placeholders with your own.
dcloud ci workflows convert --source example --from githubcurl -X POST "https://console.platform.deutschecloud.app/ci/api/workflows/convert" \
-H "Authorization: EWS-ACCESS-KEY $ACCESS_KEY" \
-H "Content-Type: application/json" \
-d '{"source":"example","from":"github"}'Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_ci_workflows_convert.