- list - List all identifiers on the block-list
- create - Add identifier to the block-list
- delete - Delete identifier from block-list
Get a list of all identifiers which are not allowed to access an instance
declare(strict_types=1);
require 'vendor/autoload.php';
use Clerk\Backend;
$sdk = Backend\ClerkBackend::builder()
->setSecurity(
'<YOUR_BEARER_TOKEN_HERE>'
)
->build();
$response = $sdk->blocklistIdentifiers->list(
);
if ($response->blocklistIdentifiers !== null) {
// handle response
}?Operations\ListBlocklistIdentifiersResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| Errors\ClerkErrors | 401, 402 | application/json |
| Errors\SDKException | 4XX, 5XX | */* |
Create an identifier that is blocked from accessing an instance
declare(strict_types=1);
require 'vendor/autoload.php';
use Clerk\Backend;
$sdk = Backend\ClerkBackend::builder()
->setSecurity(
'<YOUR_BEARER_TOKEN_HERE>'
)
->build();
$response = $sdk->blocklistIdentifiers->create(
request: $request
);
if ($response->blocklistIdentifier !== null) {
// handle response
}| Parameter | Type | Required | Description |
|---|---|---|---|
$request |
Operations\CreateBlocklistIdentifierRequestBody | ✔️ | The request object to use for the request. |
?Operations\CreateBlocklistIdentifierResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| Errors\ClerkErrors | 400, 402, 422 | application/json |
| Errors\SDKException | 4XX, 5XX | */* |
Delete an identifier from the instance block-list
declare(strict_types=1);
require 'vendor/autoload.php';
use Clerk\Backend;
$sdk = Backend\ClerkBackend::builder()
->setSecurity(
'<YOUR_BEARER_TOKEN_HERE>'
)
->build();
$response = $sdk->blocklistIdentifiers->delete(
identifierId: '<id>'
);
if ($response->deletedObject !== null) {
// handle response
}| Parameter | Type | Required | Description |
|---|---|---|---|
identifierId |
string | ✔️ | The ID of the identifier to delete from the block-list |
?Operations\DeleteBlocklistIdentifierResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| Errors\ClerkErrors | 402, 404 | application/json |
| Errors\SDKException | 4XX, 5XX | */* |