Elasticsearch API
  1. DeploymentsTrafficFilter
Elasticsearch API
  • Accounts
    • Updates the current account
      PUT
    • Updates the current account
      PATCH
    • Fetch current account information
      GET
  • Authentication
    • Delete API key
      DELETE
    • Get API key
      GET
    • Create API key
      POST
    • Delete API keys
      DELETE
    • Get all API keys
      GET
  • BillingCostsAnalysis
    • Get costs overview for the organization
      GET
    • Get deployments costs for the organization
      GET
    • Get itemized costs for the organization
      GET
    • Get itemized costs by deployments
      GET
  • DeploymentTemplates
    • Get deployment templates
      GET
    • Get deployment template
      GET
  • Deployments
    • Shutdown Deployment Elasticsearch Resource
      POST
    • Start all instances
      POST
    • Restores a shutdown resource
      POST
    • Restores a shutdown Deployment
      POST
    • Set remote clusters
      PUT
    • Get remote clusters
      GET
    • Stop instances
      POST
    • Reset the secret token for an APM resource.
      POST
    • Get Deployment Enterprise Search Resource Info
      GET
    • Get Deployment Kibana Resource Info
      GET
    • Set AppSearch read-only status
      PUT
    • Set AppSearch read-only status
      GET
    • Start instances
      POST
    • Restart Deployment Stateless Resource
      POST
    • Shuts down Deployment
      POST
    • Migrate Elasticsearch resource to use SLM
      POST
    • Start maintenance mode
      POST
    • Restart Deployment Elasticsearch Resource
      POST
    • Start maintenance mode (all instances)
      POST
    • Reset 'elastic' user password
      POST
    • Stop all instances
      POST
    • Migrate Elasticsearch and associated Kibana resources to enable CCR
      POST
    • Add or remove settings from the Elasticsearch resource keystore
      PATCH
    • Get the settings from the Elasticsearch resource keystore
      GET
    • Search Deployments
      POST
    • Get eligible remote clusters
      POST
    • Update Deployment
      PUT
    • Get Deployment
      GET
    • Get Deployment Elasticsearch Resource Info
      GET
    • Stop maintenance mode (all instances)
      POST
    • Migrate Elasticsearch resource to use ILM
      POST
    • Shutdown Deployment Stateless Resource
      POST
    • Get Deployment APM Resource Info
      GET
    • Stop maintenance mode
      POST
    • Cancel resource pending plan
      DELETE
    • Get Deployment App Search Resource Info
      GET
    • Get eligible remote clusters
      POST
    • Create Deployment
      POST
    • List Deployments
      GET
    • Upgrade Kibana, APM, AppSearch inside Deployment
      POST
  • DeploymentsTrafficFilter
    • Delete ruleset association
      DELETE
    • Create ruleset association
      POST
    • Get associated deployments
      GET
    • Create a ruleset
      POST
    • List traffic filter rulesets
      GET
    • Get associated rulesets
      GET
    • Updates a ruleset
      PUT
    • Delete a ruleset
      DELETE
    • Retrieves the ruleset by ID.
      GET
  • Extensions
    • Create an extension
    • List Extensions
    • Uploads the Extension
    • Update Extension
    • Delete Extension
    • Get Extension
  • Stack
    • Get stack versions
  1. DeploymentsTrafficFilter

List traffic filter rulesets

开发环境
http://127.0.0.1
开发环境
http://127.0.0.1
GET
/deployments/traffic-filter/rulesets
DeploymentsTrafficFilter
List all of the traffic filter rulesets.
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1/deployments/traffic-filter/rulesets' \
--header 'Authorization: ApiKey {{EC_API_KEY}}'
响应示例响应示例
200 - 示例 1
{
    "rulesets": [
        {
            "associations": [
                {
                    "id": "string",
                    "entity_type": "string"
                }
            ],
            "description": "string",
            "rules": [
                {
                    "azure_endpoint_name": "string",
                    "egress_rule": {
                        "protocol": "all",
                        "target": "string",
                        "ports": [
                            0
                        ]
                    },
                    "description": "string",
                    "source": "string",
                    "azure_endpoint_guid": "string",
                    "id": "string"
                }
            ],
            "region": "string",
            "include_by_default": true,
            "total_associations": 0,
            "type": "string",
            "id": "string",
            "name": "string"
        }
    ]
}

请求参数

Query 参数
include_associations
可选
Retrieves a list of resources that are associated to the specified ruleset.
region
可选
If provided limits the rulesets to that region only.
Header 参数
Authorization
string 
可选
默认值:
ApiKey {{EC_API_KEY}}

返回响应

🟢200The collection of traffic filter routes
application/json
Body
The container for a set of traffic filter rulesets.
rulesets
array[object (TrafficFilterRulesetInfo) {9}] 
必需
List of traffic filter rules
associations
array[object (FilterAssociation) {2}] 
可选
List of associations. Returned only when include_associations query parameter is true
description
string 
可选
Description of the ruleset
rules
array[object (TrafficFilterRule) {6}] 
必需
List of rules
region
string 
必需
The ruleset can be attached only to deployments in the specific region
include_by_default
boolean 
必需
Should the ruleset be automatically included in the new deployments
total_associations
integer <int32>
可选
Total number of associations. This includes associations the user does not have permission to view.Returned only when include_associations query parameter is true
type
string 
必需
Type of the ruleset
id
string 
必需
The ruleset ID
name
string 
必需
Name of the ruleset
🔴500Error fetching traffic filter rulesets. (code: `traffic_filter.request_execution_failed`)
上一页
Create a ruleset
下一页
Get associated rulesets
Built with