SendFile
Sends a file to one or more Lingjun nodes.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eflo:SendFile |
get |
*Node
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The file name, up to 255 characters. Can contain any characters. |
file.txt |
| Description |
string |
No |
The file description, up to 512 characters. Can contain any characters. |
This is a test file. |
| TargetDir |
string |
Yes |
The destination directory on the Lingjun node. If the directory does not exist, it is created automatically. |
/home |
| ContentType |
string |
No |
The content type of the file. Valid values: Valid values: PlainText and Base64. Default value: PlainText. |
PlainText |
| Content |
string |
Yes |
The file content. Maximum size: 32 KB after Base64 encoding.
|
#!/bin/bash echo "Current User is :" echo $(ps | grep "$$" | awk '{print $2}') -------- oss://bucketName/objectName |
| FileMode |
string |
No |
The file permissions. Valid only on Linux instances. Follows the same format as the chmod command. Default value: 0644, which grants read/write permission to the owner and read-only permission to the group and others. |
0644 |
| FileOwner |
string |
No |
The file owner. Valid only on Linux instances. Default value: root. |
root |
| FileGroup |
string |
No |
The file user group. Valid only on Linux instances. Maximum length: 64 characters. Default value: root. Note: To use a non-root user group, ensure the group exists on the target instances. |
test |
| NodeIdList |
array |
Yes |
The list of Lingjun node IDs to receive the file. |
|
|
string |
No |
The ID of the Lingjun node. |
['i-bp1b00g1wdnrvpz68o0b', 'i-bp1bu2fp0uhruyf88k6v'] |
|
| Overwrite |
boolean |
No |
Whether to overwrite a file with the same name in the destination directory.
Default value: false. |
True |
| Timeout |
integer |
No |
The timeout period for the file sending task. Unit: seconds.
Default value: 60. |
600 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
3C683243-7915-57FB-9570-A2932C1C0F78 |
| InvokeId |
string |
The ID of the execution. |
t-hz03la52z1zkvls |
Examples
Success response
JSON format
{
"RequestId": "3C683243-7915-57FB-9570-A2932C1C0F78",
"InvokeId": "t-hz03la52z1zkvls"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.