# 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="ov54a9oKgGWbSWJibP4p2qXgBzI8PEv6dVENqGRgj29azoIxIwSYzGI1e00MeaELDU8evmxzX9EmcyGLS0EP8vYlSFGSqf5t28Ok6nt1GqjHOHg6JoWMurI6HFOYuxUJV4yX39s8TuXQMJ1QH91dnsCnspmaU7vNqArZOjSsPQ2uw5oWxczl1ujEMMVL0v5ulmbhhxebEZAr4QmRNAyo5xwdusFHHyyQr5W4AargtC9pHkmU5Bq2Ybt7piQc1Kx",
        vcn_id="rNHGuEUWEVO1PkqQN4Gdv1a7LpcezrCxiz6OrpbG02amxHhPQ5HsTNaFWVNJZzyiuqTymZtMA3QG1NdtiAXL8fxUuxKcmFUlljXFTrE6svx4YRYow8y6uajJtiQVEJ2EAJFILpZBVdj8bkggXgxPfciHKRwkwl6BAniUYu2olxFgKO9OdXww9BoBmyzR82A1Xjz3gkGKardQJRDdSQOAo6L707QyUawh8JRwEFLMiVsKVFU8n5bnwCuCKuvOr0A",
        subnet_id="VfIyrjLHZyorNuD4WC0ijAt3Bq9ZvECR929xaFeXBOavx7JnqCsoy4SfVlDErHepv3pkLuTnJ0XFMr92Z2MUASeNeQtfmozp1QZmoH3EgOuoI5edjIBnidIFf1oL6ilx5BhxESW7E7kRBqU1dNcc8yAQiC1udt4jUz7edfE4nkIpeDvEgfPyFrOXHoA1OwA8UVgtLX5lmAdVH7T7rPjiYoukAipM9Ho8oF4xWlfo3jX6dXdqFeT70LnP8Y6F46k",
        dns_server_ip="EXAMPLE-dnsServerIp-Value",
        dns_server_zone="EXAMPLE-dnsServerZone-Value",
        freeform_tags={
            'EXAMPLE_KEY_EjPZQ': 'EXAMPLE_VALUE_6DVHpltz1oGBk8fvmnl4'},
        defined_tags={
            'EXAMPLE_KEY_2eLoB': {
                'EXAMPLE_KEY_xV1td': '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"),
    opc_retry_token="EXAMPLE-opcRetryToken-Value",
    opc_request_id="EJRQBS2HOQ7YXZG60R8L<unique_ID>")

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