All URIs are relative to /api/3.1
Method | HTTP request | Description |
---|---|---|
allModelSets | GET /model_sets | Get All Model Sets |
allPermissionSets | GET /permission_sets | Get All Permission Sets |
allPermissions | GET /permissions | Get All Permissions |
allRoles | GET /roles | Get All Roles |
createModelSet | POST /model_sets | Create Model Set |
createPermissionSet | POST /permission_sets | Create Permission Set |
createRole | POST /roles | Create Role |
deleteModelSet | DELETE /model_sets/{model_set_id} | Delete Model Set |
deletePermissionSet | DELETE /permission_sets/{permission_set_id} | Delete Permission Set |
deleteRole | DELETE /roles/{role_id} | Delete Role |
modelSet | GET /model_sets/{model_set_id} | Get Model Set |
permissionSet | GET /permission_sets/{permission_set_id} | Get Permission Set |
role | GET /roles/{role_id} | Get Role |
roleGroups | GET /roles/{role_id}/groups | Get Role Groups |
roleUsers | GET /roles/{role_id}/users | Get Role Users |
setRoleGroups | PUT /roles/{role_id}/groups | Update Role Groups |
setRoleUsers | PUT /roles/{role_id}/users | Update Role Users |
updateModelSet | PATCH /model_sets/{model_set_id} | Update Model Set |
updatePermissionSet | PATCH /permission_sets/{permission_set_id} | Update Permission Set |
updateRole | PATCH /roles/{role_id} | Update Role |
[ModelSet] allModelSets(opts)
Get All Model Sets
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.RoleApi();
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.allModelSets(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
fields | String | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[PermissionSet] allPermissionSets(opts)
Get All Permission Sets
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.RoleApi();
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.allPermissionSets(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
fields | String | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Permission] allPermissions()
Get All Permissions
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.RoleApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.allPermissions(callback);
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json
- Accept: application/json
[Role] allRoles(opts)
Get All Roles
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.RoleApi();
var opts = {
'fields': "fields_example", // String | Requested fields.
'ids': [3.4] // [Number] | Optional list of ids to get specific roles.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.allRoles(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
fields | String | Requested fields. | [optional] |
ids | [Number] | Optional list of ids to get specific roles. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
ModelSet createModelSet(opts)
Create Model Set
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.RoleApi();
var opts = {
'body': new LookerApi31Reference.ModelSet() // ModelSet | ModelSet
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createModelSet(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | ModelSet | ModelSet | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
PermissionSet createPermissionSet(opts)
Create Permission Set
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.RoleApi();
var opts = {
'body': new LookerApi31Reference.PermissionSet() // PermissionSet | Permission Set
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createPermissionSet(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | PermissionSet | Permission Set | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Role createRole(opts)
Create Role
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.RoleApi();
var opts = {
'body': new LookerApi31Reference.Role() // Role | Role
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createRole(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | Role | Role | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
'String' deleteModelSet(modelSetId)
Delete Model Set
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.RoleApi();
var modelSetId = 789; // Number | id of model set
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.deleteModelSet(modelSetId, callback);
Name | Type | Description | Notes |
---|---|---|---|
modelSetId | Number | id of model set |
'String'
No authorization required
- Content-Type: application/json
- Accept: application/json
'String' deletePermissionSet(permissionSetId)
Delete Permission Set
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.RoleApi();
var permissionSetId = 789; // Number | Id of permission set
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.deletePermissionSet(permissionSetId, callback);
Name | Type | Description | Notes |
---|---|---|---|
permissionSetId | Number | Id of permission set |
'String'
No authorization required
- Content-Type: application/json
- Accept: application/json
'String' deleteRole(roleId)
Delete Role
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.RoleApi();
var roleId = 789; // Number | id of role
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.deleteRole(roleId, callback);
Name | Type | Description | Notes |
---|---|---|---|
roleId | Number | id of role |
'String'
No authorization required
- Content-Type: application/json
- Accept: application/json
ModelSet modelSet(modelSetId, opts)
Get Model Set
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.RoleApi();
var modelSetId = 789; // Number | Id of model set
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.modelSet(modelSetId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
modelSetId | Number | Id of model set | |
fields | String | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
PermissionSet permissionSet(permissionSetId, opts)
Get Permission Set
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.RoleApi();
var permissionSetId = 789; // Number | Id of permission set
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.permissionSet(permissionSetId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
permissionSetId | Number | Id of permission set | |
fields | String | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Role role(roleId)
Get Role
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.RoleApi();
var roleId = 789; // Number | id of role
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.role(roleId, callback);
Name | Type | Description | Notes |
---|---|---|---|
roleId | Number | id of role |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Group] roleGroups(roleId, opts)
Get Role Groups
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.RoleApi();
var roleId = 789; // Number | id of role
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.roleGroups(roleId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
roleId | Number | id of role | |
fields | String | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[User] roleUsers(roleId, opts)
Get Role Users
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.RoleApi();
var roleId = 789; // Number | id of user
var opts = {
'fields': "fields_example", // String | Requested fields.
'directAssociationOnly': true // Boolean | Get only users associated directly with the role: exclude those only associated through groups.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.roleUsers(roleId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
roleId | Number | id of user | |
fields | String | Requested fields. | [optional] |
directAssociationOnly | Boolean | Get only users associated directly with the role: exclude those only associated through groups. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Group] setRoleGroups(roleId, body)
Update Role Groups
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.RoleApi();
var roleId = 789; // Number | Id of Role
var body = [new LookerApi31Reference.[Number]()]; // [Number] | Array of Group Ids
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.setRoleGroups(roleId, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
roleId | Number | Id of Role | |
body | [Number] | Array of Group Ids |
No authorization required
- Content-Type: application/json
- Accept: application/json
[User] setRoleUsers(roleId, body)
Update Role Users
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.RoleApi();
var roleId = 789; // Number | id of role
var body = [new LookerApi31Reference.[Number]()]; // [Number] | array of user ids for role
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.setRoleUsers(roleId, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
roleId | Number | id of role | |
body | [Number] | array of user ids for role |
No authorization required
- Content-Type: application/json
- Accept: application/json
ModelSet updateModelSet(modelSetId, body)
Update Model Set
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.RoleApi();
var modelSetId = 789; // Number | id of model set
var body = new LookerApi31Reference.ModelSet(); // ModelSet | ModelSet
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updateModelSet(modelSetId, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
modelSetId | Number | id of model set | |
body | ModelSet | ModelSet |
No authorization required
- Content-Type: application/json
- Accept: application/json
PermissionSet updatePermissionSet(permissionSetId, body)
Update Permission Set
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.RoleApi();
var permissionSetId = 789; // Number | id of permission set
var body = new LookerApi31Reference.PermissionSet(); // PermissionSet | Permission Set
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updatePermissionSet(permissionSetId, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
permissionSetId | Number | id of permission set | |
body | PermissionSet | Permission Set |
No authorization required
- Content-Type: application/json
- Accept: application/json
Role updateRole(roleId, body)
Update Role
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.RoleApi();
var roleId = 789; // Number | id of role
var body = new LookerApi31Reference.Role(); // Role | Role
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updateRole(roleId, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
roleId | Number | id of role | |
body | Role | Role |
No authorization required
- Content-Type: application/json
- Accept: application/json