Sends a file to one or more Lingjun nodes.
Debugging
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 Resourcesis 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.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| eflo:SendFile | get | *Node acs:eflo:{#regionId}:{#accountId}:node/{#NodeId} |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Name | string | Yes | The file name. The name can be up to 255 characters in length and can contain any characters. | file.txt |
| Description | string | No | 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. |
| TargetDir | string | Yes | 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 |
| ContentType | string | No | The content type of the file. Valid values: PlainText Base64 Default value: PlainText. | PlainText |
| Content | string | Yes | The content of the file. The file must not exceed 32 KB in size after it is encoded in Base64.
| #!/bin/bash echo "Current User is :" echo $(ps | grep "$$" | awk '{print $2}') -------- oss://bucketName/objectName |
| FileMode | string | No | 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 |
| FileOwner | string | No | The owner of the file. This parameter takes effect only on Linux instances. Default value: root. | root |
| FileGroup | string | No | 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 |
| NodeIdList | array | Yes | The node list. | |
| string | Yes | The ID of the Lingjun node. | ['i-bp1b00g1wdnrvpz68o0b', 'i-bp1bu2fp0uhruyf88k6v'] | |
| Overwrite | boolean | No | Specifies whether to overwrite 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 parameters
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 time | Summary of changes | Operation |
|---|
