node-red-contrib-huawei-obs
v0.0.2
Published
A sample node for node-red
Downloads
5
Readme
node-red-huawei-obs
A sample node for node-red
Instructions for use
parameter instructions
- access_key this is huawei cloud auth access_key_id
- access_secret this is huawei cloud auth secret_access_key
- server this is huawei cloud obs https://your-endpoint
- bucket this is huawei cloud obs Bucket name
put object
- use
msg.obsObject
msg.obsObject
is an object ,includes that three parameters .first of all ,type
is type of obs methods .put
is means for uploading object ,for another is means getting.second paramobjectName
corresponds obsobject name
, for example[path]/name.[ext]
.the last param isobjectBody
.it is representsbody
,so you can upload not only such asString JSON Text
evenbinary
. - complete parameters
msg.obsObject = {
"type":"put",
"objectName":"test/1111222.json",
"objectBody":{
"1":"1",
"2":"2",
"3":"3",
"4":"4",
"5":"5"
}
};
return msg;
get object
- use
msg.obsObject
The same way as put object ,just changingput
toget
,butobjectBody
can not be sent because it's not necessary. - complete parameters
msg.obsObject = {
"type":"get",
"objectName":"test/1111222.json",
};
return msg;