# 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="5eJoCE2RqKIunYMDOAwiDReLfaMHqon4nSxbLHA5Wvx5AtssifMl4044Z9XII1LOlFQy3RJbhZRUpb1KCVjppaWrKclCpnUiOysNdb6tOXXtla1aA0lc0nhOTsjSrAPLprlSJYrZebbtyNz8g4OhxIZC14MenZ4wno7C5HCBFPBBLdwr3PpQOGUOn4EyHowfFsWjp05iHDAOXnuwzEObVdcQu2r79ocCS1RZZURQLTByOWiDgvaWKLfHFvBdjFQ",
vcn_id="0ygK1hM9xysa5WA74HsG8TLXaiJRgNRLNYYBtvHsEVoHbLoxubzATUtRWig84FYXfUwjzWqX0zJHIjuOVrc2b1W97y6KYZVYap74oR14PdRQxEAjZWdOTbxmuRpPI1SJsJd0aaNN8YWfq269M85tbknTcpPgoJCj39hl3k54gI4UlZcQ4uYu7rvo5Lr19hMBL4HpstoCMFqXxZ3k7q0TCu7GwVtoXd3DQ51qTuV4Tuix5RdWKPdOw84T6qhn0ab",
subnet_id="t87jqgvgXR7Ccr4vJ8GNJXzLRzfpwhYbd5BSeR3QX07XF4MoMBj7dkVsKuHLPUkYlfK6bJUyUZ0ORpwsPArPLVSseuhMuhaL9LXEWsEB8t1dIPE6UdeTXqLhtdr4pn3dAj5LmMrYxNSPcGAdl52LPg4hYqjBGuxPiR50co7uZACcvMXuw1MbkrateoqBJANYOaqUQC8tp20ykDf8vxFB9DzQT7acwDW2XZKl36SMv4V0a9dKVA0IMnxCbErcqKq",
dns_server_ip="EXAMPLE-dnsServerIp-Value",
dns_server_zone="EXAMPLE-dnsServerZone-Value",
freeform_tags={
'EXAMPLE_KEY_s3Quy': 'EXAMPLE_VALUE_vFVyAoMQFnlrQXCYzP5j'},
defined_tags={
'EXAMPLE_KEY_tHxbG': {
'EXAMPLE_KEY_GOc45': '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_I5Dst': 'EXAMPLE_VALUE_9ovncLPfPedsr9r2qJcZ'}),
opc_retry_token="EXAMPLE-opcRetryToken-Value",
opc_request_id="WPTZ8FSJKYPUYUG6Y1DX<unique_ID>")
# Get the data from response
print(create_workspace_response.headers)