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
});
const revision = await client.runtimes.revisions.get('runtime_id', 'revision_id');
console.log(revision.id);{
"id": "<string>",
"manifest_file": {
"contents": "<string>"
},
"runtime_id": "<string>",
"additional_python_imports": "<string>"
}Custom Runtimes
Retrieve runtime revision
Retrieves a runtime revision.
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
});
const revision = await client.runtimes.revisions.get('runtime_id', 'revision_id');
console.log(revision.id);{
"id": "<string>",
"manifest_file": {
"contents": "<string>"
},
"runtime_id": "<string>",
"additional_python_imports": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
⌘I