# 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="JmgxMuv8p5NEp9XVwsp6W1fcf9wqzvCjXPU1AeS1PvuvO4MF7zfwxMGopquyE2pCTdToxGMhPXWptO9VI8tcD71ryKojZZTkBT5n1u8CvxvRJXeVH86r9loB66fXViLinZLxNXLsffFO0zuZg13p6sWanzGcfPFJ8uzCt7h05XYDFNZo0FIadKj51irwInvhvvg7ywY69dTaU0duGSfVL1w3caZ3j82rkWdBTBngbct6TI4DkT6BnYHCC1cH9rB",
        vcn_id="aqEMmxuFjKl1AfqSsZrGNt7eyf0m4xb8CHtb93O9bG8DXIWfDfIy3dUy7HPaskNvxMVNHkGggEBNDWz2ucspoAnFLFCZxMsKvV4jULHJ5uRvqK3bvdSnrAWUHFrgvy4OOjIEjPeguyGNOvbu1g2WkCOOTSEZDXqybOKMtlruZfHPxkevYGLmKbzb1MEA8UeMjU87QO1hLpRYuA4ls1cDqDeRA6vBOBaw2nN2VvmhQNwSCnXlAZJ3Nlya88iMOd0",
        subnet_id="BtP4EvRwcUqLodYiP0yHdbzUPTeSrc6xwLesZafBPeailctPWQ6tB6cdHasHvv9FrzeoplrUXcZznVxM6nLcKb5xO7QQikHoezfMk98Jk6FLxT4HNP1RJ4VNaEmh5QrQ7pPr4Cks8AYvNPXUa47lA5d9hmG6Vd4bjDkUfHMLw0kFHU4ZDJTBQCknQJMkEWDKPo0OiHgW5Idizb6AnCEzPAVQIx8m8o1ODIAakdLiNezTTmFm118GxyCPF4K8mZQ",
        dns_server_ip="EXAMPLE-dnsServerIp-Value",
        dns_server_zone="EXAMPLE-dnsServerZone-Value",
        freeform_tags={
            'EXAMPLE_KEY_D7P0k': 'EXAMPLE_VALUE_7YOIivmjzvcrVhvNSNia'},
        defined_tags={
            'EXAMPLE_KEY_Cxuk6': {
                'EXAMPLE_KEY_vV47d': '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_HYs6x': 'EXAMPLE_VALUE_C11SdiBXIOKsTz8dBisP'}),
    opc_retry_token="EXAMPLE-opcRetryToken-Value",
    opc_request_id="EUO7DMNUJSVOORCFXKMH<unique_ID>")

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