Exporting a Function

Function

This API is used to export a function.

URI

POST /v2/{project_id}/fgs/functions/export

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Tenant's project ID.

Table 2 Query parameters

Parameter

Mandatory

Type

Description

config

No

Boolean

Whether to export the function configuration.

code

No

Boolean

Whether to export the function code.

Request Parameters

None

Response Parameters

None

Example Requests

POST https://{functiongraph_endpoint}/v2/7aad83af3e8d42e99ac194e8419e2c9b/fgs/functions/export?config=true&&code=true

Example Responses

Status code: 200

OK

{
  "UEsDBBQACAAAAGdPhM2VZEWAwRAAAMEQAACAAAAAAAAAAAAAAAoIEAAAAAaW5kZXgucHlQSwECFAMUAAgAAABnThM6yqLBaoCAACqAgAABwAAAAAAAAAAAAAAgIFCEQAAYTkueWFtbFBLBQYAAAAAAgACAGsAAAAhFAAAAAA=" : null
}

Status code: 404

Not Found

{
  "error_code" : "FSS.1051",
  "error_msg" : "Not found the function"
}

Status Codes

Status Code

Description

200

OK

404

Not Found

Error Codes

See Error Codes.