1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DatabaseMigration
  5. getAssessment
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
oci logo
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi

    This data source provides details about a specific Assessment resource in Oracle Cloud Infrastructure Database Migration service.

    Display Assessment details.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAssessment = oci.DatabaseMigration.getAssessment({
        assessmentId: testAssessmentOciDatabaseMigrationAssessment.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_assessment = oci.DatabaseMigration.get_assessment(assessment_id=test_assessment_oci_database_migration_assessment["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/databasemigration"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databasemigration.GetAssessment(ctx, &databasemigration.GetAssessmentArgs{
    			AssessmentId: testAssessmentOciDatabaseMigrationAssessment.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 testAssessment = Oci.DatabaseMigration.GetAssessment.Invoke(new()
        {
            AssessmentId = testAssessmentOciDatabaseMigrationAssessment.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DatabaseMigration.DatabaseMigrationFunctions;
    import com.pulumi.oci.DatabaseMigration.inputs.GetAssessmentArgs;
    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 testAssessment = DatabaseMigrationFunctions.getAssessment(GetAssessmentArgs.builder()
                .assessmentId(testAssessmentOciDatabaseMigrationAssessment.id())
                .build());
    
        }
    }
    
    variables:
      testAssessment:
        fn::invoke:
          function: oci:DatabaseMigration:getAssessment
          arguments:
            assessmentId: ${testAssessmentOciDatabaseMigrationAssessment.id}
    

    Using getAssessment

    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 getAssessment(args: GetAssessmentArgs, opts?: InvokeOptions): Promise<GetAssessmentResult>
    function getAssessmentOutput(args: GetAssessmentOutputArgs, opts?: InvokeOptions): Output<GetAssessmentResult>
    def get_assessment(assessment_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetAssessmentResult
    def get_assessment_output(assessment_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetAssessmentResult]
    func LookupAssessment(ctx *Context, args *LookupAssessmentArgs, opts ...InvokeOption) (*LookupAssessmentResult, error)
    func LookupAssessmentOutput(ctx *Context, args *LookupAssessmentOutputArgs, opts ...InvokeOption) LookupAssessmentResultOutput

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

    public static class GetAssessment 
    {
        public static Task<GetAssessmentResult> InvokeAsync(GetAssessmentArgs args, InvokeOptions? opts = null)
        public static Output<GetAssessmentResult> Invoke(GetAssessmentInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAssessmentResult> getAssessment(GetAssessmentArgs args, InvokeOptions options)
    public static Output<GetAssessmentResult> getAssessment(GetAssessmentArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DatabaseMigration/getAssessment:getAssessment
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AssessmentId string
    The OCID of the Assessment
    AssessmentId string
    The OCID of the Assessment
    assessmentId String
    The OCID of the Assessment
    assessmentId string
    The OCID of the Assessment
    assessment_id str
    The OCID of the Assessment
    assessmentId String
    The OCID of the Assessment

    getAssessment Result

    The following output properties are available:

    AcceptableDowntime string
    Time allowed for the application downtime.
    AssessmentId string
    AssessmentMigrationType string
    The migration type of the migration to be performed.
    BulkIncludeExcludeData string
    CompartmentId string
    The OCID of the resource being referenced.
    CreationType string
    The type of assessment creation.
    DatabaseCombination string
    The combination of source and target databases participating in a migration. Example: ORACLE means the migration is meant for migrating Oracle source and target databases.
    DatabaseDataSize string
    The size of a source database.
    DdlExpectation string
    DDL expectation values.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    ExcludeObjects List<GetAssessmentExcludeObject>
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the resource being referenced.
    IncludeObjects List<GetAssessmentIncludeObject>
    IsCdbSupported bool
    True if CDB should be defined, false otherwise.
    MigrationId string
    The OCID of the resource being referenced.
    NetworkSpeedMegabitPerSecond string
    A network speed in Megabits per second.
    SourceDatabaseConnections List<GetAssessmentSourceDatabaseConnection>
    Source Assessment Connection object
    State string
    The current state of the Assessment resource.
    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TargetDatabaseConnections List<GetAssessmentTargetDatabaseConnection>
    Target Assessment Connection object
    TimeCreated string
    An RFC3339 formatted datetime string such as 2016-08-25T21:10:29.600Z.
    TimeUpdated string
    An RFC3339 formatted datetime string such as 2016-08-25T21:10:29.600Z.
    AcceptableDowntime string
    Time allowed for the application downtime.
    AssessmentId string
    AssessmentMigrationType string
    The migration type of the migration to be performed.
    BulkIncludeExcludeData string
    CompartmentId string
    The OCID of the resource being referenced.
    CreationType string
    The type of assessment creation.
    DatabaseCombination string
    The combination of source and target databases participating in a migration. Example: ORACLE means the migration is meant for migrating Oracle source and target databases.
    DatabaseDataSize string
    The size of a source database.
    DdlExpectation string
    DDL expectation values.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    ExcludeObjects []GetAssessmentExcludeObject
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the resource being referenced.
    IncludeObjects []GetAssessmentIncludeObject
    IsCdbSupported bool
    True if CDB should be defined, false otherwise.
    MigrationId string
    The OCID of the resource being referenced.
    NetworkSpeedMegabitPerSecond string
    A network speed in Megabits per second.
    SourceDatabaseConnections []GetAssessmentSourceDatabaseConnection
    Source Assessment Connection object
    State string
    The current state of the Assessment resource.
    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TargetDatabaseConnections []GetAssessmentTargetDatabaseConnection
    Target Assessment Connection object
    TimeCreated string
    An RFC3339 formatted datetime string such as 2016-08-25T21:10:29.600Z.
    TimeUpdated string
    An RFC3339 formatted datetime string such as 2016-08-25T21:10:29.600Z.
    acceptableDowntime String
    Time allowed for the application downtime.
    assessmentId String
    assessmentMigrationType String
    The migration type of the migration to be performed.
    bulkIncludeExcludeData String
    compartmentId String
    The OCID of the resource being referenced.
    creationType String
    The type of assessment creation.
    databaseCombination String
    The combination of source and target databases participating in a migration. Example: ORACLE means the migration is meant for migrating Oracle source and target databases.
    databaseDataSize String
    The size of a source database.
    ddlExpectation String
    DDL expectation values.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    excludeObjects List<GetAssessmentExcludeObject>
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the resource being referenced.
    includeObjects List<GetAssessmentIncludeObject>
    isCdbSupported Boolean
    True if CDB should be defined, false otherwise.
    migrationId String
    The OCID of the resource being referenced.
    networkSpeedMegabitPerSecond String
    A network speed in Megabits per second.
    sourceDatabaseConnections List<GetAssessmentSourceDatabaseConnection>
    Source Assessment Connection object
    state String
    The current state of the Assessment resource.
    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetDatabaseConnections List<GetAssessmentTargetDatabaseConnection>
    Target Assessment Connection object
    timeCreated String
    An RFC3339 formatted datetime string such as 2016-08-25T21:10:29.600Z.
    timeUpdated String
    An RFC3339 formatted datetime string such as 2016-08-25T21:10:29.600Z.
    acceptableDowntime string
    Time allowed for the application downtime.
    assessmentId string
    assessmentMigrationType string
    The migration type of the migration to be performed.
    bulkIncludeExcludeData string
    compartmentId string
    The OCID of the resource being referenced.
    creationType string
    The type of assessment creation.
    databaseCombination string
    The combination of source and target databases participating in a migration. Example: ORACLE means the migration is meant for migrating Oracle source and target databases.
    databaseDataSize string
    The size of a source database.
    ddlExpectation string
    DDL expectation values.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    excludeObjects GetAssessmentExcludeObject[]
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    The OCID of the resource being referenced.
    includeObjects GetAssessmentIncludeObject[]
    isCdbSupported boolean
    True if CDB should be defined, false otherwise.
    migrationId string
    The OCID of the resource being referenced.
    networkSpeedMegabitPerSecond string
    A network speed in Megabits per second.
    sourceDatabaseConnections GetAssessmentSourceDatabaseConnection[]
    Source Assessment Connection object
    state string
    The current state of the Assessment resource.
    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetDatabaseConnections GetAssessmentTargetDatabaseConnection[]
    Target Assessment Connection object
    timeCreated string
    An RFC3339 formatted datetime string such as 2016-08-25T21:10:29.600Z.
    timeUpdated string
    An RFC3339 formatted datetime string such as 2016-08-25T21:10:29.600Z.
    acceptable_downtime str
    Time allowed for the application downtime.
    assessment_id str
    assessment_migration_type str
    The migration type of the migration to be performed.
    bulk_include_exclude_data str
    compartment_id str
    The OCID of the resource being referenced.
    creation_type str
    The type of assessment creation.
    database_combination str
    The combination of source and target databases participating in a migration. Example: ORACLE means the migration is meant for migrating Oracle source and target databases.
    database_data_size str
    The size of a source database.
    ddl_expectation str
    DDL expectation values.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description str
    A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    display_name str
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    exclude_objects Sequence[GetAssessmentExcludeObject]
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    The OCID of the resource being referenced.
    include_objects Sequence[GetAssessmentIncludeObject]
    is_cdb_supported bool
    True if CDB should be defined, false otherwise.
    migration_id str
    The OCID of the resource being referenced.
    network_speed_megabit_per_second str
    A network speed in Megabits per second.
    source_database_connections Sequence[GetAssessmentSourceDatabaseConnection]
    Source Assessment Connection object
    state str
    The current state of the Assessment resource.
    system_tags Mapping[str, str]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    target_database_connections Sequence[GetAssessmentTargetDatabaseConnection]
    Target Assessment Connection object
    time_created str
    An RFC3339 formatted datetime string such as 2016-08-25T21:10:29.600Z.
    time_updated str
    An RFC3339 formatted datetime string such as 2016-08-25T21:10:29.600Z.
    acceptableDowntime String
    Time allowed for the application downtime.
    assessmentId String
    assessmentMigrationType String
    The migration type of the migration to be performed.
    bulkIncludeExcludeData String
    compartmentId String
    The OCID of the resource being referenced.
    creationType String
    The type of assessment creation.
    databaseCombination String
    The combination of source and target databases participating in a migration. Example: ORACLE means the migration is meant for migrating Oracle source and target databases.
    databaseDataSize String
    The size of a source database.
    ddlExpectation String
    DDL expectation values.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    excludeObjects List<Property Map>
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the resource being referenced.
    includeObjects List<Property Map>
    isCdbSupported Boolean
    True if CDB should be defined, false otherwise.
    migrationId String
    The OCID of the resource being referenced.
    networkSpeedMegabitPerSecond String
    A network speed in Megabits per second.
    sourceDatabaseConnections List<Property Map>
    Source Assessment Connection object
    state String
    The current state of the Assessment resource.
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetDatabaseConnections List<Property Map>
    Target Assessment Connection object
    timeCreated String
    An RFC3339 formatted datetime string such as 2016-08-25T21:10:29.600Z.
    timeUpdated String
    An RFC3339 formatted datetime string such as 2016-08-25T21:10:29.600Z.

    Supporting Types

    GetAssessmentExcludeObject

    GetAssessmentIncludeObject

    GetAssessmentSourceDatabaseConnection

    Id string
    The OCID of the resource being referenced.
    Id string
    The OCID of the resource being referenced.
    id String
    The OCID of the resource being referenced.
    id string
    The OCID of the resource being referenced.
    id str
    The OCID of the resource being referenced.
    id String
    The OCID of the resource being referenced.

    GetAssessmentTargetDatabaseConnection

    ConnectionType string
    Defines the type of connection. For example, ORACLE.
    DatabaseVersion string
    The database version
    Id string
    The OCID of the resource being referenced.
    TechnologySubType string
    Technology sub-type e.g. ADW_SHARED, ADW_DEDICATED, ATP_SHARED, ATP_DEDICATED
    TechnologyType string
    The technology type.
    ConnectionType string
    Defines the type of connection. For example, ORACLE.
    DatabaseVersion string
    The database version
    Id string
    The OCID of the resource being referenced.
    TechnologySubType string
    Technology sub-type e.g. ADW_SHARED, ADW_DEDICATED, ATP_SHARED, ATP_DEDICATED
    TechnologyType string
    The technology type.
    connectionType String
    Defines the type of connection. For example, ORACLE.
    databaseVersion String
    The database version
    id String
    The OCID of the resource being referenced.
    technologySubType String
    Technology sub-type e.g. ADW_SHARED, ADW_DEDICATED, ATP_SHARED, ATP_DEDICATED
    technologyType String
    The technology type.
    connectionType string
    Defines the type of connection. For example, ORACLE.
    databaseVersion string
    The database version
    id string
    The OCID of the resource being referenced.
    technologySubType string
    Technology sub-type e.g. ADW_SHARED, ADW_DEDICATED, ATP_SHARED, ATP_DEDICATED
    technologyType string
    The technology type.
    connection_type str
    Defines the type of connection. For example, ORACLE.
    database_version str
    The database version
    id str
    The OCID of the resource being referenced.
    technology_sub_type str
    Technology sub-type e.g. ADW_SHARED, ADW_DEDICATED, ATP_SHARED, ATP_DEDICATED
    technology_type str
    The technology type.
    connectionType String
    Defines the type of connection. For example, ORACLE.
    databaseVersion String
    The database version
    id String
    The OCID of the resource being referenced.
    technologySubType String
    Technology sub-type e.g. ADW_SHARED, ADW_DEDICATED, ATP_SHARED, ATP_DEDICATED
    technologyType String
    The technology type.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.2.0
    published on Friday, Mar 6, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.