All Products
Search
Document Center

Platform For AI:SendFile

Last Updated:Jul 25, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Sends a file to one or more Lingjun nodes.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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:
    • For mandatory resource types, indicate with a prefix of * .
    • 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
eflo:SendFileget
*Node
acs:eflo:{#regionId}:{#accountId}:node/{#NodeId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
NamestringYes

The file name. The name can be up to 255 characters in length and can contain any characters.

file.txt
DescriptionstringNo

The description of the file. The description can be up to 512 characters in length and can contain any characters.

This is a test file.
TargetDirstringYes

The directory in the Lingjun node to which the file is sent. If the specified directory does not exist, the system creates the directory automatically.

/home
ContentTypestringNo

The content type of the file. Valid values:

PlainText Base64 Default value: PlainText.

PlainText
ContentstringYes

The content of the file. The file must not exceed 32 KB in size after it is encoded in Base64.

  • If ContentType is set to PlainText, the value of Content is in plaintext.
  • If ContentType is set to Base64, the value of Content is Base64-encoded.
#!/bin/bash echo "Current User is :" echo $(ps | grep "$$" | awk '{print $2}') -------- oss://bucketName/objectName
FileModestringNo

The permissions on the file. This parameter takes effect only on Linux instances. You can configure this parameter in the same way as you configure the chmod command.

Default value: 0644: the owner of the file has the read and write permission. The user group of the file and other users have read-only permission.

0644
FileOwnerstringNo

The owner of the file. This parameter takes effect only on Linux instances. Default value: root.

root
FileGroupstringNo

The user group of the file. This parameter takes effect only on Linux instances. Default value: root. The value can be up to 64 characters in length.

Note If you want to use a non-root user group, make sure that the user group exists in the instances.

test
NodeIdListarrayYes

The node list.

stringYes

The ID of the Lingjun node.

['i-bp1b00g1wdnrvpz68o0b', 'i-bp1bu2fp0uhruyf88k6v']
OverwritebooleanNo

Specifies whether to overwrite file with the same name in the destination directory.

  • true
  • false

Default value: false.

True
TimeoutintegerNo

The timeout period for the file sending task. Unit: seconds.

  • A timeout error occurs when a file cannot be sent because the process slows down or because a specific module or Cloud Assistant Agent does not exist.
  • If the specified timeout period is less than 10 seconds, the system sets the timeout period to 10 seconds to ensure that the file can be sent.

Default value: 60.

600

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

Id of the request

3C683243-7915-57FB-9570-A2932C1C0F78
InvokeIdstring

The ID of the execution.

t-hz03la52z1zkvls

Examples

Sample success responses

JSONformat

{
  "RequestId": "3C683243-7915-57FB-9570-A2932C1C0F78",
  "InvokeId": "t-hz03la52z1zkvls"
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history