Promote App Version
Moves the App's traffic pointer to a version and marks the previously active one superseded. Returns immediately without waiting for the version to warm; running instances of the old version are reaped once idle. InvalidArgument if the version belongs to another App.
Access: namespace OPERATOR or above (write)
Authorization
BearerAuth A namespace-scoped API key (cpk_…) for machines, or a Xeonr Auth OIDC
token for humans. The key's namespace and role are pinned server-side.
In: header
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
1 <= length <= 641 <= length <= 64Response Body
application/json
application/json
curl -X POST "https://containers.xeonr.io/containers.api.v1.AppService/PromoteAppVersion" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"app": {
"appId": "string",
"namespace": "string",
"label": "string",
"scaling": {
"minInstances": 0,
"maxInstances": 0,
"concurrency": 0,
"idleTimeoutSec": 0,
"activationTimeoutSec": 0
},
"resources": {
"cpuMillis": 0,
"memoryMb": 0,
"ephemeralMb": 0,
"pids": 0
},
"env": {
"property1": "string",
"property2": "string"
},
"egress": {
"egressPolicyId": "string"
},
"state": "APP_STATE_UNSPECIFIED",
"createdAtUnix": "string",
"updatedAtUnix": "string",
"hostname": "string",
"activeVersionId": "string",
"autoStart": true,
"access": "APP_ACCESS_UNSPECIFIED",
"key": "string"
},
"version": {
"versionId": "string",
"appId": "string",
"environmentId": "string",
"port": 0,
"workspace": {
"snapshotId": "string",
"mountPath": "string",
"readOnly": true,
"workspaceId": "string",
"ephemeral": true,
"ephemeralFromSnapshotId": "string",
"volume": {
"sizeMb": "string",
"seedSnapshotId": "string",
"cacheKey": "string"
}
},
"state": "APP_VERSION_STATE_UNSPECIFIED",
"label": "string",
"createdAtUnix": "string",
"workspaces": [
{
"snapshotId": "string",
"mountPath": "string",
"readOnly": true,
"workspaceId": "string",
"ephemeral": true,
"ephemeralFromSnapshotId": "string",
"volume": {
"sizeMb": "string",
"seedSnapshotId": "string",
"cacheKey": "string"
}
}
],
"workingDir": "string"
}
}{
"code": "not_found",
"message": "string",
"details": [
{
"type": "string",
"value": "string",
"debug": {}
}
]
}List App Versions POST
Lists every version of an App, newest first. page_size and page_token are not applied yet: the whole history is returned in one page. **Access:** namespace VIEWER or above (read)
Report Load POST
Records an App's aggregate in-flight request count and last-request time, which drives idle reaping without an RPC per request. last_request_unix 0 with in_flight > 0 is stored as now. rps is accepted but not used yet. **Access:** namespace OPERATOR or above (write)