All URIs are relative to /api/3.1
Method | HTTP request | Description |
---|---|---|
allGitBranches | GET /projects/{project_id}/git_branches | Get All Git Branches |
allGitConnectionTests | GET /projects/{project_id}/git_connection_tests | Get All Git Connection Tests |
allProjectFiles | GET /projects/{project_id}/files | Get All Project Files |
allProjects | GET /projects | Get All Projects |
createGitBranch | POST /projects/{project_id}/git_branch | Checkout New Git Branch |
createGitDeployKey | POST /projects/{project_id}/git/deploy_key | Create Deploy Key |
createProject | POST /projects | Create Project |
deleteGitBranch | DELETE /projects/{project_id}/git_branch/{branch_name} | Delete a Git Branch |
deleteRepositoryCredential | DELETE /projects/{root_project_id}/credential/{credential_id} | Delete Repository Credential |
deployToProduction | POST /projects/{project_id}/deploy_to_production | Deploy To Production |
findGitBranch | GET /projects/{project_id}/git_branch/{branch_name} | Find a Git Branch |
getAllRepositoryCredentials | GET /projects/{root_project_id}/credentials | Get All Repository Credentials |
gitBranch | GET /projects/{project_id}/git_branch | Get Active Git Branch |
gitDeployKey | GET /projects/{project_id}/git/deploy_key | Git Deploy Key |
manifest | GET /projects/{project_id}/manifest | Get Manifest |
project | GET /projects/{project_id} | Get Project |
projectFile | GET /projects/{project_id}/files/file | Get Project File |
projectValidationResults | GET /projects/{project_id}/validate | Cached Project Validation Results |
projectWorkspace | GET /projects/{project_id}/current_workspace | Get Project Workspace |
resetProjectToProduction | POST /projects/{project_id}/reset_to_production | Reset To Production |
resetProjectToRemote | POST /projects/{project_id}/reset_to_remote | Reset To Remote |
runGitConnectionTest | GET /projects/{project_id}/git_connection_tests/{test_id} | Run Git Connection Test |
updateGitBranch | PUT /projects/{project_id}/git_branch | Update Project Git Branch |
updateProject | PATCH /projects/{project_id} | Update Project |
updateRepositoryCredential | PUT /projects/{root_project_id}/credential/{credential_id} | Create Repository Credential |
validateProject | POST /projects/{project_id}/validate | Validate Project |
[GitBranch] allGitBranches(projectId)
Get All Git Branches
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var projectId = "projectId_example"; // String | Project Id
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.allGitBranches(projectId, callback);
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | Project Id |
No authorization required
- Content-Type: application/json
- Accept: application/json
[GitConnectionTest] allGitConnectionTests(projectId, opts)
Get All Git Connection Tests
Get All Git Connection Tests Returns a list of tests which can be run against a project's (or the dependency project for the provided remote_url) git connection. Call Run Git Connection Test to execute each test in sequence. Tests are ordered by increasing specificity. Tests should be run in the order returned because later tests require functionality tested by tests earlier in the test list. For example, a late-stage test for write access is meaningless if connecting to the git server (an early test) is failing.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var projectId = "projectId_example"; // String | Project Id
var opts = {
'remoteUrl': "remoteUrl_example" // String | (Optional: leave blank for root project) The remote url for remote dependency to test.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.allGitConnectionTests(projectId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | Project Id | |
remoteUrl | String | (Optional: leave blank for root project) The remote url for remote dependency to test. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[ProjectFile] allProjectFiles(projectId, opts)
Get All Project Files
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var projectId = "projectId_example"; // String | Project Id
var opts = {
'fields': "fields_example" // String | Requested fields
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.allProjectFiles(projectId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | Project Id | |
fields | String | Requested fields | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Project] allProjects(opts)
Get All Projects
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var opts = {
'fields': "fields_example" // String | Requested fields
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.allProjects(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
fields | String | Requested fields | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
GitBranch createGitBranch(projectId, opts)
Checkout New Git Branch
Create and Checkout a Git Branch Creates and checks out a new branch in the given project repository Only allowed in development mode - Call `update_session` to select the 'dev' workspace. Optionally specify a branch name, tag name or commit SHA as the start point in the ref field. If no ref is specified, HEAD of the current branch will be used as the start point for the new branch.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var projectId = "projectId_example"; // String | Project Id
var opts = {
'body': new LookerApi31Reference.GitBranch() // GitBranch | Git Branch
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createGitBranch(projectId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | Project Id | |
body | GitBranch | Git Branch | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
'String' createGitDeployKey(projectId)
Create Deploy Key
Create Git Deploy Key Create a public/private key pair for authenticating ssh git requests from Looker to a remote git repository for a particular Looker project. Returns the public key of the generated ssh key pair. Copy this public key to your remote git repository's ssh keys configuration so that the remote git service can validate and accept git requests from the Looker server.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var projectId = "projectId_example"; // String | Project Id
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createGitDeployKey(projectId, callback);
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | Project Id |
'String'
No authorization required
- Content-Type: application/json
- Accept: text/plain
Project createProject(opts)
Create Project
Create A Project dev mode required. - Call `update_session` to select the 'dev' workspace. `name` is required. `git_remote_url` is not allowed. To configure Git for the newly created project, follow the instructions in `update_project`.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var opts = {
'body': new LookerApi31Reference.Project() // Project | Project
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createProject(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | Project | Project | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
'String' deleteGitBranch(projectId, branchName)
Delete a Git Branch
Delete the specified Git Branch Delete git branch specified in branch_name path param from local and remote of specified project repository
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var projectId = "projectId_example"; // String | Project Id
var branchName = "branchName_example"; // String | Branch Name
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.deleteGitBranch(projectId, branchName, callback);
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | Project Id | |
branchName | String | Branch Name |
'String'
No authorization required
- Content-Type: application/json
- Accept: application/json
'String' deleteRepositoryCredential(rootProjectId, credentialId)
Delete Repository Credential
Repository Credential for a remote dependency Admin required. `root_project_id` is required. `credential_id` is required.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var rootProjectId = "rootProjectId_example"; // String | Root Project Id
var credentialId = "credentialId_example"; // String | Credential Id
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.deleteRepositoryCredential(rootProjectId, credentialId, callback);
Name | Type | Description | Notes |
---|---|---|---|
rootProjectId | String | Root Project Id | |
credentialId | String | Credential Id |
'String'
No authorization required
- Content-Type: application/json
- Accept: application/json
'String' deployToProduction(projectId)
Deploy To Production
Deploy LookML from this Development Mode Project to Production Git must have been configured, must be in dev mode and deploy permission required Deploy is a two / three step process 1. Push commits in current branch of dev mode project to the production branch (origin/master). Note a. This step is skipped in read-only projects. Note b. If this step is unsuccessful for any reason (e.g. rejected non-fastforward because production branch has commits not in current branch), subsequent steps will be skipped. 2. If this is the first deploy of this project, create the production project with git repository. 3. Pull the production branch into the production project.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var projectId = "projectId_example"; // String | Id of project
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.deployToProduction(projectId, callback);
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | Id of project |
'String'
No authorization required
- Content-Type: application/json
- Accept: application/json
GitBranch findGitBranch(projectId, branchName)
Find a Git Branch
Get the specified Git Branch Returns the git branch specified in branch_name path param if it exists in the given project repository
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var projectId = "projectId_example"; // String | Project Id
var branchName = "branchName_example"; // String | Branch Name
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.findGitBranch(projectId, branchName, callback);
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | Project Id | |
branchName | String | Branch Name |
No authorization required
- Content-Type: application/json
- Accept: application/json
[RepositoryCredential] getAllRepositoryCredentials(rootProjectId)
Get All Repository Credentials
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var rootProjectId = "rootProjectId_example"; // String | Root Project Id
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getAllRepositoryCredentials(rootProjectId, callback);
Name | Type | Description | Notes |
---|---|---|---|
rootProjectId | String | Root Project Id |
No authorization required
- Content-Type: application/json
- Accept: application/json
GitBranch gitBranch(projectId)
Get Active Git Branch
Get the Current Git Branch Returns the git branch currently checked out in the given project repository
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var projectId = "projectId_example"; // String | Project Id
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.gitBranch(projectId, callback);
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | Project Id |
No authorization required
- Content-Type: application/json
- Accept: application/json
'String' gitDeployKey(projectId)
Git Deploy Key
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var projectId = "projectId_example"; // String | Project Id
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.gitDeployKey(projectId, callback);
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | Project Id |
'String'
No authorization required
- Content-Type: application/json
- Accept: text/plain
Manifest manifest(projectId)
Get Manifest
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var projectId = "projectId_example"; // String | Project Id
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.manifest(projectId, callback);
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | Project Id |
No authorization required
- Content-Type: application/json
- Accept: application/json
Project project(projectId, opts)
Get Project
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var projectId = "projectId_example"; // String | Project Id
var opts = {
'fields': "fields_example" // String | Requested fields
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.project(projectId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | Project Id | |
fields | String | Requested fields | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
ProjectFile projectFile(projectId, fileId, opts)
Get Project File
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var projectId = "projectId_example"; // String | Project Id
var fileId = "fileId_example"; // String | File Id
var opts = {
'fields': "fields_example" // String | Requested fields
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.projectFile(projectId, fileId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | Project Id | |
fileId | String | File Id | |
fields | String | Requested fields | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
ProjectValidationCache projectValidationResults(projectId, opts)
Cached Project Validation Results
Get Cached Project Validation Results Returns the cached results of a previous project validation calculation, if any. Returns http status 204 No Content if no validation results exist. Validating the content of all the files in a project can be computationally intensive for large projects. Use this API to simply fetch the results of the most recent project validation rather than revalidating the entire project from scratch. A value of `"stale": true` in the response indicates that the project has changed since the cached validation results were computed. The cached validation results may no longer reflect the current state of the project.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var projectId = "projectId_example"; // String | Project Id
var opts = {
'fields': "fields_example" // String | Requested fields
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.projectValidationResults(projectId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | Project Id | |
fields | String | Requested fields | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
ProjectWorkspace projectWorkspace(projectId, opts)
Get Project Workspace
Get Project Workspace Returns information about the state of the project files in the currently selected workspace
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var projectId = "projectId_example"; // String | Project Id
var opts = {
'fields': "fields_example" // String | Requested fields
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.projectWorkspace(projectId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | Project Id | |
fields | String | Requested fields | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
'String' resetProjectToProduction(projectId)
Reset To Production
Reset a project to the revision of the project that is in production. DANGER this will delete any changes that have not been pushed to a remote repository.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var projectId = "projectId_example"; // String | Id of project
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.resetProjectToProduction(projectId, callback);
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | Id of project |
'String'
No authorization required
- Content-Type: application/json
- Accept: application/json
'String' resetProjectToRemote(projectId)
Reset To Remote
Reset a project development branch to the revision of the project that is on the remote. DANGER this will delete any changes that have not been pushed to a remote repository.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var projectId = "projectId_example"; // String | Id of project
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.resetProjectToRemote(projectId, callback);
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | Id of project |
'String'
No authorization required
- Content-Type: application/json
- Accept: application/json
GitConnectionTestResult runGitConnectionTest(projectId, testId, opts)
Run Git Connection Test
Run a git connection test Run the named test on the git service used by this project (or the dependency project for the provided remote_url) and return the result. This is intended to help debug git connections when things do not work properly, to give more helpful information about why a git url is not working with Looker. Tests should be run in the order they are returned by Get All Git Connection Tests.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var projectId = "projectId_example"; // String | Project Id
var testId = "testId_example"; // String | Test Id
var opts = {
'remoteUrl': "remoteUrl_example" // String | (Optional: leave blank for root project) The remote url for remote dependency to test.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.runGitConnectionTest(projectId, testId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | Project Id | |
testId | String | Test Id | |
remoteUrl | String | (Optional: leave blank for root project) The remote url for remote dependency to test. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
GitBranch updateGitBranch(projectId, body)
Update Project Git Branch
Checkout and/or reset --hard an existing Git Branch Only allowed in development mode - Call `update_session` to select the 'dev' workspace. Checkout an existing branch if name field is different from the name of the currently checked out branch. Optionally specify a branch name, tag name or commit SHA to which the branch should be reset. DANGER hard reset will be force pushed to the remote. Unsaved changes and commits may be permanently lost.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var projectId = "projectId_example"; // String | Project Id
var body = new LookerApi31Reference.GitBranch(); // GitBranch | Git Branch
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updateGitBranch(projectId, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | Project Id | |
body | GitBranch | Git Branch |
No authorization required
- Content-Type: application/json
- Accept: application/json
Project updateProject(projectId, body, opts)
Update Project
Update Project Configuration Apply changes to a project's configuration. #### Configuring Git for a Project To set up a Looker project with a remote git repository, follow these steps: 1. Call `update_session` to select the 'dev' workspace. 1. Call `create_git_deploy_key` to create a new deploy key for the project 1. Copy the deploy key text into the remote git repository's ssh key configuration 1. Call `update_project` to set project's `git_remote_url` ()and `git_service_name`, if necessary). When you modify a project's `git_remote_url`, Looker connects to the remote repository to fetch metadata. The remote git repository MUST be configured with the Looker-generated deploy key for this project prior to setting the project's `git_remote_url`. To set up a Looker project with a git repository residing on the Looker server (a 'bare' git repo): 1. Call `update_session` to select the 'dev' workspace. 1. Call `update_project` setting `git_remote_url` to nil and `git_service_name` to "bare".
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var projectId = "projectId_example"; // String | Project Id
var body = new LookerApi31Reference.Project(); // Project | Project
var opts = {
'fields': "fields_example" // String | Requested fields
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updateProject(projectId, body, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | Project Id | |
body | Project | Project | |
fields | String | Requested fields | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
RepositoryCredential updateRepositoryCredential(rootProjectId, credentialId, body)
Create Repository Credential
Configure Repository Credential for a remote dependency Admin required. `root_project_id` is required. `credential_id` is required.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var rootProjectId = "rootProjectId_example"; // String | Root Project Id
var credentialId = "credentialId_example"; // String | Credential Id
var body = new LookerApi31Reference.RepositoryCredential(); // RepositoryCredential | Remote Project Information
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updateRepositoryCredential(rootProjectId, credentialId, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
rootProjectId | String | Root Project Id | |
credentialId | String | Credential Id | |
body | RepositoryCredential | Remote Project Information |
No authorization required
- Content-Type: application/json
- Accept: application/json
ProjectValidation validateProject(projectId, opts)
Validate Project
Validate Project Performs lint validation of all lookml files in the project. Returns a list of errors found, if any. Validating the content of all the files in a project can be computationally intensive for large projects. For best performance, call `validate_project(project_id)` only when you really want to recompute project validation. To quickly display the results of the most recent project validation (without recomputing), use `project_validation_results(project_id)`
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ProjectApi();
var projectId = "projectId_example"; // String | Project Id
var opts = {
'fields': "fields_example" // String | Requested fields
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.validateProject(projectId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | Project Id | |
fields | String | Requested fields | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json