neclimdul/coveo-securitycache

dev-main 2025-03-05 09:44 UTC

This package is auto-updated.

Last update: 2025-03-05 15:47:26 UTC


README

API for Coveo Platform

For more information, please visit https://connect.coveo.com/s/discussions.

Installation & Usage

Requirements

PHP 8.1 and later.

Composer

To install the bindings via Composer, add the following to composer.json:

composer require neclimdul/coveo-securitycache

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

use NecLimDul\Coveo\SecurityCache\ApiException;

// Configure OAuth2 access token for authorization: oauth2
$config = \NecLimDul\Coveo\SecurityCache\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new \NecLimDul\Coveo\SecurityCache\Api\SecurityCacheApi(
    // If you want to use custom http client, pass your client which implements `\GuzzleHttp\ClientInterface`.
    // This is optional, `\GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$organization_id = 'organization_id_example'; // string
$security_provider_id = 'security_provider_id_example'; // string

try {
    $apiInstance->cancelProviderRefresh($organization_id, $security_provider_id);
} catch (ApiException $e) {
    echo 'Exception when calling SecurityCacheApi->cancelProviderRefresh: ', $e->getMessage(), PHP_EOL;
}

API Endpoints

All URIs are relative to https://platform.cloud.coveo.com

ClassMethodHTTP requestDescription
SecurityCacheApicancelProviderRefreshPOST /rest/organizations/{organizationId}/securitycache/{securityProviderId}/refresh/cancelCancels the current refresh operation on a security provider
SecurityCacheApienableDisabledEntitiesPOST /rest/organizations/{organizationId}/securitycache/disabled/enableEnable all disabled entities on security cache
SecurityCacheApienableProviderDisabledEntitiesPOST /rest/organizations/{organizationId}/securitycache/{securityProviderId}/disabled/enableEnable all disabled entities for a specified security provider
SecurityCacheApigetChildEntitiesPOST /rest/organizations/{organizationId}/securitycache/entities/{securityProviderId}/members/childrenGet child entities for a specified security provider member
SecurityCacheApigetEntitiesGET /rest/organizations/{organizationId}/securitycache/entities/{securityProviderId}Get the entities for a specified security provider
SecurityCacheApigetEntitiesForASecurityCacheGET /rest/organizations/{organizationId}/securitycache/{securityCacheId}/entities/{securityProviderId}Get the entities for a specified security provider on a specified security cache
SecurityCacheApigetEntityPOST /rest/organizations/{organizationId}/securitycache/entities/{securityProviderId}/entityGet entity information for a specified security provider member
SecurityCacheApigetMembersGET /rest/organizations/{organizationId}/securitycache/entities/{securityProviderId}/membersGet the members for a specified security provider
SecurityCacheApigetOnlineSecurityCacheIdsGET /rest/organizations/{organizationId}/securitycache/status/onlineGet online security cache ids
SecurityCacheApigetParentEntitiesPOST /rest/organizations/{organizationId}/securitycache/entities/{securityProviderId}/members/parentsGet parent entities for a specified security provider member
SecurityCacheApigetScheduleByIdGET /rest/organizations/{organizationId}/securitycache/schedules/{scheduleId}Get a security cache schedule
SecurityCacheApigetSchedules1GET /rest/organizations/{organizationId}/securitycache/schedulesGet the security cache schedules
SecurityCacheApigetStatusGET /rest/organizations/{organizationId}/securitycache/statusGet the security cache status
SecurityCacheApiisListSecurityIdentitiesSupportedGET /rest/organizations/{organizationId}/securitycache/entities/list/is_supported
SecurityCacheApilistSecurityIdentitiesPOST /rest/organizations/{organizationId}/securitycache/entities/list
SecurityCacheApirefreshPOST /rest/organizations/{organizationId}/securitycache/refreshTriggers a refresh on the security cache
SecurityCacheApirefreshEntityPOST /rest/organizations/{organizationId}/securitycache/refresh/entityRefreshes a single entity in the security cache
SecurityCacheApirefreshProviderPOST /rest/organizations/{organizationId}/securitycache/{securityProviderId}/refreshTriggers a refresh on a security provider
SecurityCacheApiupdateSchedule1PUT /rest/organizations/{organizationId}/securitycache/schedules/{scheduleId}Update a security cache schedule
SecurityProvidersApicreateOrUpdateSecurityProviderPUT /rest/organizations/{organizationId}/securityproviders/{securityProviderId}Update a security provider for an organization
SecurityProvidersApicreateOrUpdateSecurityProviderRawPUT /rest/organizations/{organizationId}/securityproviders/{securityProviderId}/rawUpdate the raw configuration of a security provider for an organization
SecurityProvidersApicreateSecurityProviderPOST /rest/organizations/{organizationId}/securityprovidersCreate a security provider for an organization
SecurityProvidersApigetSecurityProviderGET /rest/organizations/{organizationId}/securityproviders/{securityProviderId}Get a single security provider for an organization
SecurityProvidersApigetSecurityProviderRawGET /rest/organizations/{organizationId}/securityproviders/{securityProviderId}/rawGet the raw configuration of a security provider for an organization
SecurityProvidersApigetSecurityProvidersGET /rest/organizations/{organizationId}/securityprovidersGet all security providers for an organization
SecurityProvidersApigetSecurityProvidersByIdsWithFilterPOST /rest/organizations/{organizationId}/securityproviders/batch/filterGet and filter security providers by ids for an organization.
SecurityProvidersApigetSecurityProvidersByPageGET /rest/organizations/{organizationId}/securityproviders/pageGet and filter security providers by page for an organization.
SecurityProvidersApiremoveSecurityProviderDELETE /rest/organizations/{organizationId}/securityproviders/{securityProviderId}Remove a security provider from an organization
SecurityProvidersSchedulesApigetSchedulesGET /rest/organizations/{organizationId}/securityproviders/{securityProviderId}/schedulesGet security provider schedules
SecurityProvidersSchedulesApiupdateSchedulePUT /rest/organizations/{organizationId}/securityproviders/{securityProviderId}/schedules/{scheduleId}Update a security provider schedule

Models

Authorization

oauth2

  • Type: OAuth
  • Flow: implicit
  • Authorization URL: https://platform.cloud.coveo.com/oauth/authorize
  • Scopes:
    • full: required

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

About this package

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen