# 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="bxMM5sxS0IPy4ralRmj6TdF7mNNLdHoKUmo5by1VzEAUpznB0tGuYYpbU26sOf0mbC1OGCabvwURYmeQ3pUgWourDTeqANkAz2IENFwiZKUJq3SzAYOrnNOoMu5GlqqonsjqE3IM0YL3eGtbC6cTz4uWqYkZWUd8JiBFxV1FzYRLVbHkpLDZ5QAG9txgPA38txtkv4Apf5fnxbmt7OADqTZ8L3xupBxFFHxdthSN3DL2qHoORPlLp0vTgY6lHzF",
vcn_id="BSu8b8lE9MhQxB8Af1WuLc03oJ0TifHe6nnR4IIlll7qcqlsIkQd0Dh77DQLKWuEvIAYGDF1l51IJMgeJerKekomMERYwgDOVff5bFZupMqeYsi3bJ99e6szegH9hwMNYc46NYqfKpmwGciSkWz0qYltKYkZjmeizSYDDessa39eY5sI4AzlCTA9eL0EnhESqYbTd8WGLj9O89BXnJdGFKqgrLz6QuI0YavBIK6RRVnAMACy9bWch9gN0QCRRPF",
subnet_id="7L11Rb5i00PTsvt5u5ZeYPqtD7keXRLS6mXNQmG8P2xf63v5cVZ7udxpNt0mf7Ot2KE48sPtnjNGwJznWTgS5TfUnEXKGtOBzfjAsJRyJWGkhkvrIlsnNRZ74HFSgmw3MNItGBEmivclbwlcrJhWTq2nur8QOXpzvRONj7QTxgGElCNx8RQHbGCXcBeRlos81Mb8fsDw76i15Hvca4XDGq7wuLSiBfjjEAbL04Dyp7aEMslSI2xIcl3qpuDsBfs",
dns_server_ip="EXAMPLE-dnsServerIp-Value",
dns_server_zone="EXAMPLE-dnsServerZone-Value",
freeform_tags={
'EXAMPLE_KEY_x7iPC': 'EXAMPLE_VALUE_gRqKEEpQQWeC2BJafiC1'},
defined_tags={
'EXAMPLE_KEY_4xiYL': {
'EXAMPLE_KEY_eSf1P': '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_RLB6h': 'EXAMPLE_VALUE_9bzMkC7UVrAXDIyWjbTl'}),
opc_retry_token="EXAMPLE-opcRetryToken-Value",
opc_request_id="PWKT1OV3JHI4WFPRZUFT<unique_ID>")
# Get the data from response
print(create_workspace_response.headers)