import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const repositoryInspectionDetails = await client.repositories.retrieveInspection('id');
console.log(repositoryInspectionDetails.id);{
"id": "<string>",
"commit_sha": "<string>",
"inspected_at": 123,
"repository_manifest": {
"container_config": {
"base_image_name": "<string>",
"setup_commands": [
"<string>"
],
"architecture": "x86_64"
},
"workspaces": [
{
"build_tool": [
"<string>"
],
"name": "<string>",
"path": "<string>",
"workspace_setup_commands": [
"<string>"
],
"workspace_refresh_commands": [
"<string>"
],
"dev_commands": {
"install": [
"<string>"
],
"build": [
"<string>"
],
"test": [
"<string>"
],
"lint": [
"<string>"
],
"scripts": [
"<string>"
]
}
}
],
"languages": [
{
"language": "<string>",
"version": "<string>"
}
],
"containerized_services": [
{
"name": "<string>",
"image": "<string>",
"credentials": {
"username": "<string>",
"password": "<string>"
},
"env": {},
"port_mappings": [
"<string>"
],
"options": "<string>"
}
],
"required_env_vars": [
"<string>"
],
"env_vars": {}
},
"status": "invalid",
"user_manifest": {
"container_config": {
"base_image_name": "<string>",
"setup_commands": [
"<string>"
],
"architecture": "x86_64"
},
"workspaces": [
{
"build_tool": [
"<string>"
],
"name": "<string>",
"path": "<string>",
"workspace_setup_commands": [
"<string>"
],
"workspace_refresh_commands": [
"<string>"
],
"dev_commands": {
"install": [
"<string>"
],
"build": [
"<string>"
],
"test": [
"<string>"
],
"lint": [
"<string>"
],
"scripts": [
"<string>"
]
}
}
],
"languages": [
{
"language": "<string>",
"version": "<string>"
}
],
"containerized_services": [
{
"name": "<string>",
"image": "<string>",
"credentials": {
"username": "<string>",
"password": "<string>"
},
"env": {},
"port_mappings": [
"<string>"
],
"options": "<string>"
}
],
"required_env_vars": [
"<string>"
],
"env_vars": {}
},
"build_status": "image_building",
"blueprint_id": "<string>",
"blueprint_name": "<string>",
"workflow_contexts": {}
}Get a repository inspection by id.
import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const repositoryInspectionDetails = await client.repositories.retrieveInspection('id');
console.log(repositoryInspectionDetails.id);{
"id": "<string>",
"commit_sha": "<string>",
"inspected_at": 123,
"repository_manifest": {
"container_config": {
"base_image_name": "<string>",
"setup_commands": [
"<string>"
],
"architecture": "x86_64"
},
"workspaces": [
{
"build_tool": [
"<string>"
],
"name": "<string>",
"path": "<string>",
"workspace_setup_commands": [
"<string>"
],
"workspace_refresh_commands": [
"<string>"
],
"dev_commands": {
"install": [
"<string>"
],
"build": [
"<string>"
],
"test": [
"<string>"
],
"lint": [
"<string>"
],
"scripts": [
"<string>"
]
}
}
],
"languages": [
{
"language": "<string>",
"version": "<string>"
}
],
"containerized_services": [
{
"name": "<string>",
"image": "<string>",
"credentials": {
"username": "<string>",
"password": "<string>"
},
"env": {},
"port_mappings": [
"<string>"
],
"options": "<string>"
}
],
"required_env_vars": [
"<string>"
],
"env_vars": {}
},
"status": "invalid",
"user_manifest": {
"container_config": {
"base_image_name": "<string>",
"setup_commands": [
"<string>"
],
"architecture": "x86_64"
},
"workspaces": [
{
"build_tool": [
"<string>"
],
"name": "<string>",
"path": "<string>",
"workspace_setup_commands": [
"<string>"
],
"workspace_refresh_commands": [
"<string>"
],
"dev_commands": {
"install": [
"<string>"
],
"build": [
"<string>"
],
"test": [
"<string>"
],
"lint": [
"<string>"
],
"scripts": [
"<string>"
]
}
}
],
"languages": [
{
"language": "<string>",
"version": "<string>"
}
],
"containerized_services": [
{
"name": "<string>",
"image": "<string>",
"credentials": {
"username": "<string>",
"password": "<string>"
},
"env": {},
"port_mappings": [
"<string>"
],
"options": "<string>"
}
],
"required_env_vars": [
"<string>"
],
"env_vars": {}
},
"build_status": "image_building",
"blueprint_id": "<string>",
"blueprint_name": "<string>",
"workflow_contexts": {}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Inspection ID
OK
The ID of the inspection.
The sha of the inspected version of the Repository.
Inspection time of the Repository Version (Unix timestamp milliseconds).
Repository manifest containing container config and workspace details.
Show child attributes
The status of the repository inspection.
invalid, repo_auth_pending, repo_authentication_failure, repo_access_failure, inspection_pending, inspection_failed, inspection_success, inspection_user_manifest_added User uploaded repository manifest containing container config and workspace details.
Show child attributes
The status of the linked Blueprint build.
image_building, image_build_success, image_build_failure The blueprint ID associated with this inspection if successful.
The blueprint name associated with this inspection if successful.
Workflow contexts mapping workflow names to their processing details.
Show child attributes
Was this page helpful?