# 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="whVspJccIayux669X8dFl7ijXo7XYOc4wjDZscnVveYrABnpWb5CLyxeCQDzYYVPAGcW0U9LFipRmRky6S7tHFldRYuEh1gdT7XpTqQ7fHBKPqomYe7IFhlrkinCdFl1W1r7BYXmcZxFiT0zBPpRvjkHTXwY3Rj33VpdpEw2IKlHtcg2pjPqbpIo6OxZl8slnPY9zciMqRDUERK0BzfUyZRATcM5DqsPjFyB9QEST3IOei5gybe2dbBljq3EImG",
        vcn_id="NrWiWBSAUVd5tT1HhFVQwg3HG7PzzOlWVQRGMki9PmJKUZU2XYqRcbOqUhAsmbh74VN8Bz4MelyeIcvdQww7NKb6R0qkLyidAIXuSBAKToERb1kgyuc8YRaX70CB6RYnysiy8mFQF1X6H2XoMSbR7rmruc1Ph4zmd23JBTHtBus9nfAfH1SUil2x2JAAYoCKFkipBBvYt3bflb50yI5LVk2YT2KP33OSDvXsDefbkMkJ3Sqm7bcqHaHAiTmcZ5b",
        subnet_id="tiw1UhMYDEFMB7WRB2zS5jh3ThXm9leeIG9k9KTitA1oBpeowZnwmh3iebr1bs3QqxjhGbjHhrxn4HEO6Ui1ipJ3FVphB38RoadcnEV2MIQerdMfq78kdQs6dR6elhtqSIz0YVCx24Hk25lmf9Zr7qlQFgTHyq79r3uLxOS3OQUyWLBEEQB0WvCr7RfgeZu0EENgSAeUyPvI5TGNCV3yEoztQImfrQETkFLcWBvG82MfaBMZjTp2M8OgRFKZCrQ",
        dns_server_ip="EXAMPLE-dnsServerIp-Value",
        dns_server_zone="EXAMPLE-dnsServerZone-Value",
        freeform_tags={
            'EXAMPLE_KEY_Zy8ge': 'EXAMPLE_VALUE_b7A5vhQlbWicKyNn0VnW'},
        defined_tags={
            'EXAMPLE_KEY_1S6ep': {
                'EXAMPLE_KEY_XpEjH': '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_6Ahu7': 'EXAMPLE_VALUE_ADDpYyzOBA5mBTQjTca1'}),
    opc_retry_token="EXAMPLE-opcRetryToken-Value",
    opc_request_id="CAFFGBCKOGFZYLB5X4JD<unique_ID>")

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