# 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="MnvQS2IwEqyEa4Bd0mux8G2r7aBdsw18ynAdBdF1bYh59QxptEGDLGPDE0fxzCtEgvnDiLlnZYjvKAsgz2K8NktFUCWrDfK3aQZOkaJDuvbVDLdUayfI7S14YGrnIP2arBr0GAjguOhQ2ZNOhHT6wBSf6bITf20YLIn1C7Z5kSXqf1I2cOWYz44vHFp5pZ5MuOJtN7hgKwCjSNtxFZgbPNANm7h1tDdxAufLEck6okqzatpxvgX1yx96IuMBmeP",
vcn_id="EJzgHaZcQKwjQlrAVqHqotUdtYH0vlWFWYLYAIPfxOGp5wJXOVpVqkOCTAjBt1GK0bAVuo0kDtcWHUdJ1HtP2zbXHvXMTi9UToiC1H0uGnMnqKQXV294Iqj2TxRABRRTbhfxwenkNgu3lhpjRyyEloS5CwPgSjzB3Gmej4xTjm5eRxP54gQWgvfwi8HSE3wb5MVcX8e39VHuI5wmxGT6lRvXkVxQkSki8Jr97XPEgyKtVMKlTooMh5VUmWBMkaA",
subnet_id="1CRWDvVq3XnvdQnJddytqV010FhhxhIIY0aaPFxItfkCx4VIBm0JUPWbEOEuefrmaJCstB4CHSBjdxwYXNmUXVOAWasSsqsmbqumzhFGsKaIhwpEsXpEMjp6JcihLO4eMoIPDZzruOwLKtvLFgNeD1oexfy77mpS2mgqYNKcSkn2Woxz8HOrqg01VcJ7EpI7RVmZrqJ7rDvwOpgAaUC1jh67iEVUqX8R3wSadxTshdYdacuSWQzuk2FH00wUmWw",
dns_server_ip="EXAMPLE-dnsServerIp-Value",
dns_server_zone="EXAMPLE-dnsServerZone-Value",
freeform_tags={
'EXAMPLE_KEY_NOIst': 'EXAMPLE_VALUE_gwPg2xSpOJgAO9IF6ifJ'},
defined_tags={
'EXAMPLE_KEY_RzWuU': {
'EXAMPLE_KEY_C3K4t': '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_FoicT': 'EXAMPLE_VALUE_VZ0psBdJIRsokBQLmQ42'}),
opc_retry_token="EXAMPLE-opcRetryToken-Value",
opc_request_id="V0OF3T4JI9OWAKZYGY8S<unique_ID>")
# Get the data from response
print(create_workspace_response.headers)