# 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="dwtgv0537YW7h6momp0S7fSh4co43LUbRpc4toHcqKXvCDHXPp2Ono8NUiLBMJUEo8z1cibhLwpnRwxjXJ4WM8I3ZCP33JbaxFqOAFj5rnlTUApWU73LRZXhX6MggXXyHiS4KaPb6Zy3hK7BwkhMGEG6zF8qxcChIzuvHaFn4DoDgbZea1X1jgZVld8DgFBSG9y91RptInRmZwkfyC18Qel4UAl0X9Rv8qmKauyCFVSggD3clMhj1lmIWgV855O",
        vcn_id="VfWLyyOr8KXJtrnbs3f2v6jPqmtandN4NdRxKnKKBGVO0W7GetE93xX2gEANv5ydx89ard5JJPcs94XC1pxUyMyL1cHoQSZFSHGBJkA7go0iU5WA30lXu9BwGrsAUNdCG9dTKT3HMRBoKKNtRlL9Dwn8XF5xKurR4PgqYFFkFTX0DxJoOJXKJ8rWdgE1sK5TVdzyRKv0zl8gntZXW71cAtSjvpHTPnwICOZc3P8htGRp7eY2CiqYtUOqRHZ1z3p",
        subnet_id="4cKBEvpDs5QMQh0vkv9Z3ZHALyQuI8ujiZ2784AssD8dNBZGNpN8zpBXBbuAJ8yfF4w28GHM9gJgSAdwOnHkKiQ7u12JAXFwgLjG0nIGSVixa4Ou8OFBlrNRrCuTpk9dlPsPqPnXPu4dafmVFzT0sxZq9GERg0YaqrAOgxYCQs6SuKhUYsMDrLCrgPTd0liCCdWLgzbVpeXo4bHnDhY9nbMF9crPuZrcOGtl6lgtwHGNiQwJlyTP1lVT8pxxoyP",
        dns_server_ip="EXAMPLE-dnsServerIp-Value",
        dns_server_zone="EXAMPLE-dnsServerZone-Value",
        freeform_tags={
            'EXAMPLE_KEY_I49cP': 'EXAMPLE_VALUE_imjo1eYbVHmlGSPLDeZk'},
        defined_tags={
            'EXAMPLE_KEY_m2nVL': {
                'EXAMPLE_KEY_6yz9k': 'EXAMPLE--Value'}},
        description="EXAMPLE-description-Value",
        is_private_network_enabled=False),
    opc_retry_token="EXAMPLE-opcRetryToken-Value",
    opc_request_id="EO8OYHWVMH1W3BDRFIUS/OpcRequestIdExample/<unique_ID>")

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