1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataIntegration
  5. getWorkspaceImportRequest
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.DataIntegration.getWorkspaceImportRequest

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

This data source provides details about a specific Workspace Import Request resource in Oracle Cloud Infrastructure Data Integration service.

This endpoint can be used to get the summary/details of object being imported.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testWorkspaceImportRequest = oci.DataIntegration.getWorkspaceImportRequest({
    importRequestKey: workspaceImportRequestImportRequestKey,
    workspaceId: testWorkspace.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_workspace_import_request = oci.DataIntegration.get_workspace_import_request(import_request_key=workspace_import_request_import_request_key,
    workspace_id=test_workspace["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/dataintegration"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dataintegration.GetWorkspaceImportRequest(ctx, &dataintegration.GetWorkspaceImportRequestArgs{
			ImportRequestKey: workspaceImportRequestImportRequestKey,
			WorkspaceId:      testWorkspace.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testWorkspaceImportRequest = Oci.DataIntegration.GetWorkspaceImportRequest.Invoke(new()
    {
        ImportRequestKey = workspaceImportRequestImportRequestKey,
        WorkspaceId = testWorkspace.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataIntegration.DataIntegrationFunctions;
import com.pulumi.oci.DataIntegration.inputs.GetWorkspaceImportRequestArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var testWorkspaceImportRequest = DataIntegrationFunctions.getWorkspaceImportRequest(GetWorkspaceImportRequestArgs.builder()
            .importRequestKey(workspaceImportRequestImportRequestKey)
            .workspaceId(testWorkspace.id())
            .build());

    }
}
Copy
variables:
  testWorkspaceImportRequest:
    fn::invoke:
      function: oci:DataIntegration:getWorkspaceImportRequest
      arguments:
        importRequestKey: ${workspaceImportRequestImportRequestKey}
        workspaceId: ${testWorkspace.id}
Copy

Using getWorkspaceImportRequest

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getWorkspaceImportRequest(args: GetWorkspaceImportRequestArgs, opts?: InvokeOptions): Promise<GetWorkspaceImportRequestResult>
function getWorkspaceImportRequestOutput(args: GetWorkspaceImportRequestOutputArgs, opts?: InvokeOptions): Output<GetWorkspaceImportRequestResult>
Copy
def get_workspace_import_request(import_request_key: Optional[str] = None,
                                 workspace_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetWorkspaceImportRequestResult
def get_workspace_import_request_output(import_request_key: Optional[pulumi.Input[str]] = None,
                                 workspace_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetWorkspaceImportRequestResult]
Copy
func GetWorkspaceImportRequest(ctx *Context, args *GetWorkspaceImportRequestArgs, opts ...InvokeOption) (*GetWorkspaceImportRequestResult, error)
func GetWorkspaceImportRequestOutput(ctx *Context, args *GetWorkspaceImportRequestOutputArgs, opts ...InvokeOption) GetWorkspaceImportRequestResultOutput
Copy

> Note: This function is named GetWorkspaceImportRequest in the Go SDK.

public static class GetWorkspaceImportRequest 
{
    public static Task<GetWorkspaceImportRequestResult> InvokeAsync(GetWorkspaceImportRequestArgs args, InvokeOptions? opts = null)
    public static Output<GetWorkspaceImportRequestResult> Invoke(GetWorkspaceImportRequestInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetWorkspaceImportRequestResult> getWorkspaceImportRequest(GetWorkspaceImportRequestArgs args, InvokeOptions options)
public static Output<GetWorkspaceImportRequestResult> getWorkspaceImportRequest(GetWorkspaceImportRequestArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:DataIntegration/getWorkspaceImportRequest:getWorkspaceImportRequest
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ImportRequestKey This property is required. string
The key of the object export object request
WorkspaceId This property is required. string
The workspace ID.
ImportRequestKey This property is required. string
The key of the object export object request
WorkspaceId This property is required. string
The workspace ID.
importRequestKey This property is required. String
The key of the object export object request
workspaceId This property is required. String
The workspace ID.
importRequestKey This property is required. string
The key of the object export object request
workspaceId This property is required. string
The workspace ID.
import_request_key This property is required. str
The key of the object export object request
workspace_id This property is required. str
The workspace ID.
importRequestKey This property is required. String
The key of the object export object request
workspaceId This property is required. String
The workspace ID.

getWorkspaceImportRequest Result

The following output properties are available:

AreDataAssetReferencesIncluded bool
This field controls if the data asset references will be included during import.
Bucket string
The name of the Object Storage Bucket where the objects will be imported from
CreatedBy string
Name of the user who initiated import request.
ErrorMessages Dictionary<string, string>
Contains key of the error
FileName string
Name of the zip file from which objects will be imported.
Id string
ImportConflictResolutions List<GetWorkspaceImportRequestImportConflictResolution>
Import Objects Conflict resolution.
ImportRequestKey string
ImportedObjects List<GetWorkspaceImportRequestImportedObject>
The array of imported object details.
Key string
Import object request key
Name string
Name of the import request.
ObjectKeyForImport string
Key of the object inside which all the objects will be imported
ObjectStorageRegion string
Region of the object storage (if using object storage of different region)
ObjectStorageTenancyId string
Optional parameter to point to object storage tenancy (if using Object Storage of different tenancy)
Status string
Import Objects request status.
TimeEndedInMillis string
Time at which the request was completely processed.
TimeStartedInMillis string
Time at which the request started getting processed.
TotalImportedObjectCount int
Number of objects that are imported.
WorkspaceId string
AreDataAssetReferencesIncluded bool
This field controls if the data asset references will be included during import.
Bucket string
The name of the Object Storage Bucket where the objects will be imported from
CreatedBy string
Name of the user who initiated import request.
ErrorMessages map[string]string
Contains key of the error
FileName string
Name of the zip file from which objects will be imported.
Id string
ImportConflictResolutions []GetWorkspaceImportRequestImportConflictResolution
Import Objects Conflict resolution.
ImportRequestKey string
ImportedObjects []GetWorkspaceImportRequestImportedObject
The array of imported object details.
Key string
Import object request key
Name string
Name of the import request.
ObjectKeyForImport string
Key of the object inside which all the objects will be imported
ObjectStorageRegion string
Region of the object storage (if using object storage of different region)
ObjectStorageTenancyId string
Optional parameter to point to object storage tenancy (if using Object Storage of different tenancy)
Status string
Import Objects request status.
TimeEndedInMillis string
Time at which the request was completely processed.
TimeStartedInMillis string
Time at which the request started getting processed.
TotalImportedObjectCount int
Number of objects that are imported.
WorkspaceId string
areDataAssetReferencesIncluded Boolean
This field controls if the data asset references will be included during import.
bucket String
The name of the Object Storage Bucket where the objects will be imported from
createdBy String
Name of the user who initiated import request.
errorMessages Map<String,String>
Contains key of the error
fileName String
Name of the zip file from which objects will be imported.
id String
importConflictResolutions List<GetWorkspaceImportRequestImportConflictResolution>
Import Objects Conflict resolution.
importRequestKey String
importedObjects List<GetWorkspaceImportRequestImportedObject>
The array of imported object details.
key String
Import object request key
name String
Name of the import request.
objectKeyForImport String
Key of the object inside which all the objects will be imported
objectStorageRegion String
Region of the object storage (if using object storage of different region)
objectStorageTenancyId String
Optional parameter to point to object storage tenancy (if using Object Storage of different tenancy)
status String
Import Objects request status.
timeEndedInMillis String
Time at which the request was completely processed.
timeStartedInMillis String
Time at which the request started getting processed.
totalImportedObjectCount Integer
Number of objects that are imported.
workspaceId String
areDataAssetReferencesIncluded boolean
This field controls if the data asset references will be included during import.
bucket string
The name of the Object Storage Bucket where the objects will be imported from
createdBy string
Name of the user who initiated import request.
errorMessages {[key: string]: string}
Contains key of the error
fileName string
Name of the zip file from which objects will be imported.
id string
importConflictResolutions GetWorkspaceImportRequestImportConflictResolution[]
Import Objects Conflict resolution.
importRequestKey string
importedObjects GetWorkspaceImportRequestImportedObject[]
The array of imported object details.
key string
Import object request key
name string
Name of the import request.
objectKeyForImport string
Key of the object inside which all the objects will be imported
objectStorageRegion string
Region of the object storage (if using object storage of different region)
objectStorageTenancyId string
Optional parameter to point to object storage tenancy (if using Object Storage of different tenancy)
status string
Import Objects request status.
timeEndedInMillis string
Time at which the request was completely processed.
timeStartedInMillis string
Time at which the request started getting processed.
totalImportedObjectCount number
Number of objects that are imported.
workspaceId string
are_data_asset_references_included bool
This field controls if the data asset references will be included during import.
bucket str
The name of the Object Storage Bucket where the objects will be imported from
created_by str
Name of the user who initiated import request.
error_messages Mapping[str, str]
Contains key of the error
file_name str
Name of the zip file from which objects will be imported.
id str
import_conflict_resolutions Sequence[dataintegration.GetWorkspaceImportRequestImportConflictResolution]
Import Objects Conflict resolution.
import_request_key str
imported_objects Sequence[dataintegration.GetWorkspaceImportRequestImportedObject]
The array of imported object details.
key str
Import object request key
name str
Name of the import request.
object_key_for_import str
Key of the object inside which all the objects will be imported
object_storage_region str
Region of the object storage (if using object storage of different region)
object_storage_tenancy_id str
Optional parameter to point to object storage tenancy (if using Object Storage of different tenancy)
status str
Import Objects request status.
time_ended_in_millis str
Time at which the request was completely processed.
time_started_in_millis str
Time at which the request started getting processed.
total_imported_object_count int
Number of objects that are imported.
workspace_id str
areDataAssetReferencesIncluded Boolean
This field controls if the data asset references will be included during import.
bucket String
The name of the Object Storage Bucket where the objects will be imported from
createdBy String
Name of the user who initiated import request.
errorMessages Map<String>
Contains key of the error
fileName String
Name of the zip file from which objects will be imported.
id String
importConflictResolutions List<Property Map>
Import Objects Conflict resolution.
importRequestKey String
importedObjects List<Property Map>
The array of imported object details.
key String
Import object request key
name String
Name of the import request.
objectKeyForImport String
Key of the object inside which all the objects will be imported
objectStorageRegion String
Region of the object storage (if using object storage of different region)
objectStorageTenancyId String
Optional parameter to point to object storage tenancy (if using Object Storage of different tenancy)
status String
Import Objects request status.
timeEndedInMillis String
Time at which the request was completely processed.
timeStartedInMillis String
Time at which the request started getting processed.
totalImportedObjectCount Number
Number of objects that are imported.
workspaceId String

Supporting Types

GetWorkspaceImportRequestImportConflictResolution

DuplicatePrefix This property is required. string
In case of DUPLICATE mode, prefix will be used to disambiguate the object.
DuplicateSuffix This property is required. string
In case of DUPLICATE mode, suffix will be used to disambiguate the object.
ImportConflictResolutionType This property is required. string
Import Objects Conflict resolution Type (RETAIN/DUPLICATE/REPLACE).
DuplicatePrefix This property is required. string
In case of DUPLICATE mode, prefix will be used to disambiguate the object.
DuplicateSuffix This property is required. string
In case of DUPLICATE mode, suffix will be used to disambiguate the object.
ImportConflictResolutionType This property is required. string
Import Objects Conflict resolution Type (RETAIN/DUPLICATE/REPLACE).
duplicatePrefix This property is required. String
In case of DUPLICATE mode, prefix will be used to disambiguate the object.
duplicateSuffix This property is required. String
In case of DUPLICATE mode, suffix will be used to disambiguate the object.
importConflictResolutionType This property is required. String
Import Objects Conflict resolution Type (RETAIN/DUPLICATE/REPLACE).
duplicatePrefix This property is required. string
In case of DUPLICATE mode, prefix will be used to disambiguate the object.
duplicateSuffix This property is required. string
In case of DUPLICATE mode, suffix will be used to disambiguate the object.
importConflictResolutionType This property is required. string
Import Objects Conflict resolution Type (RETAIN/DUPLICATE/REPLACE).
duplicate_prefix This property is required. str
In case of DUPLICATE mode, prefix will be used to disambiguate the object.
duplicate_suffix This property is required. str
In case of DUPLICATE mode, suffix will be used to disambiguate the object.
import_conflict_resolution_type This property is required. str
Import Objects Conflict resolution Type (RETAIN/DUPLICATE/REPLACE).
duplicatePrefix This property is required. String
In case of DUPLICATE mode, prefix will be used to disambiguate the object.
duplicateSuffix This property is required. String
In case of DUPLICATE mode, suffix will be used to disambiguate the object.
importConflictResolutionType This property is required. String
Import Objects Conflict resolution Type (RETAIN/DUPLICATE/REPLACE).

GetWorkspaceImportRequestImportedObject

AggregatorKey This property is required. string
Aggregator key
Identifier This property is required. string
Object identifier
Name This property is required. string
Name of the import request.
NamePath This property is required. string
Object name path
NewKey This property is required. string
New key of the object
ObjectType This property is required. string
Object type
ObjectVersion This property is required. string
Object version
OldKey This property is required. string
Old key of the object
ResolutionAction This property is required. string
Object resolution action
TimeUpdatedInMillis This property is required. string
time at which this object was last updated.
AggregatorKey This property is required. string
Aggregator key
Identifier This property is required. string
Object identifier
Name This property is required. string
Name of the import request.
NamePath This property is required. string
Object name path
NewKey This property is required. string
New key of the object
ObjectType This property is required. string
Object type
ObjectVersion This property is required. string
Object version
OldKey This property is required. string
Old key of the object
ResolutionAction This property is required. string
Object resolution action
TimeUpdatedInMillis This property is required. string
time at which this object was last updated.
aggregatorKey This property is required. String
Aggregator key
identifier This property is required. String
Object identifier
name This property is required. String
Name of the import request.
namePath This property is required. String
Object name path
newKey This property is required. String
New key of the object
objectType This property is required. String
Object type
objectVersion This property is required. String
Object version
oldKey This property is required. String
Old key of the object
resolutionAction This property is required. String
Object resolution action
timeUpdatedInMillis This property is required. String
time at which this object was last updated.
aggregatorKey This property is required. string
Aggregator key
identifier This property is required. string
Object identifier
name This property is required. string
Name of the import request.
namePath This property is required. string
Object name path
newKey This property is required. string
New key of the object
objectType This property is required. string
Object type
objectVersion This property is required. string
Object version
oldKey This property is required. string
Old key of the object
resolutionAction This property is required. string
Object resolution action
timeUpdatedInMillis This property is required. string
time at which this object was last updated.
aggregator_key This property is required. str
Aggregator key
identifier This property is required. str
Object identifier
name This property is required. str
Name of the import request.
name_path This property is required. str
Object name path
new_key This property is required. str
New key of the object
object_type This property is required. str
Object type
object_version This property is required. str
Object version
old_key This property is required. str
Old key of the object
resolution_action This property is required. str
Object resolution action
time_updated_in_millis This property is required. str
time at which this object was last updated.
aggregatorKey This property is required. String
Aggregator key
identifier This property is required. String
Object identifier
name This property is required. String
Name of the import request.
namePath This property is required. String
Object name path
newKey This property is required. String
New key of the object
objectType This property is required. String
Object type
objectVersion This property is required. String
Object version
oldKey This property is required. String
Old key of the object
resolutionAction This property is required. String
Object resolution action
timeUpdatedInMillis This property is required. String
time at which this object was last updated.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi