# 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="bsRAWO6hzWZCebyBeV5iB10oaCpSfoSBG8ZWr7lMKhiKVPd5soszfkk9ousSKug08m7ngvAQbsVo08u1ff4GMD6jAkYyI1yRdL0nAz0q4hd7iCp2NsPeCVBCoXUgSgHq7LWRAW32PyocWxjpuKDrKaWcrj6bvi9ICS5dlyj173Z5IGlTOSCQFGvfxAe4U4FesrDAFLIjAxjKFVRvIQSxI9yoBMU9UOGPo4sor0zvOzl5XzKvYIwWQW67iZBaykQ",
        vcn_id="L7lrkE6nl8xJU2x5NqB93TKLwyzDpIjO06Dx9bhXfw7d3chM0HdMfcQjYCzsaRJDBdaoddWlqpNeehycCMj9sGzGGVPpZClemfFuUmIqbtwOPON01PlhXor1LTj8iQ2lJmTlGlP1Bx3PGtE5y1fDGdgfN68rUeuIKisPRvnsrgMdjBLvfCStXxej3v0A2quDfviBd11ot0w0GpRl13ERPNShihXo4PIXr9ZKosuqXCZYi4ga96sKEKRYRiNkBG7",
        subnet_id="eeWopQsCOM7L3nwtYkk9IJ1QvWD0UG4NccPW0VQs1rztS0c9y1m31Gn1mFsQG7avQAAHVeobiPE3yZeoRzKcV7QUahUjANbqvjhJUamL7MBgyH6jtdiAEc1BoJHcgqJQsAvliPEgHzMIfIiI98bYt00srIe68254KbBPEcIHteoBpsroqzEXtftbRzCaT1q2BpFD9l3Frmf68BJmcp1nlQCbCoJdCPcqFTosDelAmnnQMpyIKn383o1GYThwjeD",
        dns_server_ip="EXAMPLE-dnsServerIp-Value",
        dns_server_zone="EXAMPLE-dnsServerZone-Value",
        freeform_tags={
            'EXAMPLE_KEY_hfOWB': 'EXAMPLE_VALUE_euvyhMMxFUDiluUitHhN'},
        defined_tags={
            'EXAMPLE_KEY_s44ad': {
                'EXAMPLE_KEY_6ZhH8': '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_EtY2B': 'EXAMPLE_VALUE_21Nt0dnrbFAvyUnctXvJ'}),
    opc_retry_token="EXAMPLE-opcRetryToken-Value",
    opc_request_id="BBCDPOJGQGXUEQTQRGGN<unique_ID>")

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