This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Create Cloud Function

1 - 1.3

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

Description

create a cloud_function

State ACTIVE (CURRENT)

VersionNot Before
1.3-

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

2 - 1.2

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

Description

create a cloud_function

State ACTIVE (DEPRECATED)

Deprecated versions with Not Before dates that have arrived or expired are no longer supported. We recommend using the latest version.

VersionNot Before
1.220260630

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

3 - 1.1

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

Description

create a cloud_function

State ACTIVE (DEPRECATED)

Deprecated versions with Not Before dates that have arrived or expired are no longer supported. We recommend using the latest version.

VersionNot Before
1.120260430

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

4 - 1.0

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

Description

create a cloud_function

State ACTIVE (DEPRECATED)

Deprecated versions with Not Before dates that have arrived or expired are no longer supported. We recommend using the latest version.

VersionNot Before
1.020251231

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