Custom Runtimes
List runtimes
Custom Runtimes
List runtimes
Returns a list of runtimes in your project.
import Riza from '@riza-io/api';
const client = new Riza({
apiKey: process.env['RIZA_API_KEY'], // This is the default and can be omitted
});
async function main() {
const runtime = await client.runtimes.list();
console.log(runtime.runtimes);
}
main();
{
"runtimes": [
{
"additional_python_imports": "<string>",
"id": "<string>",
"language": "python",
"manifest_file": {
"contents": "<string>",
"name": "requirements.txt"
},
"name": "<string>",
"revision_id": "<string>",
"status": "<string>"
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Response
200
application/json
OK
Available options:
python
, javascript
import Riza from '@riza-io/api';
const client = new Riza({
apiKey: process.env['RIZA_API_KEY'], // This is the default and can be omitted
});
async function main() {
const runtime = await client.runtimes.list();
console.log(runtime.runtimes);
}
main();
{
"runtimes": [
{
"additional_python_imports": "<string>",
"id": "<string>",
"language": "python",
"manifest_file": {
"contents": "<string>",
"name": "requirements.txt"
},
"name": "<string>",
"revision_id": "<string>",
"status": "<string>"
}
]
}