1.2

1.2

scpcli scf cloud-function create
--runtime <value>
--name <value>
--content <value>
[--tags <value>]

Description

create a cloud function

State ACTIVE (CURRENT)

VersionSupported Until
1.2-

Parameters

NameTypeDescriptionExample
runtime
required
stringRuntimeNode.js:20
name
required
stringNamesample-function-name
content
required
stringCode contentsample
tags
optional
arrayTag List'{"key": "", "value": ""}'

Responses

NameDescriptionExample
idCloud Functions ID8c9f6c1c928a45b4bbd1e4da5531d656
messageDescriptionDescription
stateCloud function stateREADY