Upsert CLI connection
Set or replace a project's CLI connection credentials (e.g. the kubectl CLI's KUBECONFIG_CONTENTS). The credentials are tested in a read-only ephemeral sandbox first unless skipTest is set: a failed test saves nothing and is refused with reason: connection_test_failed, and a passed test records the connection as verified in the same step. Values are encrypted server-side and never returned. Requires write access to the target project.
POST https://api.sazabi.com/v1/sandbox-clis/config
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/sandbox-clis/config" \ -H "Content-Type: application/json" \ -d '{ "cliType": "string", "environmentVariables": [ { "key": "string", "value": "string" } ] }'{ "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "cliType": "string", "envVarKeys": [ "string" ], "connectionTest": "passed"}