# 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="CyGoLlJHvzey7O9pCetYuqjaUudbtJV3ldNA1dFU1CXKJGf7MQlm7wt3Eg2HUERICL2Blf1XX8oWk0lL49Z4mgizrZj6IsMRgVSSaclLhBml24Ec0WFpR4T9WIWA7fYSEQWnC0u0JbwpLAqXLusgG9sWObFFiNcVQ8Jxt3NqbR9kYPSRWkKFHxgG2rgDDL3G7EZumcTxZ4IrFjm3nNuUu4S7LSKL21nt68Di5NGxzXvDWZWt7aJ0QIrXlj1OqCR",
        vcn_id="oeBXKEnxQTHPYQZyGXoJWuHC6KiRyrI0TLFx3UuYdbCI0JCo6G3QUGbc8pCqs7M704vrZb6t3AqgiJiPM6p3ykAeoaYKm04hhEQ26zjy77oLc6xNnwFse6AAiZZ7k0uZznBmhVtyhoe40vNrHjT51PHbVe2jFOuy0qtHqHu3VMd3EOBqHZr48NtE8eQDN7uGbh53sHUcdn3euxgxxNcRJUoRfmCXzfgGzFoEpfWX28Nnxp7xIrUOkdcrj3XllGI",
        subnet_id="bQzrnVtaUT8zm8i9QH8ITz2hrLDwWn00CMWjjLet9pUm2MPknXDzRtt44RXcjiHIuMJy6EBtvIMNoy4iFBJMmnIDpnUeYtowZ5sKtwEbiGnFqARvSVDMuXyFf2OGAQTROO5CBtl95NawHek6NX1IB1BWPiu17nSX4fFeCCIYVL7iw91YuXKh7IVLV4fXObYhliYETxDdNkrwxd9JcOhsTdnGCdRtZ8RX68gStodytfj79oCCZ4UwDCb5lzZRT7M",
        dns_server_ip="EXAMPLE-dnsServerIp-Value",
        dns_server_zone="EXAMPLE-dnsServerZone-Value",
        freeform_tags={
            'EXAMPLE_KEY_G1YB1': 'EXAMPLE_VALUE_A6hywBPfrbZBtmt0rXim'},
        defined_tags={
            'EXAMPLE_KEY_XFwHW': {
                'EXAMPLE_KEY_3zSc3': 'EXAMPLE--Value'}},
        description="EXAMPLE-description-Value",
        is_private_network_enabled=False,
        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_OyfwH': 'EXAMPLE_VALUE_sW4Tmam5i7D1O4x7ZwX3'}),
    opc_retry_token="EXAMPLE-opcRetryToken-Value",
    opc_request_id="LAGWICCZY70JMZFHRTCV<unique_ID>")

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