OpenSearch Service
Protocol: REST JSON
Endpoint: http://localhost:4566/2021-01-01/...
Credential scope: es
Implementation Mode
OpenSearch supports two implementation modes controlled by FLOCI_SERVICES_OPENSEARCH_MODE:
| Mode |
Behaviour |
mock (default) |
Management API only. Domains are stored in the configured StorageBackend and appear ACTIVE immediately. No real search capability. |
real |
(v2, coming soon) Spins up a real OpenSearch Docker container per domain and proxies data-plane requests to it. |
Supported Operations
Domain Lifecycle
| Operation |
Method + Path |
Description |
CreateDomain |
POST /2021-01-01/opensearch/domain |
Create a new domain |
DescribeDomain |
GET /2021-01-01/opensearch/domain/{name} |
Get domain details |
DescribeDomains |
POST /2021-01-01/opensearch/domain-info |
Batch describe domains |
DescribeDomainConfig |
GET /2021-01-01/opensearch/domain/{name}/config |
Get domain configuration |
UpdateDomainConfig |
POST /2021-01-01/opensearch/domain/{name}/config |
Update cluster config, EBS options, engine version |
DeleteDomain |
DELETE /2021-01-01/opensearch/domain/{name} |
Delete a domain |
ListDomainNames |
GET /2021-01-01/domain |
List all domains (supports ?engineType= filter) |
Tags
| Operation |
Method + Path |
Description |
AddTags |
POST /2021-01-01/tags |
Add tags to a domain by ARN |
ListTags |
GET /2021-01-01/tags/?arn= |
List tags for a domain |
RemoveTags |
POST /2021-01-01/tags-removal |
Remove tag keys from a domain |
Versions & Instance Types
| Operation |
Method + Path |
Description |
ListVersions |
GET /2021-01-01/opensearch/versions |
List supported engine versions |
GetCompatibleVersions |
GET /2021-01-01/opensearch/compatibleVersions |
List valid upgrade paths |
ListInstanceTypeDetails |
GET /2021-01-01/opensearch/instanceTypeDetails/{version} |
List available instance types |
DescribeInstanceTypeLimits |
GET /2021-01-01/opensearch/instanceTypeLimits/{version}/{type} |
Get limits for an instance type |
Stubs (SDK-compatible, no-op responses)
| Operation |
Notes |
DescribeDomainChangeProgress |
Returns empty ChangeProgressStatus |
DescribeDomainAutoTunes |
Returns empty AutoTunes list |
DescribeDryRunProgress |
Returns empty DryRunProgressStatus |
DescribeDomainHealth |
Returns ClusterHealth: Green |
GetUpgradeHistory |
Returns empty list |
GetUpgradeStatus |
Returns StepStatus: SUCCEEDED |
UpgradeDomain |
Stores new engine version, returns immediately |
CancelDomainConfigChange |
Returns empty CancelledChangeIds |
StartServiceSoftwareUpdate |
Returns no-op ServiceSoftwareOptions |
CancelServiceSoftwareUpdate |
Returns no-op ServiceSoftwareOptions |
Configuration
Environment Variables
| Variable |
Default |
Description |
FLOCI_SERVICES_OPENSEARCH_ENABLED |
true |
Enable/disable the service |
FLOCI_SERVICES_OPENSEARCH_MODE |
mock |
mock or real |
FLOCI_SERVICES_OPENSEARCH_DEFAULT_IMAGE |
opensearchproject/opensearch:2 |
Docker image for real mode |
FLOCI_SERVICES_OPENSEARCH_PROXY_BASE_PORT |
9400 |
Port range start for real mode |
FLOCI_SERVICES_OPENSEARCH_PROXY_MAX_PORT |
9499 |
Port range end for real mode |
FLOCI_STORAGE_SERVICES_OPENSEARCH_MODE |
(global default) |
Storage mode override |
FLOCI_STORAGE_SERVICES_OPENSEARCH_FLUSH_INTERVAL_MS |
5000 |
Flush interval (ms) |
Emulation Behaviour
- Domain name validation: 3–28 characters, must start with a lowercase letter, only lowercase letters, digits, and hyphens.
- ARN format:
arn:aws:es:{region}:{accountId}:domain/{domainName}
- Domain ID format:
{accountId}/{domainName}
- Processing: Always
false in mock mode — domains are ACTIVE immediately.
- Engine version default:
OpenSearch_2.11
- Cluster defaults:
m5.large.search, 1 instance, EBS enabled with 10 GiB gp2 volume.
Examples
SDK Example (Java)
SDK Example (Python)
Limitations (v1)
- No real search capability in
mock mode — data-plane endpoints (/_search, /_index, etc.) are not proxied.
- No Elasticsearch-compatible endpoints (
/2015-01-01/es/domain/...).
- VPC options, fine-grained access control, encryption-at-rest, and cross-cluster connections are accepted in the request but silently ignored.
- All 41 "not applicable" operations (VPC endpoints, reserved instances, packages, applications, data sources) return
UnsupportedOperationException.