All URIs are relative to https://madisonreed.looker.com:19999/api/3.0
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 LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.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);
}
};
api.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 LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.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);
}
};
api.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 LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.RoleApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.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 LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.RoleApi()
var opts = {
'fields': "fields_example", // {String} Requested fields.
'ids': [56] // {[Integer]} 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);
}
};
api.allRoles(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
fields | String | Requested fields. | [optional] |
ids | [Integer] | 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 LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.RoleApi()
var opts = {
'body': new LookerApi30Reference.ModelSet() // {ModelSet} ModelSet
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.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 LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.RoleApi()
var opts = {
'body': new LookerApi30Reference.PermissionSet() // {PermissionSet} Permission Set
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.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 LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.RoleApi()
var opts = {
'body': new LookerApi30Reference.Role() // {Role} Role
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.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 LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.RoleApi()
var modelSetId = 789; // {Integer} id of model set
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.deleteModelSet(modelSetId, callback);
Name | Type | Description | Notes |
---|---|---|---|
modelSetId | Integer | id of model set |
'String'
No authorization required
- Content-Type: application/json
- Accept: application/json
'String' deletePermissionSet(permissionSetId)
Delete Permission Set
var LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.RoleApi()
var permissionSetId = 789; // {Integer} Id of permission set
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.deletePermissionSet(permissionSetId, callback);
Name | Type | Description | Notes |
---|---|---|---|
permissionSetId | Integer | Id of permission set |
'String'
No authorization required
- Content-Type: application/json
- Accept: application/json
'String' deleteRole(roleId)
Delete Role
var LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.RoleApi()
var roleId = 789; // {Integer} id of role
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.deleteRole(roleId, callback);
Name | Type | Description | Notes |
---|---|---|---|
roleId | Integer | id of role |
'String'
No authorization required
- Content-Type: application/json
- Accept: application/json
ModelSet modelSet(modelSetId, opts)
Get Model Set
var LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.RoleApi()
var modelSetId = 789; // {Integer} 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);
}
};
api.modelSet(modelSetId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
modelSetId | Integer | 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 LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.RoleApi()
var permissionSetId = 789; // {Integer} 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);
}
};
api.permissionSet(permissionSetId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
permissionSetId | Integer | 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 LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.RoleApi()
var roleId = 789; // {Integer} id of role
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.role(roleId, callback);
Name | Type | Description | Notes |
---|---|---|---|
roleId | Integer | id of role |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Group] roleGroups(roleId, opts)
Get Role Groups
var LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.RoleApi()
var roleId = 789; // {Integer} 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);
}
};
api.roleGroups(roleId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
roleId | Integer | 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 LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.RoleApi()
var roleId = 789; // {Integer} 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);
}
};
api.roleUsers(roleId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
roleId | Integer | 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 LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.RoleApi()
var roleId = 789; // {Integer} Id of Role
var body = [new LookerApi30Reference.[Integer]()]; // {[Integer]} Array of Group Ids
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.setRoleGroups(roleId, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
roleId | Integer | Id of Role | |
body | [Integer] | Array of Group Ids |
No authorization required
- Content-Type: application/json
- Accept: application/json
[User] setRoleUsers(roleId, body)
Update Role Users
var LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.RoleApi()
var roleId = 789; // {Integer} id of role
var body = [new LookerApi30Reference.[Integer]()]; // {[Integer]} 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);
}
};
api.setRoleUsers(roleId, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
roleId | Integer | id of role | |
body | [Integer] | array of user ids for role |
No authorization required
- Content-Type: application/json
- Accept: application/json
ModelSet updateModelSet(modelSetId, body)
Update Model Set
var LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.RoleApi()
var modelSetId = 789; // {Integer} id of model set
var body = new LookerApi30Reference.ModelSet(); // {ModelSet} ModelSet
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.updateModelSet(modelSetId, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
modelSetId | Integer | 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 LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.RoleApi()
var permissionSetId = 789; // {Integer} id of permission set
var body = new LookerApi30Reference.PermissionSet(); // {PermissionSet} Permission Set
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.updatePermissionSet(permissionSetId, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
permissionSetId | Integer | 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 LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.RoleApi()
var roleId = 789; // {Integer} id of role
var body = new LookerApi30Reference.Role(); // {Role} Role
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.updateRole(roleId, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
roleId | Integer | id of role | |
body | Role | Role |
No authorization required
- Content-Type: application/json
- Accept: application/json