# 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="eoqcOf3DxlftpkcC8QXC20hrkC0W5eCyQmNJczr0iJUj4Xz4nUTwmPFIKSfEnBb6H5fHRO1ZYHpFOR8lKCJzLwyDj5UMnmWXbhJ6MBv8pR3KcpJcHp2x5Ko3MNLWVEsM9fwrQn97Sebh7JTIkrcVa5MDxIHXY0OgG1b87zGm8SwKV2UTEdGaquSLACWAnluFA2jtVfX2yVlyLEkfszbeOvc7r3Fzquxh7ifMoh5Aq7NhDXNkV1uTeoRQnRU2C6z",
        vcn_id="Ej9M5leUI6q850wrtCcCCkQrN1GF6xYXBalEi0zvPmKnSJveJuGieXXdcagvGAQlp9TeDfNY1sDjLosgKmQr8QtS1UNaOaBWiYaLyPGHiHvxrGAMMVkLgUmWiRJN5D5foVCNZ1zmDqusHEo4RsqRI3Gd6V8cqq1yQtXvfgIJiBOiGz6oYxU4T5SiW5aDZoNXDgZP0kPmw20sGREBuI2QqAg7uC5NQ0c5hCEFV4ryWJCrmHNDtrT6QNQegBK0cL9",
        subnet_id="kkmXUthALmgxsGA3XbiLQDiDrLo3PCNnGH0TryRoXQi3ebCqNV39PhSQ4SRpYYcPn6mC20TGjyPtSQERfoeDHL70v7q1u7TmVPDdd2o1uTNbODj4pSufQH4NsCLJit77MXLI0xHcq9lRFoNwYPl4XeWOwTnsMhxZOXagCpIs6AzFmkzD89TUeDBPr7PHdEORan7T6JF84cGC08Q6651sio4uzvSwKuMYYf6IMIN3wxQbarODCC5DH6003Vk7san",
        dns_server_ip="EXAMPLE-dnsServerIp-Value",
        dns_server_zone="EXAMPLE-dnsServerZone-Value",
        freeform_tags={
            'EXAMPLE_KEY_5ks1J': 'EXAMPLE_VALUE_USojdrxMWZYr6yFZd1kr'},
        defined_tags={
            'EXAMPLE_KEY_MQOeW': {
                'EXAMPLE_KEY_uHBi2': 'EXAMPLE--Value'}},
        description="EXAMPLE-description-Value",
        is_private_network_enabled=True),
    opc_retry_token="EXAMPLE-opcRetryToken-Value",
    opc_request_id="QJCDBZ5J9IVRX9ULP8IN<unique_ID>")

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