# 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="h3iebr1bs3QqxjhGbjHhrxn4HEO6Ui1ipJ3FVphB38RoadcnEV2MIQerdMfq78kdQs6dR6elhtqSIz0YVCx24Hk25lmf9Zr7qlQFgTHyq79r3uLxOS3OQUyWLBEEQB0WvCr7RfgeZu0EENgSAeUyPvI5TGNCV3yEoztQImfrQETkFLcWBvG82MfaBMZjTp2M8OgRFKZCrQZy8geb7A5vhQlbWicKyNn0VnWXpEjH1S6epwZ6Ahu7ADDpYyzOBA5",
vcn_id="mBTQjTca1cafFGbCkOGfZYLb5X4JDWRT2jDUMnup3djCkFYukpvfXLz0TU14MfXBaOXvlfo1kWpFExxgrW94bW82JG5aj2qM9WfPGOn1H3YxiVgprti47OKoidR6CTJKX9p4OfW9WjtKp0OSL6Cow1KmedpFGE3kOIRdwF6j07w1Z4W6T9cMYUhtV4z3Ge8bUf8ceQnu3NXAHL3nw3knMVqoRpjPWEpyNYMaBw8AvlZru4Iy25GnJGYWEzDupNz",
subnet_id="EqY5TlicH20CaHNlXEzJrKSLGwQQQE7NG3z4c2LDx2ckKdTtRK4l9pUzXHKli6mVfJw1H5xmLq8vNIjlW56MdTpFs4MweIY1GFcOorGmZYgA0rxld6HLDllYXTDkslG2okWmJMA2DIKJOvYdt6G8JmgxMuv8p5NEp9XVwsp6W1fcf9wqzvCjXPU1AeS1PvuvO4MF7zfwxMGopquyE2pCTdToxGMhPXWptO9VI8tcD71ryKojZZTkBT5n1u8Cvxv",
dns_server_ip="EXAMPLE-dnsServerIp-Value",
dns_server_zone="EXAMPLE-dnsServerZone-Value",
freeform_tags={
'EXAMPLE_KEY_RJXeV': 'EXAMPLE_VALUE_H86r9loB66fXViLinZLx'},
defined_tags={
'EXAMPLE_KEY_fFO0z': {
'EXAMPLE_KEY_NXLsf': '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_g13p6': 'EXAMPLE_VALUE_sWanzGcfPFJ8uzCt7h05'}),
opc_retry_token="EXAMPLE-opcRetryToken-Value",
opc_request_id="XYDFNZO0FIADKJ51IRWI<unique_ID>")
# Get the data from response
print(create_workspace_response.headers)