All URIs are relative to https://ethosce.looker.com:19999/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 |
\Looker\Model\ModelSet[] allModelSets($fields)
Get All Model Sets
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\RoleApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$fields = "fields_example"; // string | Requested fields.
try {
$result = $apiInstance->allModelSets($fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoleApi->allModelSets: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
fields | string | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\PermissionSet[] allPermissionSets($fields)
Get All Permission Sets
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\RoleApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$fields = "fields_example"; // string | Requested fields.
try {
$result = $apiInstance->allPermissionSets($fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoleApi->allPermissionSets: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
fields | string | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\Permission[] allPermissions()
Get All Permissions
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\RoleApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
try {
$result = $apiInstance->allPermissions();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoleApi->allPermissions: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\Role[] allRoles($fields, $ids)
Get All Roles
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\RoleApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$fields = "fields_example"; // string | Requested fields.
$ids = array(56); // int[] | Optional list of ids to get specific roles.
try {
$result = $apiInstance->allRoles($fields, $ids);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoleApi->allRoles: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
fields | string | Requested fields. | [optional] |
ids | int[] | Optional list of ids to get specific roles. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\ModelSet createModelSet($body)
Create Model Set
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\RoleApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$body = new \Looker\Model\ModelSet(); // \Looker\Model\ModelSet | ModelSet
try {
$result = $apiInstance->createModelSet($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoleApi->createModelSet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Looker\Model\ModelSet | ModelSet | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\PermissionSet createPermissionSet($body)
Create Permission Set
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\RoleApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$body = new \Looker\Model\PermissionSet(); // \Looker\Model\PermissionSet | Permission Set
try {
$result = $apiInstance->createPermissionSet($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoleApi->createPermissionSet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Looker\Model\PermissionSet | Permission Set | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\Role createRole($body)
Create Role
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\RoleApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$body = new \Looker\Model\Role(); // \Looker\Model\Role | Role
try {
$result = $apiInstance->createRole($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoleApi->createRole: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Looker\Model\Role | Role | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string deleteModelSet($model_set_id)
Delete Model Set
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\RoleApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$model_set_id = 789; // int | id of model set
try {
$result = $apiInstance->deleteModelSet($model_set_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoleApi->deleteModelSet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
model_set_id | int | id of model set |
string
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string deletePermissionSet($permission_set_id)
Delete Permission Set
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\RoleApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$permission_set_id = 789; // int | Id of permission set
try {
$result = $apiInstance->deletePermissionSet($permission_set_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoleApi->deletePermissionSet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
permission_set_id | int | Id of permission set |
string
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string deleteRole($role_id)
Delete Role
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\RoleApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$role_id = 789; // int | id of role
try {
$result = $apiInstance->deleteRole($role_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoleApi->deleteRole: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
role_id | int | id of role |
string
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\ModelSet modelSet($model_set_id, $fields)
Get Model Set
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\RoleApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$model_set_id = 789; // int | Id of model set
$fields = "fields_example"; // string | Requested fields.
try {
$result = $apiInstance->modelSet($model_set_id, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoleApi->modelSet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
model_set_id | int | Id of model set | |
fields | string | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\PermissionSet permissionSet($permission_set_id, $fields)
Get Permission Set
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\RoleApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$permission_set_id = 789; // int | Id of permission set
$fields = "fields_example"; // string | Requested fields.
try {
$result = $apiInstance->permissionSet($permission_set_id, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoleApi->permissionSet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
permission_set_id | int | Id of permission set | |
fields | string | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\Role role($role_id)
Get Role
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\RoleApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$role_id = 789; // int | id of role
try {
$result = $apiInstance->role($role_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoleApi->role: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
role_id | int | id of role |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\Group[] roleGroups($role_id, $fields)
Get Role Groups
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\RoleApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$role_id = 789; // int | id of role
$fields = "fields_example"; // string | Requested fields.
try {
$result = $apiInstance->roleGroups($role_id, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoleApi->roleGroups: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
role_id | int | id of role | |
fields | string | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\User[] roleUsers($role_id, $fields, $direct_association_only)
Get Role Users
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\RoleApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$role_id = 789; // int | id of user
$fields = "fields_example"; // string | Requested fields.
$direct_association_only = true; // bool | Get only users associated directly with the role: exclude those only associated through groups.
try {
$result = $apiInstance->roleUsers($role_id, $fields, $direct_association_only);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoleApi->roleUsers: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
role_id | int | id of user | |
fields | string | Requested fields. | [optional] |
direct_association_only | bool | 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
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\Group[] setRoleGroups($role_id, $body)
Update Role Groups
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\RoleApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$role_id = 789; // int | Id of Role
$body = array(new \Looker\Model\int[]()); // int[] | Array of Group Ids
try {
$result = $apiInstance->setRoleGroups($role_id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoleApi->setRoleGroups: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
role_id | int | Id of Role | |
body | int[] | Array of Group Ids |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\User[] setRoleUsers($role_id, $body)
Update Role Users
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\RoleApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$role_id = 789; // int | id of role
$body = array(new \Looker\Model\int[]()); // int[] | array of user ids for role
try {
$result = $apiInstance->setRoleUsers($role_id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoleApi->setRoleUsers: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
role_id | int | id of role | |
body | int[] | array of user ids for role |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\ModelSet updateModelSet($model_set_id, $body)
Update Model Set
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\RoleApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$model_set_id = 789; // int | id of model set
$body = new \Looker\Model\ModelSet(); // \Looker\Model\ModelSet | ModelSet
try {
$result = $apiInstance->updateModelSet($model_set_id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoleApi->updateModelSet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
model_set_id | int | id of model set | |
body | \Looker\Model\ModelSet | ModelSet |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\PermissionSet updatePermissionSet($permission_set_id, $body)
Update Permission Set
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\RoleApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$permission_set_id = 789; // int | id of permission set
$body = new \Looker\Model\PermissionSet(); // \Looker\Model\PermissionSet | Permission Set
try {
$result = $apiInstance->updatePermissionSet($permission_set_id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoleApi->updatePermissionSet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
permission_set_id | int | id of permission set | |
body | \Looker\Model\PermissionSet | Permission Set |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\Role updateRole($role_id, $body)
Update Role
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\RoleApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$role_id = 789; // int | id of role
$body = new \Looker\Model\Role(); // \Looker\Model\Role | Role
try {
$result = $apiInstance->updateRole($role_id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoleApi->updateRole: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
role_id | int | id of role | |
body | \Looker\Model\Role | Role |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]