PUT
/_project_routing
Console
PUT /_project_routing/
{
"aws-us-only": { "expression": "_csp:aws AND _region:us*" },
"aws-eu-only": { "expression": "_csp:aws AND _region:eu*" }
}
resp = client.project_routing.create_many(
expressions={
"aws-us-only": {
"expression": "_csp:aws AND _region:us*"
},
"aws-eu-only": {
"expression": "_csp:aws AND _region:eu*"
}
},
)
const response = await client.projectRouting.createMany({
expressions: {
"aws-us-only": {
expression: "_csp:aws AND _region:us*",
},
"aws-eu-only": {
expression: "_csp:aws AND _region:eu*",
},
},
});
response = client.project_routing.create_many(
body: {
"aws-us-only": {
"expression": "_csp:aws AND _region:us*"
},
"aws-eu-only": {
"expression": "_csp:aws AND _region:eu*"
}
}
)
$resp = $client->projectRouting()->createMany([
"body" => [
"aws-us-only" => [
"expression" => "_csp:aws AND _region:us*",
],
"aws-eu-only" => [
"expression" => "_csp:aws AND _region:eu*",
],
],
]);
curl -X PUT -H "Authorization: ApiKey $ELASTIC_API_KEY" -H "Content-Type: application/json" -d '{"aws-us-only":{"expression":"_csp:aws AND _region:us*"},"aws-eu-only":{"expression":"_csp:aws AND _region:eu*"}}' "$ELASTICSEARCH_URL/_project_routing/"
Request example
{
"aws-us-only": { "expression": "_csp:aws AND _region:us*" },
"aws-eu-only": { "expression": "_csp:aws AND _region:eu*" }
}
Response examples (200)
{
"acknowledged": true
}