Skip to content

CLI reference — Cloud Accounts

Generated by bun run generate:cli-reference from spec/admin-api-openapi.json. Do not hand-edit — regenerate after refreshing the spec.

Every operation below is documented CLI-first (nayaone-admin api <operationId>) per PRD-407/DO-7. The REST /admin-api/* method+path is the fallback/alternative integration option.

5 operations in this area.

Probe the BYOA account credentials against the canonical permissions inventory.

CLI (preferred):

Terminal window
nayaone-admin api adminCheckCloudAccountInspectPermissions --param id=<id> --body '{}'

REST fallback: POST /admin-api/cloud-accounts/{id}/inspect/permissions

BYOA → Pulumi stack-config seeds (with plaintext secrets) for the runner. Admin-only (PRD-9 §7).

CLI (preferred):

Terminal window
nayaone-admin api adminGetCloudAccountRunnerStackConfig

REST fallback: GET /admin-api/cloud-accounts/runner-stack-config

Sanitised BYOA stack-config preview (secret values replaced with &lt;set&gt;) — debug only.

CLI (preferred):

Terminal window
nayaone-admin api adminPreviewCloudAccountStackConfig

REST fallback: GET /admin-api/cloud-accounts/preview-stack-config

adminRefreshCloudAccountInspectPermissions

Section titled “adminRefreshCloudAccountInspectPermissions”

Force-refresh the permissions probe cache.

CLI (preferred):

Terminal window
nayaone-admin api adminRefreshCloudAccountInspectPermissions --param id=<id> --body '{}'

REST fallback: POST /admin-api/cloud-accounts/{id}/inspect/permissions/refresh

Debug-resolve a cloud account (platform admin only)

CLI (preferred):

Terminal window
nayaone-admin api adminResolveCloudAccount

REST fallback: GET /admin-api/cloud-accounts/resolve