All Products
Search
Document Center

Security Center:OperateCommonTargetConfig

Last Updated:Feb 20, 2024

Configures features by type. The features include container image scan, local file detection, container network visualization, and container escape prevention.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:OperateCommonTargetConfigWrite
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
SourceIpstringNo

The source IP address of the request.

182.92.XXX.XXX
TypestringYes

The type of the feature. Valid values:

  • alidetect-scan-enable: local file detection
  • ACTION-TRIAL-PERMISSION: data delivery to ActionTrail
  • alidetect: local file detection engine
  • container_prevent_escape: container escape prevention
  • image_repo: repository image scan
  • proc_filter_switch: log filtering
  • agentless: agentless detection
  • rasp: application protection
  • sensitiveFile: sensitive file detection
  • aliscriptengine: in-depth detection engine
  • containerNetwork: container network visualization
alidetect
TargetTypestringNo

The dimension based on which the asset is selected. Valid values:

  • uuid: the UUID of the server
  • Cluster: the ID of the cluster
  • image_repo: the name of the image repository
uuid
TargetOperationsstringYes

The configuration of proactive defense for your server. The value includes the following fields:

  • targetType: specifies the dimension from which you manage proactive defense. UUIDs are supported. Set the value to uuid.
  • target: specifies the UUID of the server for which you want to configure proactive defense.
  • flag: specifies whether to enable or disable proactive defense for your server. Valid values are add and del. The value add indicates that proactive defense will be enabled for your server. The value del indicates that proactive defense will be disabled for your server.
[ { "targetType": "uuid", "target": "f329a044-6a2f-49a0-9d33-352f6c1d****", "flag": "del" } ]
FieldNamestringNo

The type of the image. Valid values:

  • repoName: the name of the image repository
  • repoNamespace: the namespace of the image repository
repoName
FieldValuestringNo

The name of the image repository or the namespace of the image repository.

cafcmc-dev

Response parameters

ParameterTypeDescriptionExample
object

The data returned.

RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

95D45C44-4F53-5ED2-8E12-7D134564B****

Examples

Sample success responses

JSONformat

{
  "RequestId": "95D45C44-4F53-5ED2-8E12-7D134564B****"
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history