# 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="gdulBobIZW415xbsUFk5o51UTpx8wHGG04QsGVEfKDidxAVbygsBqOgyFf5UATS3Cq7EyOIWIoDZPPVci7i6gLwWgkzMYSgGEfA9pZo9j1CSzEt8D29L8MQ7or6SfLBDpcTwXHs7Riwfce6b6MDd1NeTOq8Pm9Lah7L52umG1TH2fY5fG6RLBsT6pnertlDQ8I0DufjaQ2eN3Ptpbz3ZHFpoNhKWQv9f6GXrzHgjIic6UevHJH80eOlpkuO92EK",
vcn_id="YFRYpolQk00jIAF2X8Nz3C5T42RPc0WasrXXQSa4nSKoK41Zb4U6Z2kEzQgLJOkmZa7u9HWgswPRC8TSLJ2XZKRQsBfhd059hDf3hPIDhNia4V1pfL1G3pgvkzEwxqbADffYR9H9o1er28Y9kNCTWyHWwGDyt8CfznHrosHViiFOzzheOvy8BTkiCbz1NyWoJiK6YJ2XL7Bbm9mj7XLRjSswVZlLYzlFFbaX2Cps7lIuDe56NGjRfctjBIB8I6c",
subnet_id="6Je1JBjSoUsdnGu3Iy0G3DeDiW8hcZrYkDdadQDXOgeeGiWIn9POtwIRAal7hXaGcubjTQvye1MxVhN0wUalmRf09qqx0hSSHqhgIxrkH2RPUUgN2bUPbBYlNsYuapqJ8lTqooPYgHvUf21Zs82R4HhC7aNsdkLcQN5BiQQtSwc9Svgt2Tvlcnw0vYDKS5L0LuW3eyfLCFaeBeDzmOlSnkCYOg5CSZinUbIL5j01FYamFc4luSAGFT2Uyrz6hof",
dns_server_ip="EXAMPLE-dnsServerIp-Value",
dns_server_zone="EXAMPLE-dnsServerZone-Value",
freeform_tags={
'EXAMPLE_KEY_pDkt9': 'EXAMPLE_VALUE_vaCqeCx6iCVuAHglkrqt'},
defined_tags={
'EXAMPLE_KEY_n7uDN': {
'EXAMPLE_KEY_W1teA': '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_gPiNy': 'EXAMPLE_VALUE_lFXfJd9pd7HEJCaIr8eB'}),
opc_retry_token="EXAMPLE-opcRetryToken-Value",
opc_request_id="G8VQUUAADKYCVIFRGQ8U<unique_ID>")
# Get the data from response
print(create_workspace_response.headers)