# 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="DqvVh4A6y6ppv5ljKhWl6wPI6m39r2ImRfoTnvHpucYtD8WQ0JwutyeIFY0YWE5PfYnWuGaU1JfRRHKP10lpMcTsfSDyMfebD1iDdCI3N1FyVWheyKLYTtmaOe4vQJcDMrhMVmeGmq6HqgWM3jzYZsvQymzpLOR3WCxLVFoMA0JjJDQ5c2EglW1Dy0rlHf4rpqkJyfBvalLD5EPRxBfk8wm0CswCz6XTECdnsoDuwg9tToLd7vRt4GUjq8HLWHS",
vcn_id="AjMSJNVWJiooxpoSYgHnaEbNSnozo8lSVWxUEIZqu1d0BbxGy2l9HDDDY1xhxQ4Dewi6ZOF1QhuaGmiKxgEurNd8dC7EZjXGeH1YEGILmo7TOxK6kSXtqdBtqkBcPUosbTQHtv9no8VKkf0sH7KBSE4Otj4O15fEL7F2VRDRgiqQkxb0tP7RPuXlekg7pRB1NvsYjqg5pdrjFJ3oWIUxDGVkAMWeDTAFqNzm1VAEd8YaoodFsAvaCtS7GTvKhHK",
subnet_id="3kfUZH0mRPtVCDvPXUVatT0KP23LPjDs9rQTUGvuwP2WYDQSO9SdzTHw6240sm67toys7NaxmpZZxuGaktWvTetJufSgQBoYZZdHtxoJ5aRmrhsuZ07RxqNHT3ib4oV2pQqMRgYjQFvdzeUSg5rTkNDcNeJtZlRF2eDaV0XdF2CEYXda7EsC792zkHfi2lcKMwQjIiJuZhE9RouRCmqB9U0jdlStrZAjhegOZvLZvn1GLGj9pl4KjPqPI2A7FS9",
dns_server_ip="EXAMPLE-dnsServerIp-Value",
dns_server_zone="EXAMPLE-dnsServerZone-Value",
freeform_tags={
'EXAMPLE_KEY_fNSjF': 'EXAMPLE_VALUE_z6alVwVen8LYyVSMB5Jp'},
defined_tags={
'EXAMPLE_KEY_i3neA': {
'EXAMPLE_KEY_5w7wF': '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",
workspace_properties={
'EXAMPLE_KEY_3LqLH': 'EXAMPLE_VALUE_OiNAVbXvfFfI6G4rCbjQ'}),
opc_retry_token="EXAMPLE-opcRetryToken-Value",
opc_request_id="1XW3FDO4C4WUAJ0AGLJR<unique_ID>")
# Get the data from response
print(create_workspace_response.headers)