AddAuditConversionSource

Updated at:

Adds an audit transformation object to the list.

Operation description

Request description

  • PUT /agentspace/{agentSpace}/audit/sources/{type}/{instanceID}. This operation requires only three mandatory path parameters. It does not require a JSON request body or query parameters.

  • Resources are isolated 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.

  • If type is set to gateway, only configJson.audit_enabled_gateway_instances is modified. If type is set to trace, only configJson.audit_enabled_trace_apps is modified. Other fields in the configuration are retained.

  • You can select up to 100 different objects for each list. The total number of UTF-8 bytes for all IDs after normalization cannot exceed 8,192. If the list limit is exceeded after the addition, a 400 InvalidParameter.Config error is returned. The limits are verified by the backend.

  • An HTTP 204 response with no response body indicates that the member is already in the selected state. The configuration is written upon the first addition. Repeated additions also return 204 without duplicate writes.

  • The addition only modifies the list membership and does not indicate the synchronous start of a transformation task. The coordinator subsequently processes task changes asynchronously. A 204 response does not mean that the task has started or is running healthily.

  • The error response is ErrorResponse, which 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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

agentloop:AddAuditConversionSource

update

*All Resource

*

None None

Request syntax

PUT /agentspace/{agentSpace}/audit/sources/{type}/{instanceID} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

agentSpace

string

Yes

The AgentSpace to which you want to add the transformation object. The service verifies access permissions and region matching based on the user identity and region passed by the gateway.

demo

type

string

Yes

The transform type. gateway indicates the gateway instance transform list, and trace indicates the service transform list. Only the list of the selected type is modified.

gateway

instanceID

string

Yes

The ID of the transformation object. If type is gateway, this parameter specifies the ID of the gateway instance. If type is trace, this parameter specifies the service name. The value must be encoded as a single URL path segment. After decoding, leading and trailing whitespace is removed, and 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 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. The byte limit 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

None defined.

Examples

Success response

JSON format

{}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.