# 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="dNu2cnmaoNeZ49zE8E8JIAg2L0ZXJEG0x33RDJZf8GgPx0qu7aC7jLLj7H1d80r5K9Ih9DvG0Xbe1Q8q2uuYZ485dGuNsQK4VYfP7DMZmTRRFSUJ9JFGcQvKCJKWF1Zg7g11KCUwTU3aG8m3ySGp8b0GQ31VPNwbm8fsQteqBReHvfKcMI55OBG2mnmNTnenwSwpaxuxhpn0p8ViDVO2ZMeMUHoeAW0qP6cIY4VVhLsZzlmt2Wh8iDINJqFYxTn",
        vcn_id="NqMxmbF85IKR8KsRCNJORmCiJV7jiwu6kdIeodSyd6brRXUY0nwvd44V8cVtb6Wiv2XScZruZbsqUbJGLKJdLHfXxsf0m6J1XYzLrrSxcjA57Zhwl9ey8w5WvBp5gLpz43tQoXRM4cmdDYwGK52HAYpVJxmMFuKlY0AJuIAuDWZi1lOaOKPRGhFn8moRgo4gkxWWKJc6stOJLgmpcmeiwWjw1k1F4Be0qCcjoBhgvtHoegy3mt6rJj1WhpRtzZO",
        subnet_id="nAb8sQvX9ywdwwtdsCiUI0nz2uFyNROGKnWqHtuGWpGDNI0m3D6JxAuBucWxNn2OZ9JFBsR4K1GMQDZOzhqpSm11L0pqyNkMISAmnuoGqcSzUkLY6axBbur0s1EIDnBfoOLhGxj8ZcpsPdXKW7JEG896LPsejtq38umXkk1qM01KmruvxiCocpABM19XiF7EKPEbxgHksuLmDjtlMRGeau5eJoCE2RqKIunYMDOAwiDReLfaMHqon4nSxbLHA5W",
        dns_server_ip="EXAMPLE-dnsServerIp-Value",
        dns_server_zone="EXAMPLE-dnsServerZone-Value",
        freeform_tags={
            'EXAMPLE_KEY_vx5At': 'EXAMPLE_VALUE_ssifMl4044Z9XII1LOlF'},
        defined_tags={
            'EXAMPLE_KEY_bhZRU': {
                'EXAMPLE_KEY_Qy3RJ': '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_1KCVj': 'EXAMPLE_VALUE_ppaWrKclCpnUiOysNdb6'}),
    opc_retry_token="EXAMPLE-opcRetryToken-Value",
    opc_request_id="TOXXTLA1AA0LC0NHOTSJ<unique_ID>")

# Get the data from response
print(create_workspace_response.headers)