# This is an automatically generated code sample.
# To make this code sample work in your Oracle Cloud tenancy,
# please replace the values for any parameters whose current values do not fit
# your use case (such as resource IDs, strings containing ‘EXAMPLE’ or ‘unique_id’, and
# boolean, number, and enum parameters with values not fitting your use case).
import oci
# Create a default config using DEFAULT profile in default location
# Refer to
# https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File
# for more info
config = oci.config.from_file()
# Initialize service client with default config file
data_integration_client = oci.data_integration.DataIntegrationClient(config)
# Send the request to service, some parameters are not required, see API
# doc for more info
create_workspace_response = data_integration_client.create_workspace(
create_workspace_details=oci.data_integration.models.CreateWorkspaceDetails(
display_name="EXAMPLE-displayName-Value",
compartment_id="21OCACvL1gchL727IGAR40rQaK4DCKXu5KMosejPt3nCMOnRQGlb6RKb0lTwISTvn9MnP79tUrgXXSKB2AcmF3CFZXrNAH5Mopty5oPxeVC060cfmQ4GKjhddPfOOdjMABfS3nUs3KJtVI1zInjz8KnXA1Bchzk87GXhfCJon7fbx7HXcRqxoeEhimujxrHxBLNYML6dixx5nwxZ0rcJJBGbPrjgPtCnQZb0w6hEf7MOJe1ykoZJKOo0t7s0hPr",
vcn_id="aiG9XcNJhOXmwhIpHIn752hYiHbDeAP78d31ITX2KcIW2YYsWwdpUoSWXFy7wtMuqXdVO2mmOtT6nSN9wQEWr9rvIomnJXMvm2CWz10Av8ypvrDy4nxRtXAZZSQ36PR2EB3JGAgDpBUYzQuPXRJAPJdGya1eNOVPffWlYmXvC5PNqrMdntNNRdoNe2fOjJa7jU8yjkXCerGliHJmURcZAwEFX2swZPdb8l5QQKJzn73U6W0hWSkVh87a3Q7LHHS",
subnet_id="NF6nggutQxrsgVzZ8EgchuezoPZobCsjda7Zckd3aLHm9HqWdmQBxtjzmnaA7TvasHuvnOUId2zVZv86VaHe1feAvLrKNAKTazme6j2o3BP1k20A3tPoXMi0phuYhK87kqzgdAlXB4LhNhJ4VHW7Vc0oYiCtacJmSEoAhL01c334xSEFLwyyeHRezOApfXeiefjPa7HAYmHA8rSb8vjcHvAlAbAGLfPVvUWd8LVmbt89msQEAIDMgaGF9YBkuPJ",
dns_server_ip="EXAMPLE-dnsServerIp-Value",
dns_server_zone="EXAMPLE-dnsServerZone-Value",
freeform_tags={
'EXAMPLE_KEY_5GNDn': 'EXAMPLE_VALUE_gLWZKN5eZiXs3NmNb6cl'},
defined_tags={
'EXAMPLE_KEY_qIKJi': {
'EXAMPLE_KEY_TfkZK': 'EXAMPLE--Value'}},
description="EXAMPLE-description-Value",
is_private_network_enabled=True,
registry_id="ocid1.test.oc1..<unique_ID>EXAMPLE-registryId-Value",
endpoint_id="ocid1.test.oc1..<unique_ID>EXAMPLE-endpointId-Value",
registry_name="EXAMPLE-registryName-Value",
registry_compartment_id="ocid1.test.oc1..<unique_ID>EXAMPLE-registryCompartmentId-Value",
endpoint_name="EXAMPLE-endpointName-Value",
endpoint_compartment_id="ocid1.test.oc1..<unique_ID>EXAMPLE-endpointCompartmentId-Value",
workspace_properties={
'EXAMPLE_KEY_jetGt': 'EXAMPLE_VALUE_gkRvZqySJaHXJ3Mp5hIY'}),
opc_retry_token="EXAMPLE-opcRetryToken-Value",
opc_request_id="CKHGKEBYVLVPIGOIBDGO<unique_ID>")
# Get the data from response
print(create_workspace_response.headers)