Query callback rule list¶
Query the callback routing rules in the workspace.
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/callback-rules
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. Prepare a personal access token and target workspace ID that can access the target workspace.
Request parameters¶
curl "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/callback-rules" -H "X-API-Key: $CLOUDSIGMA_API_KEY" -H "X-Workspace-ID: $WORKSPACE_ID"
Query parameters |
Type |
Required |
Description |
|---|---|---|---|
provider |
string |
No |
Provider screening. |
credential_ref |
string |
No |
Credential reference filtering. |
enabled |
boolean |
No |
Whether to enable. |
limit |
integer |
No |
Default 50, maximum 200. |
offset |
integer |
No |
The default is 0, and negative numbers are handled as 0. |
Use provider, credential_ref, and enabled for filtering, and limit and offset for paging. limit defaults to 50, and the maximum value is 200. Negative offset is treated as 0.
The results are arranged in ascending order by priority, id. When there is no match, items is [].
Successful response¶
{
"code": 0,
"data": {
"items": [],
"total": 0,
"limit": 0,
"offset": 0
}
}
Field |
Type |
Description |
|---|---|---|
|
integer |
|
|
object |
response data. |
|
array of object |
Current page callback rules. |
|
string |
Callback rule ID. Can be used to view, update, or delete the rule. |
|
string |
The workspace ID to which it belongs. |
|
string |
Provider ID. |
|
string |
A reference to a saved credential, not a clear-text key. |
|
string |
Name. |
|
string |
Description. Can be omitted if not set. |
|
boolean |
Whether to enable. |
|
integer |
Match priority. |
|
object |
Match condition. |
|
array of string |
Matching resource types. Any item in the array can be hit. Can be omitted if not set. |
|
array of string |
Matching event types. Any item in the array can be hit. Can be omitted if not set. |
|
array of string |
Matching event action. Any item in the array can be hit. Can be omitted if not set. |
|
object |
A key-value pair of field paths and matching values. Can be omitted if not set. |
|
string |
Callback target type, currently agent_automation_task. |
|
object |
Callback target configuration and public extension fields. Can be omitted if not set. |
|
string |
The automation task ID that receives the callback. |
|
boolean |
Whether the credentials for the target call have been saved. Can be omitted if not set. |
|
boolean |
Whether to stop matching after a hit. |
|
integer |
Current version number. |
|
string |
Creator ID. Can be omitted if not set. |
|
string |
Last updated by identifier. Can be omitted if not set. |
|
string |
Creation time, in RFC 3339 format. |
|
string |
Last updated in RFC 3339 format. |
|
integer |
The total number of matching rules. |
|
integer |
The maximum number returned this time. |
|
integer |
The starting position of this return. |
Error response¶
{
"code": 6,
"message": "unauthenticated"
}
Field |
Type |
Description |
|---|---|---|
|
integer |
error code. |
|
string |
Error message for the caller. |