All URIs are relative to http://localhost:8080.
| Method | HTTP request | Description |
|---|---|---|
| changePassword() | PATCH /v1/admin/user/{user} | Change the password of the specified user. |
| createRole() | POST /v1/admin/role | Create a role on the Aerospike cluster. |
| createUser() | POST /v1/admin/user | Create a new user. |
| dropRole() | DELETE /v1/admin/role/{name} | Remove a specific role from the Aerospike cluster. |
| dropUser() | DELETE /v1/admin/user/{user} | Remove a user. |
| getRole() | GET /v1/admin/role/{name} | Get information about a specific role. |
| getRoles() | GET /v1/admin/role | Return a list of all roles registered with the Aerospike cluster. |
| getUser() | GET /v1/admin/user/{user} | Return information about a specific user. |
| getUsers() | GET /v1/admin/user | Return a list of information about users. |
| grantPrivileges() | POST /v1/admin/role/{name}/privilege | Grant a list of privileges to a specific role. |
| grantRoles() | POST /v1/admin/user/{user}/role | Grant a set of roles to the specified user. |
| revokePrivileges() | PATCH /v1/admin/role/{name}/privilege/delete | Remove a list of privileges from a specific role. |
| revokeRoles() | PATCH /v1/admin/user/{user}/role/delete | Revoke a set of roles from the specified user. |
changePassword($user, $password, $authorization)Change the password of the specified user.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AdminOperationsApi(
// 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()
);
$user = 'user_example'; // string | user
$password = 'password_example'; // string | password
$authorization = 'authorization_example'; // string | Authorization
try {
$apiInstance->changePassword($user, $password, $authorization);
} catch (Exception $e) {
echo 'Exception when calling AdminOperationsApi->changePassword: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| user | string | user | |
| password | string | password | |
| authorization | string | Authorization | [optional] |
void (empty response body)
No authorization required
- Content-Type:
application/json,application/msgpack - Accept:
application/json,application/msgpack
[Back to top] [Back to API list] [Back to Model list] [Back to README]
createRole($rc_role, $authorization)Create a role on the Aerospike cluster.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AdminOperationsApi(
// 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()
);
$rc_role = new \OpenAPI\Client\Model\RestClientRole(); // \OpenAPI\Client\Model\RestClientRole | rcRole
$authorization = 'authorization_example'; // string | Authorization
try {
$apiInstance->createRole($rc_role, $authorization);
} catch (Exception $e) {
echo 'Exception when calling AdminOperationsApi->createRole: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| rc_role | \OpenAPI\Client\Model\RestClientRole | rcRole | |
| authorization | string | Authorization | [optional] |
void (empty response body)
No authorization required
- Content-Type:
application/json,application/msgpack - Accept:
application/json,application/msgpack
[Back to top] [Back to API list] [Back to Model list] [Back to README]
createUser($user_info, $authorization)Create a new user.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AdminOperationsApi(
// 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()
);
$user_info = new \OpenAPI\Client\Model\RestClientUserModel(); // \OpenAPI\Client\Model\RestClientUserModel | userInfo
$authorization = 'authorization_example'; // string | Authorization
try {
$apiInstance->createUser($user_info, $authorization);
} catch (Exception $e) {
echo 'Exception when calling AdminOperationsApi->createUser: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| user_info | \OpenAPI\Client\Model\RestClientUserModel | userInfo | |
| authorization | string | Authorization | [optional] |
void (empty response body)
No authorization required
- Content-Type:
application/json,application/msgpack - Accept:
application/json,application/msgpack
[Back to top] [Back to API list] [Back to Model list] [Back to README]
dropRole($name, $authorization)Remove a specific role from the Aerospike cluster.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AdminOperationsApi(
// 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()
);
$name = 'name_example'; // string | The name of the role to remove.
$authorization = 'authorization_example'; // string | Authorization
try {
$apiInstance->dropRole($name, $authorization);
} catch (Exception $e) {
echo 'Exception when calling AdminOperationsApi->dropRole: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| name | string | The name of the role to remove. | |
| authorization | string | Authorization | [optional] |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept:
application/json,application/msgpack
[Back to top] [Back to API list] [Back to Model list] [Back to README]
dropUser($user, $authorization)Remove a user.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AdminOperationsApi(
// 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()
);
$user = 'user_example'; // string | user
$authorization = 'authorization_example'; // string | Authorization
try {
$apiInstance->dropUser($user, $authorization);
} catch (Exception $e) {
echo 'Exception when calling AdminOperationsApi->dropUser: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| user | string | user | |
| authorization | string | Authorization | [optional] |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept:
application/json,application/msgpack
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getRole($name, $authorization): \OpenAPI\Client\Model\RestClientRoleGet information about a specific role.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AdminOperationsApi(
// 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()
);
$name = 'name_example'; // string | The name of the role whose information should be retrieved.
$authorization = 'authorization_example'; // string | Authorization
try {
$result = $apiInstance->getRole($name, $authorization);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AdminOperationsApi->getRole: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| name | string | The name of the role whose information should be retrieved. | |
| authorization | string | Authorization | [optional] |
\OpenAPI\Client\Model\RestClientRole
No authorization required
- Content-Type: Not defined
- Accept:
application/json,application/msgpack
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getRoles($authorization): \OpenAPI\Client\Model\RestClientRole[]Return a list of all roles registered with the Aerospike cluster.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AdminOperationsApi(
// 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()
);
$authorization = 'authorization_example'; // string | Authorization
try {
$result = $apiInstance->getRoles($authorization);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AdminOperationsApi->getRoles: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| authorization | string | Authorization | [optional] |
\OpenAPI\Client\Model\RestClientRole[]
No authorization required
- Content-Type: Not defined
- Accept:
application/json,application/msgpack
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getUser($user, $authorization): \OpenAPI\Client\Model\UserReturn information about a specific user.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AdminOperationsApi(
// 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()
);
$user = 'user_example'; // string | user
$authorization = 'authorization_example'; // string | Authorization
try {
$result = $apiInstance->getUser($user, $authorization);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AdminOperationsApi->getUser: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| user | string | user | |
| authorization | string | Authorization | [optional] |
No authorization required
- Content-Type: Not defined
- Accept:
application/json,application/msgpack
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getUsers($authorization): \OpenAPI\Client\Model\User[]Return a list of information about users.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AdminOperationsApi(
// 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()
);
$authorization = 'authorization_example'; // string | Authorization
try {
$result = $apiInstance->getUsers($authorization);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AdminOperationsApi->getUsers: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| authorization | string | Authorization | [optional] |
No authorization required
- Content-Type: Not defined
- Accept:
application/json,application/msgpack
[Back to top] [Back to API list] [Back to Model list] [Back to README]
grantPrivileges($name, $privileges, $authorization)Grant a list of privileges to a specific role.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AdminOperationsApi(
// 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()
);
$name = 'name_example'; // string | The name of the role to which privileges will be granted.
$privileges = array(new \OpenAPI\Client\Model\Privilege()); // \OpenAPI\Client\Model\Privilege[] | privileges
$authorization = 'authorization_example'; // string | Authorization
try {
$apiInstance->grantPrivileges($name, $privileges, $authorization);
} catch (Exception $e) {
echo 'Exception when calling AdminOperationsApi->grantPrivileges: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| name | string | The name of the role to which privileges will be granted. | |
| privileges | \OpenAPI\Client\Model\Privilege[] | privileges | |
| authorization | string | Authorization | [optional] |
void (empty response body)
No authorization required
- Content-Type:
application/json,application/msgpack - Accept:
application/json,application/msgpack
[Back to top] [Back to API list] [Back to Model list] [Back to README]
grantRoles($user, $roles, $authorization)Grant a set of roles to the specified user.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AdminOperationsApi(
// 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()
);
$user = 'user_example'; // string | user
$roles = array('roles_example'); // string[] | roles
$authorization = 'authorization_example'; // string | Authorization
try {
$apiInstance->grantRoles($user, $roles, $authorization);
} catch (Exception $e) {
echo 'Exception when calling AdminOperationsApi->grantRoles: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| user | string | user | |
| roles | string[] | roles | |
| authorization | string | Authorization | [optional] |
void (empty response body)
No authorization required
- Content-Type:
application/json,application/msgpack - Accept:
application/json,application/msgpack
[Back to top] [Back to API list] [Back to Model list] [Back to README]
revokePrivileges($name, $privileges, $authorization)Remove a list of privileges from a specific role.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AdminOperationsApi(
// 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()
);
$name = 'name_example'; // string | The name of the role from which privileges will be removed.
$privileges = array(new \OpenAPI\Client\Model\Privilege()); // \OpenAPI\Client\Model\Privilege[] | privileges
$authorization = 'authorization_example'; // string | Authorization
try {
$apiInstance->revokePrivileges($name, $privileges, $authorization);
} catch (Exception $e) {
echo 'Exception when calling AdminOperationsApi->revokePrivileges: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| name | string | The name of the role from which privileges will be removed. | |
| privileges | \OpenAPI\Client\Model\Privilege[] | privileges | |
| authorization | string | Authorization | [optional] |
void (empty response body)
No authorization required
- Content-Type:
application/json,application/msgpack - Accept:
application/json,application/msgpack
[Back to top] [Back to API list] [Back to Model list] [Back to README]
revokeRoles($user, $roles, $authorization)Revoke a set of roles from the specified user.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AdminOperationsApi(
// 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()
);
$user = 'user_example'; // string | The user from which to revoke roles
$roles = array('roles_example'); // string[] | A list of names to revoke from the user
$authorization = 'authorization_example'; // string | Authorization
try {
$apiInstance->revokeRoles($user, $roles, $authorization);
} catch (Exception $e) {
echo 'Exception when calling AdminOperationsApi->revokeRoles: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| user | string | The user from which to revoke roles | |
| roles | string[] | A list of names to revoke from the user | |
| authorization | string | Authorization | [optional] |
void (empty response body)
No authorization required
- Content-Type:
application/json,application/msgpack - Accept:
application/json,application/msgpack
[Back to top] [Back to API list] [Back to Model list] [Back to README]