Update a rule that assigns an attempt to a pool based on conditions.
Security
ApiKeyAuth
Conditions that must be met for the rule to assign an attempt to a pool. If multiple conditions are specified, all conditions must be met.
- awshttps://api-workflow.treasuredata.com/api/pool_rules/{poolRuleId}
- aws-tokyohttps://api-workflow.treasuredata.co.jp/api/pool_rules/{poolRuleId}
- eu01https://api-workflow.eu01.treasuredata.com/api/pool_rules/{poolRuleId}
- ap02https://api-workflow.ap02.treasuredata.com/api/pool_rules/{poolRuleId}
- ap03https://api-workflow.ap03.treasuredata.com/api/pool_rules/{poolRuleId}
- invocation_type
- project_name
- workflow_name
- workflow_type
curl -i -X PATCH \
'https://api-workflow.treasuredata.com/api/pool_rules/{poolRuleId}' \
-H 'Authorization: TD1 <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"conditions": [
{
"type": "invocation_type",
"values": [
"on_demand"
]
}
],
"poolId": "42",
"priority": 10
}'Pool rule updated
Conditions that must be met for the rule to assign an attempt to a pool. If multiple conditions are specified, all conditions must be met.
Response
- invocation_type
- project_name
- workflow_name
- workflow_type
{ "conditions": [ { … } ], "id": "42", "poolId": "42", "priority": 10 }