Exporting a Function
Function
This API is used to export a function.
URI
POST /v2/{project_id}/fgs/functions/export
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Tenant's project ID. |
|
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.
Last Article: Importing a Function
Next Article: Deleting a Function or Function Version
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.