1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataIntegration
  5. getWorkspaceImportRequest
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.DataIntegration.getWorkspaceImportRequest

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 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,
    });
    
    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"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      testWorkspaceImportRequest:
        fn::invoke:
          Function: oci:DataIntegration:getWorkspaceImportRequest
          Arguments:
            importRequestKey: ${workspaceImportRequestImportRequestKey}
            workspaceId: ${testWorkspace.id}
    

    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>
    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]
    func GetWorkspaceImportRequest(ctx *Context, args *GetWorkspaceImportRequestArgs, opts ...InvokeOption) (*GetWorkspaceImportRequestResult, error)
    func GetWorkspaceImportRequestOutput(ctx *Context, args *GetWorkspaceImportRequestOutputArgs, opts ...InvokeOption) GetWorkspaceImportRequestResultOutput

    > 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)
    }
    public static CompletableFuture<GetWorkspaceImportRequestResult> getWorkspaceImportRequest(GetWorkspaceImportRequestArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DataIntegration/getWorkspaceImportRequest:getWorkspaceImportRequest
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ImportRequestKey string
    The key of the object export object request
    WorkspaceId string
    The workspace ID.
    ImportRequestKey string
    The key of the object export object request
    WorkspaceId string
    The workspace ID.
    importRequestKey String
    The key of the object export object request
    workspaceId String
    The workspace ID.
    importRequestKey string
    The key of the object export object request
    workspaceId string
    The workspace ID.
    import_request_key str
    The key of the object export object request
    workspace_id str
    The workspace ID.
    importRequestKey String
    The key of the object export object request
    workspaceId 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, object>
    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]interface{}
    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,Object>
    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]: any}
    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, Any]
    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<Any>
    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 string
    In case of DUPLICATE mode, prefix will be used to disambiguate the object.
    DuplicateSuffix string
    In case of DUPLICATE mode, suffix will be used to disambiguate the object.
    ImportConflictResolutionType string
    Import Objects Conflict resolution Type (RETAIN/DUPLICATE/REPLACE).
    DuplicatePrefix string
    In case of DUPLICATE mode, prefix will be used to disambiguate the object.
    DuplicateSuffix string
    In case of DUPLICATE mode, suffix will be used to disambiguate the object.
    ImportConflictResolutionType string
    Import Objects Conflict resolution Type (RETAIN/DUPLICATE/REPLACE).
    duplicatePrefix String
    In case of DUPLICATE mode, prefix will be used to disambiguate the object.
    duplicateSuffix String
    In case of DUPLICATE mode, suffix will be used to disambiguate the object.
    importConflictResolutionType String
    Import Objects Conflict resolution Type (RETAIN/DUPLICATE/REPLACE).
    duplicatePrefix string
    In case of DUPLICATE mode, prefix will be used to disambiguate the object.
    duplicateSuffix string
    In case of DUPLICATE mode, suffix will be used to disambiguate the object.
    importConflictResolutionType string
    Import Objects Conflict resolution Type (RETAIN/DUPLICATE/REPLACE).
    duplicate_prefix str
    In case of DUPLICATE mode, prefix will be used to disambiguate the object.
    duplicate_suffix str
    In case of DUPLICATE mode, suffix will be used to disambiguate the object.
    import_conflict_resolution_type str
    Import Objects Conflict resolution Type (RETAIN/DUPLICATE/REPLACE).
    duplicatePrefix String
    In case of DUPLICATE mode, prefix will be used to disambiguate the object.
    duplicateSuffix String
    In case of DUPLICATE mode, suffix will be used to disambiguate the object.
    importConflictResolutionType String
    Import Objects Conflict resolution Type (RETAIN/DUPLICATE/REPLACE).

    GetWorkspaceImportRequestImportedObject

    AggregatorKey string
    Aggregator key
    Identifier string
    Object identifier
    Name string
    Name of the import request.
    NamePath string
    Object name path
    NewKey string
    New key of the object
    ObjectType string
    Object type
    ObjectVersion string
    Object version
    OldKey string
    Old key of the object
    ResolutionAction string
    Object resolution action
    TimeUpdatedInMillis string
    time at which this object was last updated.
    AggregatorKey string
    Aggregator key
    Identifier string
    Object identifier
    Name string
    Name of the import request.
    NamePath string
    Object name path
    NewKey string
    New key of the object
    ObjectType string
    Object type
    ObjectVersion string
    Object version
    OldKey string
    Old key of the object
    ResolutionAction string
    Object resolution action
    TimeUpdatedInMillis string
    time at which this object was last updated.
    aggregatorKey String
    Aggregator key
    identifier String
    Object identifier
    name String
    Name of the import request.
    namePath String
    Object name path
    newKey String
    New key of the object
    objectType String
    Object type
    objectVersion String
    Object version
    oldKey String
    Old key of the object
    resolutionAction String
    Object resolution action
    timeUpdatedInMillis String
    time at which this object was last updated.
    aggregatorKey string
    Aggregator key
    identifier string
    Object identifier
    name string
    Name of the import request.
    namePath string
    Object name path
    newKey string
    New key of the object
    objectType string
    Object type
    objectVersion string
    Object version
    oldKey string
    Old key of the object
    resolutionAction string
    Object resolution action
    timeUpdatedInMillis string
    time at which this object was last updated.
    aggregator_key str
    Aggregator key
    identifier str
    Object identifier
    name str
    Name of the import request.
    name_path str
    Object name path
    new_key str
    New key of the object
    object_type str
    Object type
    object_version str
    Object version
    old_key str
    Old key of the object
    resolution_action str
    Object resolution action
    time_updated_in_millis str
    time at which this object was last updated.
    aggregatorKey String
    Aggregator key
    identifier String
    Object identifier
    name String
    Name of the import request.
    namePath String
    Object name path
    newKey String
    New key of the object
    objectType String
    Object type
    objectVersion String
    Object version
    oldKey String
    Old key of the object
    resolutionAction String
    Object resolution action
    timeUpdatedInMillis 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.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi