This topic describes how to create, clone, delete, or move a function.
Prerequisites
- A business process is created. For more information, see Create and manage business processes.
- An exclusive resource group for DataService Studio is purchased.
Note To run an Aviator function, you must use an exclusive resource group for DataService Studio.
Background information
DataService Studio supports Aviator functions and Python functions.
- The feature that allows you to use a Python function as an API filter is being optimized. You cannot create, clone, or publish a Python function.
- If you want to use a function as an API filter, we recommend that you use an Aviator function. For more information, see Create an Aviator function and use the Aviator function as a filter.
Limits
- Before you can use a function as an API filter, you must activate DataWorks Basic Edition or a more advanced edition.
- For the same API, the function that you use as the prefilter and the function that you use as the post-filter must be of the same type.
Create a function
View the information about the function
After the function is created, you can view the information about the function. The
following figure shows how to view the association relationship of the function. 

- In the right-side navigation pane of the configuration tab of the function, click Properties. On the Properties tab, you can view the basic information about the function, such as the function ID and creation time. A function ID uniquely identifies a function and can be used to search for the function.
- In the right-side navigation pane of the configuration tab of the function, click Association Relationship. On the Association Relationship tab, you can view the association relationships between the function and published or unpublished APIs. We recommend that you view the association relationships before you delete or modify the function to know the APIs that will be affected by the operation.
- In the right-side navigation pane of the configuration tab of the function, click Version. On the Version tab, you can view the details of the function version.
- In the right-side navigation pane of the configuration tab of the function, click Resource Group. On the Resource Group tab, you can view the resource group that is used by the function. You can also change the resource group that is used by the function.
Manage functions
What to do next
- After you create the function, you can test and publish the function. For more information, see Test a function and Publish a function.
- After you publish the function, you can associate the function with an API and use the function as a prefilter or a post-filter for the API. This way, the function can process the request parameters or responses of the API. For more information, see Create an Aviator function and use the Aviator function as a filter and Create and use Python functions as a filter.