# 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="1oexfy77mpS2mgqYNKcSkn2Woxz8HOrqg01VcJ7EpI7RVmZrqJ7rDvwOpgAaUC1jh67iEVUqX8R3wSadxTshdYdacuSWQzuk2FH00wUmWwNOIstgwPg2xSpOJgAO9IF6ifJC3K4tRzWuU1pFoicTVZ0psBdJIRsokBQLmQ42v0Of3T4ji9OWaKzygy8Smk5XwWC4gy63iX8H16lYeOUjpXpqxUlHAB17hUIIyQrIlBje4wlKn4pEx78wcU4N9yj",
vcn_id="AP17Z4ai5jPxURfVfvUip7rzbPSjp6t1cmmjtD6z32byvmKeNYUVEycWew30TAZPyarzjZT4fV55gC5fh2LLnP8xZcAPcMmm983j49lg82SZ6i0sIBj7oBZD0pAPd1SJGSVtDNPHkUAS3alPyfBv4Z5EIAS8yORKpFROJSG9VjcAm7WV0ExRfp8VY0KxY0hpANClwvr1dsPi5j3rRuryX74BwVRNY5hazMRRJTDMajqdPVfJaBufLe18dzAgzkt",
subnet_id="gCVjk5BICxmZUtOOFJDOiyQkAyiQV6nF0QKRsOULVBh5rIZyNkWsg68X3kCmKBvPU42EmUr4fuk44GVeuH04YUpyM9jjDWab8OhrVmTvTivWyutvDn3AsZN3XZtjECxJsi3ICW1RgJwheF4Xa8nzGSv4LaG9Fk8IvoIc7gM3qph2LJcjhkxd1zhKR16qyfBMYC5WY0LZGPu3lr2tn0txyHmjWwofuSnNFbm4mOGGyXG4MiMtGKER7H575F3F0Lv",
dns_server_ip="EXAMPLE-dnsServerIp-Value",
dns_server_zone="EXAMPLE-dnsServerZone-Value",
freeform_tags={
'EXAMPLE_KEY_qw161': 'EXAMPLE_VALUE_UcYMeBbIfJRAGezE71Ju'},
defined_tags={
'EXAMPLE_KEY_UAEQS': {
'EXAMPLE_KEY_13teh': '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_m01kV': 'EXAMPLE_VALUE_8QSuyVq5H0LjwL06URnL'}),
opc_retry_token="EXAMPLE-opcRetryToken-Value",
opc_request_id="ELX6NIOAUYAB6LUSZBUZ<unique_ID>")
# Get the data from response
print(create_workspace_response.headers)