Get a list of egress rules currently applied to the OpenSearch cluster
Sucessfully retrieved OpenSearch egress rules
Invalid cluster ID, expecting UUID 4 format
OpenSearch cluster does not exist for given Id
[- {
- "clusterId": "71e4380e-32ac-4fa7-ab42-c165fe35aa55",
- "rules": [
- {
- "clusterId": "71e4380e-32ac-4fa7-ab42-c165fe35aa55",
- "id": "71e4380e-32ac-4fa7-ab42-c165fe35aa55~NOTIFICATIONS~qzPJmIQBGW3Cho0V3Ee_",
- "name": "Test Webhook",
- "openSearchBindingId": "qzPJmIQBGW3Cho0V3Ee_",
- "source": "NOTIFICATIONS",
- "type": "WEBHOOK"
}
]
}
]
Add an new egress rule
Details of OpenSearch plugin webhook to action into egress whitelist
Whitelisted OpenSearch egress rule
Invalid cluster Id, invalid egress rule ID, source plugin is not enabled for this cluster.
OpenSearch cluster does not exist for given Id
Egress rule has already been opened
Cluster is not in RUNNING state or does not support egress whitelisting operations
{- "clusterId": "71e4380e-32ac-4fa7-ab42-c165fe35aa55",
- "openSearchBindingId": "qzPJmIQBGW3Cho0V3Ee_",
- "source": "NOTIFICATIONS"
}
{- "clusterId": "71e4380e-32ac-4fa7-ab42-c165fe35aa55",
- "id": "71e4380e-32ac-4fa7-ab42-c165fe35aa55~NOTIFICATIONS~qzPJmIQBGW3Cho0V3Ee_",
- "name": "Test Webhook",
- "openSearchBindingId": "qzPJmIQBGW3Cho0V3Ee_",
- "source": "NOTIFICATIONS",
- "type": "WEBHOOK"
}
Get an egress rule
Whitelisted OpenSearch egress rule
Invalid rule Id format, invalid cluster Id, invalid egress rule ID or source plugin is not enabled for this cluster
OpenSearch egress rule does not exist for given Id
{- "clusterId": "71e4380e-32ac-4fa7-ab42-c165fe35aa55",
- "id": "71e4380e-32ac-4fa7-ab42-c165fe35aa55~NOTIFICATIONS~qzPJmIQBGW3Cho0V3Ee_",
- "name": "Test Webhook",
- "openSearchBindingId": "qzPJmIQBGW3Cho0V3Ee_",
- "source": "NOTIFICATIONS",
- "type": "WEBHOOK"
}
Delete an egress rule
OpenSearch notifications/alerting hook whitelisted for egress.
Invalid rule Id format, invalid cluster Id, invalid egress rule ID or source plugin is not enabled for this cluster
OpenSearch cluster does not exist for given Id or no egress rules exist for given target ID for this particular source.
{- "errors": [
- {
- "name": "string",
- "message": "string"
}
]
}