List the values a deployment needs in a project
const url = 'https://example.com/v1/deployments/example/values';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/deployments/example/values \ --header 'Authorization: Bearer <token>'Every value the deployment needs set in the project before it serves there: each tool’s secrets and env values with no default, a model key for each agent version it ships or carries, and the pack service’s own env. Each is read where a run in that project reads it, under the env the runtime serves: foundAt says where it’s set, and problem why it isn’t ready. Names only, never a value. In the deployment’s own project, a secret of a tool version made there is read where a run reads it: at the scope the version recorded, or the workspace’s when it recorded none. Any other value is found wherever it’s set. In another project, the one a promotion would take it to, a tool’s secret counts only at a scope the caller administers, as a promotion by the caller would record it, so the list says what that promotion’s check would say. Needs what listing secrets in that project needs (admin on it), read on the project the deployment serves, and read on the workspace, as every deployments route does.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”The values, names only.
object
Example
{ "data": [ { "foundAt": "project" } ]}A projectId that isn’t a project id, or none for a deployment whose project this runtime doesn’t record (bad-input).
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Missing / malformed / expired / revoked bearer token.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}No admin on the project, or no read on the workspace.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}No deployment with that id under this workspace, or one in a project the caller doesn’t read (deployment-not-found), or projectId names no project of this workspace (project-not-found).
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}rate-limit-exceeded with details.limit: "api-requests", on a runtime that sets workspace limits (Kindgi Cloud): this workspace’s limit on API requests a minute is reached, so the request wasn’t run; Retry-After says when to send it again.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”The database was too busy to answer in time (database-busy), or the authorization store couldn’t be reached (authz-backend-unavailable); Retry-After (whole seconds) says when to try again.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”See also
GET /v1/deployments/{deploymentId}: Fetch a signed deployment recordGET /v1/deployments/{deploymentId}/pack-env: Show where each name a deployment's pack declares is setPOST /v1/deployments/{deploymentId}/secrets: Sync secrets against a deploymentPOST /v1/deployments/{deploymentId}/promotions: Promote a deployment to the next environment- Kindgi 0.1.10
- Error code
authz-backend-unavailable - Error code
bad-input - Error code
database-busy - Error code
deployment-not-found - Error code
project-not-found - Error code
rate-limit-exceeded - Every error code