首页 SendFile

SendFile

更新时间: 2026-07-22 16:36:12

Sends a file to one or more Lingjun nodes.

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

eflo:SendFile

get

*Node

acs:eflo:{#regionId}:{#accountId}:node/{#NodeId}

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.

  • 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

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.

  • true

  • false

Default value: false.

True

Timeout

integer

No

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

  • A timeout error occurs if the file cannot be sent, for example, when the process slows down or a specific module or Cloud Assistant Agent is unavailable.

  • If the specified value is less than 10 seconds, the system automatically uses 10 seconds instead.

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.

阿里云首页 智能计算灵骏 相关技术圈