SendFile
Delivers a remote 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. The name supports all character sets and can be up to 255 characters in length. |
file.txt |
| Description |
string |
No |
The description. The description supports all character sets and can be up to 512 characters in length. |
This is a test file. |
| TargetDir |
string |
Yes |
The target folder on the Lingjun nodes to which the file is delivered. If the folder does not exist, automatic creation is performed. |
/home |
| ContentType |
string |
No |
The content type of the file. Valid values:
|
PlainText |
| Content |
string |
Yes |
The file content. The size of the file content cannot exceed 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. This parameter takes effect only on Linux instances. The setting method is the same as that of the chmod command. Default value: 0644, which indicates that the owner has read and write permissions, and the group and others have read-only permissions. |
0644 |
| FileOwner |
string |
No |
The file owner. This parameter takes effect only on Linux instances. Default value: root. |
root |
| FileGroup |
string |
No |
The file group. This parameter takes effect only on Linux instances. Default value: root. The value can be up to 64 characters in length. Note When you use a different group, make sure that the group exists on the instance. |
test |
| NodeIdList |
array |
Yes |
The list of node IDs. The node IDs must belong to created Lingjun nodes. You can call the ListClusterNodes or ListFreeNodes operation to query the node IDs. |
|
|
string |
No |
The Lingjun node ID. |
e01-cn-zvp2tgykr08 |
|
| Overwrite |
boolean |
No |
Specifies whether to overwrite the file if a file with the same name already exists in the target directory. Valid values:
|
True |
| Timeout |
integer |
No |
The timeout period for delivering the file. Unit: seconds.
|
600 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
Id of the request |
3C683243-7915-57FB-9570-A2932C1C0F78 |
| InvokeId |
string |
The command execution ID. |
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.