Can the namespace preferences and program preferences be set via REST API calls? If yes, what is the syntax for it?
2 Answers
Generally in Cloud Data Fusion, when we intend to perform the action on GCP side, like create/delete/restart etc. instance, it's feasible to use domestic Google Cloud API, giving the opportunity to interact with a service endpoint via JSON/HTTP calls interface as described in Google Cloud API design document.
Dedicated to Data Fusion you can follow the Cloud Data Fusion REST API reference document, nicely explaining the methods for composing REST API HTTP calls to manage Data Fusion instances, moreover every method description from the documentation contains Google API Explorer sub-panel, to get handy experience building JSON request on a live data.
Said above, I assume your initial question is related more to CDAP REST API, as it includes the methods for pure CDAP instance metadata/namespaces/application configuration.
From the user perspective your workflow might be the following:
- Identify the CDAP API endpoint as explained in this guideline;
- Compose an HTTP PUT/GET request relevant to Data Fusion Namespace/Metadata/Preferences/Configuration object via CDAP RESTful API.

- 5,089
- 2
- 10
- 16
Yes of course! You have two methods.
The first method is creating it from the platform. Follow the steps below:
- Open your data fusion instance
- Go to System Admin => Configuration => Make HTTP calls
- To create a namespace, submit an HTTP PUT request:
PUT /v3/namespaces/<namespace-id>
Link of CDAP: CDAP
The second method is using terraform.

- 256
- 2
- 10