# 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="MY7Icm4zciRhkYOQZoHbeULAq5nTuw6vCFwmlnPj85NbV9pRK0RiWfT0HUdghxC2ClJwXtGoM0xmWiuWUJizT6Wq2J5Xe89uc3ChA2WXTXtgyWS0Fnmu9lLoHxdHJWgh1vFrGSGlviCPQYWUjFt79X3pxMY5DGmFFPk7wbSWAWFewaDoK5DOyPT3q9fQvFnWDTz53pxTwt67nJATRpoL6jIhe9InnHGPKPqlEuBq5l8w1JpdfOL3IMqEUaMALtz",
        vcn_id="SGax7ParFhbfWxZZbMGPCvh6JYItkM271bdFtSFOOGVtFagw4o46zjUG1T7pCT6xmpWe0fprk781Q2V1T0Ozxcshy37jDuEYPx5Xm06frXc1H0HEsyaGq1CzHCfLGcvH76UiYdRX0NHg7q4GCShMZnBLMPTqJ85ISa7817MwqoC6B0xfVZ9HZCfsLtaAVIbVwjh9nclKWHRF5DSEzugE7NupYECdRsIFNDCwntvT5AoZ8u0xQF0pyiw0MqF7xrP",
        subnet_id="AVdfyk5vGnIHkzIMxM8xy970x5gGQmAQeb6G5tAjBjncG1DIReimflwgtda5ECHhIxiTbfpSixbElxFlcw9G4QPufijU06rge8kDEZC14jPsGatwTYO95Lwvc0RvuiNyBhegG6D7daVlRVSEbiCtsBai180HTlH3DtAOnIGjMIuyZgdvz6TARQQwic5KZ61hy7bHrA7HUYSC84k8FJ5uyhrOz1bmqzKDhXXvFDWRWD7ywwVoSBSCrYnqBeO43DD",
        dns_server_ip="EXAMPLE-dnsServerIp-Value",
        dns_server_zone="EXAMPLE-dnsServerZone-Value",
        freeform_tags={
            'EXAMPLE_KEY_mOg5t': 'EXAMPLE_VALUE_AKOyJHLH2YBruOr4yNko'},
        defined_tags={
            'EXAMPLE_KEY_XUTda': {
                'EXAMPLE_KEY_XSIEK': '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_40uDU': 'EXAMPLE_VALUE_ik1wTj40aOgER9XY02my'}),
    opc_retry_token="EXAMPLE-opcRetryToken-Value",
    opc_request_id="SSQVBNYWZB7MXZOD1ZEU<unique_ID>")

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