1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DatabaseMigration
  5. getJobAdvisorReport
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.DatabaseMigration.getJobAdvisorReport

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

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

    Get the Pre-Migration Advisor report details

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testJobAdvisorReport = oci.DatabaseMigration.getJobAdvisorReport({
        jobId: oci_database_migration_job.test_job.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_job_advisor_report = oci.DatabaseMigration.get_job_advisor_report(job_id=oci_database_migration_job["test_job"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/DatabaseMigration"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DatabaseMigration.GetJobAdvisorReport(ctx, &databasemigration.GetJobAdvisorReportArgs{
    			JobId: oci_database_migration_job.Test_job.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 testJobAdvisorReport = Oci.DatabaseMigration.GetJobAdvisorReport.Invoke(new()
        {
            JobId = oci_database_migration_job.Test_job.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.GetJobAdvisorReportArgs;
    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 testJobAdvisorReport = DatabaseMigrationFunctions.getJobAdvisorReport(GetJobAdvisorReportArgs.builder()
                .jobId(oci_database_migration_job.test_job().id())
                .build());
    
        }
    }
    
    variables:
      testJobAdvisorReport:
        fn::invoke:
          Function: oci:DatabaseMigration:getJobAdvisorReport
          Arguments:
            jobId: ${oci_database_migration_job.test_job.id}
    

    Using getJobAdvisorReport

    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 getJobAdvisorReport(args: GetJobAdvisorReportArgs, opts?: InvokeOptions): Promise<GetJobAdvisorReportResult>
    function getJobAdvisorReportOutput(args: GetJobAdvisorReportOutputArgs, opts?: InvokeOptions): Output<GetJobAdvisorReportResult>
    def get_job_advisor_report(job_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetJobAdvisorReportResult
    def get_job_advisor_report_output(job_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetJobAdvisorReportResult]
    func GetJobAdvisorReport(ctx *Context, args *GetJobAdvisorReportArgs, opts ...InvokeOption) (*GetJobAdvisorReportResult, error)
    func GetJobAdvisorReportOutput(ctx *Context, args *GetJobAdvisorReportOutputArgs, opts ...InvokeOption) GetJobAdvisorReportResultOutput

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

    public static class GetJobAdvisorReport 
    {
        public static Task<GetJobAdvisorReportResult> InvokeAsync(GetJobAdvisorReportArgs args, InvokeOptions? opts = null)
        public static Output<GetJobAdvisorReportResult> Invoke(GetJobAdvisorReportInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetJobAdvisorReportResult> getJobAdvisorReport(GetJobAdvisorReportArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DatabaseMigration/getJobAdvisorReport:getJobAdvisorReport
      arguments:
        # arguments dictionary

    The following arguments are supported:

    JobId string
    The OCID of the job
    JobId string
    The OCID of the job
    jobId String
    The OCID of the job
    jobId string
    The OCID of the job
    job_id str
    The OCID of the job
    jobId String
    The OCID of the job

    getJobAdvisorReport Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    JobId string
    NumberOfFatal int
    Number of Fatal results in the advisor report.
    NumberOfFatalBlockers int
    Number of Fatal Blocker results in the advisor report.
    NumberOfInformationalResults int
    Number of Informational results in the advisor report.
    NumberOfWarnings int
    Number of Warning results in the advisor report.
    ReportLocationDetails List<GetJobAdvisorReportReportLocationDetail>
    Details to access Pre-Migration Advisor report.
    Result string
    Pre-Migration advisor result.
    Id string
    The provider-assigned unique ID for this managed resource.
    JobId string
    NumberOfFatal int
    Number of Fatal results in the advisor report.
    NumberOfFatalBlockers int
    Number of Fatal Blocker results in the advisor report.
    NumberOfInformationalResults int
    Number of Informational results in the advisor report.
    NumberOfWarnings int
    Number of Warning results in the advisor report.
    ReportLocationDetails []GetJobAdvisorReportReportLocationDetail
    Details to access Pre-Migration Advisor report.
    Result string
    Pre-Migration advisor result.
    id String
    The provider-assigned unique ID for this managed resource.
    jobId String
    numberOfFatal Integer
    Number of Fatal results in the advisor report.
    numberOfFatalBlockers Integer
    Number of Fatal Blocker results in the advisor report.
    numberOfInformationalResults Integer
    Number of Informational results in the advisor report.
    numberOfWarnings Integer
    Number of Warning results in the advisor report.
    reportLocationDetails List<GetJobAdvisorReportReportLocationDetail>
    Details to access Pre-Migration Advisor report.
    result String
    Pre-Migration advisor result.
    id string
    The provider-assigned unique ID for this managed resource.
    jobId string
    numberOfFatal number
    Number of Fatal results in the advisor report.
    numberOfFatalBlockers number
    Number of Fatal Blocker results in the advisor report.
    numberOfInformationalResults number
    Number of Informational results in the advisor report.
    numberOfWarnings number
    Number of Warning results in the advisor report.
    reportLocationDetails GetJobAdvisorReportReportLocationDetail[]
    Details to access Pre-Migration Advisor report.
    result string
    Pre-Migration advisor result.
    id str
    The provider-assigned unique ID for this managed resource.
    job_id str
    number_of_fatal int
    Number of Fatal results in the advisor report.
    number_of_fatal_blockers int
    Number of Fatal Blocker results in the advisor report.
    number_of_informational_results int
    Number of Informational results in the advisor report.
    number_of_warnings int
    Number of Warning results in the advisor report.
    report_location_details Sequence[databasemigration.GetJobAdvisorReportReportLocationDetail]
    Details to access Pre-Migration Advisor report.
    result str
    Pre-Migration advisor result.
    id String
    The provider-assigned unique ID for this managed resource.
    jobId String
    numberOfFatal Number
    Number of Fatal results in the advisor report.
    numberOfFatalBlockers Number
    Number of Fatal Blocker results in the advisor report.
    numberOfInformationalResults Number
    Number of Informational results in the advisor report.
    numberOfWarnings Number
    Number of Warning results in the advisor report.
    reportLocationDetails List<Property Map>
    Details to access Pre-Migration Advisor report.
    result String
    Pre-Migration advisor result.

    Supporting Types

    GetJobAdvisorReportReportLocationDetail

    LocationInSource string
    Path in the Source Registered Connection where the Pre-Migration advisor report can be accessed.
    ObjectStorageDetails List<GetJobAdvisorReportReportLocationDetailObjectStorageDetail>
    Details to access Pre-Migration Advisor report in the specified Object Storage bucket, if any.
    LocationInSource string
    Path in the Source Registered Connection where the Pre-Migration advisor report can be accessed.
    ObjectStorageDetails []GetJobAdvisorReportReportLocationDetailObjectStorageDetail
    Details to access Pre-Migration Advisor report in the specified Object Storage bucket, if any.
    locationInSource String
    Path in the Source Registered Connection where the Pre-Migration advisor report can be accessed.
    objectStorageDetails List<GetJobAdvisorReportReportLocationDetailObjectStorageDetail>
    Details to access Pre-Migration Advisor report in the specified Object Storage bucket, if any.
    locationInSource string
    Path in the Source Registered Connection where the Pre-Migration advisor report can be accessed.
    objectStorageDetails GetJobAdvisorReportReportLocationDetailObjectStorageDetail[]
    Details to access Pre-Migration Advisor report in the specified Object Storage bucket, if any.
    location_in_source str
    Path in the Source Registered Connection where the Pre-Migration advisor report can be accessed.
    object_storage_details Sequence[databasemigration.GetJobAdvisorReportReportLocationDetailObjectStorageDetail]
    Details to access Pre-Migration Advisor report in the specified Object Storage bucket, if any.
    locationInSource String
    Path in the Source Registered Connection where the Pre-Migration advisor report can be accessed.
    objectStorageDetails List<Property Map>
    Details to access Pre-Migration Advisor report in the specified Object Storage bucket, if any.

    GetJobAdvisorReportReportLocationDetailObjectStorageDetail

    Bucket string
    Name of the bucket containing the Pre-Migration Advisor report.
    Namespace string
    Object Storage namespace.
    Object string
    Pre-Migration Advisor report object name.
    Bucket string
    Name of the bucket containing the Pre-Migration Advisor report.
    Namespace string
    Object Storage namespace.
    Object string
    Pre-Migration Advisor report object name.
    bucket String
    Name of the bucket containing the Pre-Migration Advisor report.
    namespace String
    Object Storage namespace.
    object String
    Pre-Migration Advisor report object name.
    bucket string
    Name of the bucket containing the Pre-Migration Advisor report.
    namespace string
    Object Storage namespace.
    object string
    Pre-Migration Advisor report object name.
    bucket str
    Name of the bucket containing the Pre-Migration Advisor report.
    namespace str
    Object Storage namespace.
    object str
    Pre-Migration Advisor report object name.
    bucket String
    Name of the bucket containing the Pre-Migration Advisor report.
    namespace String
    Object Storage namespace.
    object String
    Pre-Migration Advisor report object name.

    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.32.0 published on Thursday, Apr 18, 2024 by Pulumi