GetAuditConversionSource
Queries whether an audit transformation object is selected.
Operation description
Request description
GET /agentspace/{agentSpace}/audit/sources/{type}/{instanceID} contains only three required path parameters. It does not include a JSON request body or query parameters.
Isolates data by the complete tenant key consisting of user_id, agent_space, and region_id. The agentSpace parameter is obtained from the path. The user ID and region are obtained from the trusted identity headers of the gateway. The region header is X-Acs-System-Region-Id and cannot be overridden by the request body or query parameters. The service verifies the access permissions and region matching for the AgentSpace.
Reads only the transformation list of the corresponding type. It does not create audit configurations or check whether the transformation object is online or the transformation task is healthy.
An HTTP 200 response returns id and selected, but does not include requestId. If the object is not selected or the current AgentSpace does not have an audit configuration, selected is set to false instead of returning a 404 error.
An error response is an ErrorResponse object that includes requestId (the value of the request ID header, which may be an empty string if missing), code, and message. Error HTTP status codes and response bodies are passed through as-is from the backend.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
agentloop:GetAuditConversionSource |
get |
*All Resource
|
None | None |
Request syntax
GET /agentspace/{agentSpace}/audit/sources/{type}/{instanceID} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| agentSpace |
string |
Yes |
The name of the AgentSpace to query. The service verifies access permissions and region matching based on the user identity and region passed by the gateway. |
demo |
| type |
string |
Yes |
A value of gateway indicates the gateway instance transform list, and a value of trace indicates the service transform list. |
gateway |
| instanceID |
string |
Yes |
The ID of the transformation object. If the type is gateway, this parameter specifies the ID of the gateway instance. If the type is trace, this parameter specifies the service name. Encode the value as a single URL path segment. After decoding, leading and trailing whitespace is removed, but intermediate spaces are retained. The normalized value cannot be empty, can be up to 256 UTF-8 bytes in length, and is case-sensitive. For example, cluster A must be encoded as cluster%20A. %20cluster%20A%20 is normalized to cluster A. A plus sign (+) in the path represents a literal plus sign and cannot be used as a space. If the value contains only whitespace or exceeds the byte limit, a 400 InvalidParameter.Config error is returned. Byte limits and normalization are verified by the backend. |
cluster-A |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The audit transformation object query result. |
{"id":"cluster-A","selected":true} |
|
| id |
string |
The normalized ID of the transformation object. |
cluster-A |
| selected |
boolean |
Indicates whether the object is included in the transformation list of the current type. Valid values:
|
true |
Examples
Success response
JSON format
{
"id": "cluster-A",
"selected": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.