1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DevOps
  5. getRepositoryMirrorRecord
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.DevOps.getRepositoryMirrorRecord

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides details about a specific Repository Mirror Record resource in Oracle Cloud Infrastructure Devops service.

    Returns either current mirror record or last successful mirror record for a specific mirror repository.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testRepositoryMirrorRecord = oci.DevOps.getRepositoryMirrorRecord({
        mirrorRecordType: repositoryMirrorRecordMirrorRecordType,
        repositoryId: testRepository.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_repository_mirror_record = oci.DevOps.get_repository_mirror_record(mirror_record_type=repository_mirror_record_mirror_record_type,
        repository_id=test_repository["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/DevOps"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DevOps.GetRepositoryMirrorRecord(ctx, &devops.GetRepositoryMirrorRecordArgs{
    			MirrorRecordType: repositoryMirrorRecordMirrorRecordType,
    			RepositoryId:     testRepository.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 testRepositoryMirrorRecord = Oci.DevOps.GetRepositoryMirrorRecord.Invoke(new()
        {
            MirrorRecordType = repositoryMirrorRecordMirrorRecordType,
            RepositoryId = testRepository.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DevOps.DevOpsFunctions;
    import com.pulumi.oci.DevOps.inputs.GetRepositoryMirrorRecordArgs;
    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 testRepositoryMirrorRecord = DevOpsFunctions.getRepositoryMirrorRecord(GetRepositoryMirrorRecordArgs.builder()
                .mirrorRecordType(repositoryMirrorRecordMirrorRecordType)
                .repositoryId(testRepository.id())
                .build());
    
        }
    }
    
    variables:
      testRepositoryMirrorRecord:
        fn::invoke:
          Function: oci:DevOps:getRepositoryMirrorRecord
          Arguments:
            mirrorRecordType: ${repositoryMirrorRecordMirrorRecordType}
            repositoryId: ${testRepository.id}
    

    Using getRepositoryMirrorRecord

    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 getRepositoryMirrorRecord(args: GetRepositoryMirrorRecordArgs, opts?: InvokeOptions): Promise<GetRepositoryMirrorRecordResult>
    function getRepositoryMirrorRecordOutput(args: GetRepositoryMirrorRecordOutputArgs, opts?: InvokeOptions): Output<GetRepositoryMirrorRecordResult>
    def get_repository_mirror_record(mirror_record_type: Optional[str] = None,
                                     repository_id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetRepositoryMirrorRecordResult
    def get_repository_mirror_record_output(mirror_record_type: Optional[pulumi.Input[str]] = None,
                                     repository_id: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetRepositoryMirrorRecordResult]
    func GetRepositoryMirrorRecord(ctx *Context, args *GetRepositoryMirrorRecordArgs, opts ...InvokeOption) (*GetRepositoryMirrorRecordResult, error)
    func GetRepositoryMirrorRecordOutput(ctx *Context, args *GetRepositoryMirrorRecordOutputArgs, opts ...InvokeOption) GetRepositoryMirrorRecordResultOutput

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

    public static class GetRepositoryMirrorRecord 
    {
        public static Task<GetRepositoryMirrorRecordResult> InvokeAsync(GetRepositoryMirrorRecordArgs args, InvokeOptions? opts = null)
        public static Output<GetRepositoryMirrorRecordResult> Invoke(GetRepositoryMirrorRecordInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRepositoryMirrorRecordResult> getRepositoryMirrorRecord(GetRepositoryMirrorRecordArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DevOps/getRepositoryMirrorRecord:getRepositoryMirrorRecord
      arguments:
        # arguments dictionary

    The following arguments are supported:

    MirrorRecordType string
    The field of mirror record type. Only one mirror record type can be provided: current - The current mirror record. lastSuccessful - The last successful mirror record.
    RepositoryId string
    Unique repository identifier.
    MirrorRecordType string
    The field of mirror record type. Only one mirror record type can be provided: current - The current mirror record. lastSuccessful - The last successful mirror record.
    RepositoryId string
    Unique repository identifier.
    mirrorRecordType String
    The field of mirror record type. Only one mirror record type can be provided: current - The current mirror record. lastSuccessful - The last successful mirror record.
    repositoryId String
    Unique repository identifier.
    mirrorRecordType string
    The field of mirror record type. Only one mirror record type can be provided: current - The current mirror record. lastSuccessful - The last successful mirror record.
    repositoryId string
    Unique repository identifier.
    mirror_record_type str
    The field of mirror record type. Only one mirror record type can be provided: current - The current mirror record. lastSuccessful - The last successful mirror record.
    repository_id str
    Unique repository identifier.
    mirrorRecordType String
    The field of mirror record type. Only one mirror record type can be provided: current - The current mirror record. lastSuccessful - The last successful mirror record.
    repositoryId String
    Unique repository identifier.

    getRepositoryMirrorRecord Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    MirrorRecordType string
    MirrorStatus string
    Mirror status of current mirror entry. QUEUED - Mirroring Queued RUNNING - Mirroring is Running PASSED - Mirroring Passed FAILED - Mirroring Failed
    RepositoryId string
    TimeEnded string
    The time taken to complete a mirror operation. Value is null if not completed.
    TimeEnqueued string
    The time to enqueue a mirror operation.
    TimeStarted string
    The time to start a mirror operation.
    WorkRequestId string
    Workrequest ID to track current mirror operation.
    Id string
    The provider-assigned unique ID for this managed resource.
    MirrorRecordType string
    MirrorStatus string
    Mirror status of current mirror entry. QUEUED - Mirroring Queued RUNNING - Mirroring is Running PASSED - Mirroring Passed FAILED - Mirroring Failed
    RepositoryId string
    TimeEnded string
    The time taken to complete a mirror operation. Value is null if not completed.
    TimeEnqueued string
    The time to enqueue a mirror operation.
    TimeStarted string
    The time to start a mirror operation.
    WorkRequestId string
    Workrequest ID to track current mirror operation.
    id String
    The provider-assigned unique ID for this managed resource.
    mirrorRecordType String
    mirrorStatus String
    Mirror status of current mirror entry. QUEUED - Mirroring Queued RUNNING - Mirroring is Running PASSED - Mirroring Passed FAILED - Mirroring Failed
    repositoryId String
    timeEnded String
    The time taken to complete a mirror operation. Value is null if not completed.
    timeEnqueued String
    The time to enqueue a mirror operation.
    timeStarted String
    The time to start a mirror operation.
    workRequestId String
    Workrequest ID to track current mirror operation.
    id string
    The provider-assigned unique ID for this managed resource.
    mirrorRecordType string
    mirrorStatus string
    Mirror status of current mirror entry. QUEUED - Mirroring Queued RUNNING - Mirroring is Running PASSED - Mirroring Passed FAILED - Mirroring Failed
    repositoryId string
    timeEnded string
    The time taken to complete a mirror operation. Value is null if not completed.
    timeEnqueued string
    The time to enqueue a mirror operation.
    timeStarted string
    The time to start a mirror operation.
    workRequestId string
    Workrequest ID to track current mirror operation.
    id str
    The provider-assigned unique ID for this managed resource.
    mirror_record_type str
    mirror_status str
    Mirror status of current mirror entry. QUEUED - Mirroring Queued RUNNING - Mirroring is Running PASSED - Mirroring Passed FAILED - Mirroring Failed
    repository_id str
    time_ended str
    The time taken to complete a mirror operation. Value is null if not completed.
    time_enqueued str
    The time to enqueue a mirror operation.
    time_started str
    The time to start a mirror operation.
    work_request_id str
    Workrequest ID to track current mirror operation.
    id String
    The provider-assigned unique ID for this managed resource.
    mirrorRecordType String
    mirrorStatus String
    Mirror status of current mirror entry. QUEUED - Mirroring Queued RUNNING - Mirroring is Running PASSED - Mirroring Passed FAILED - Mirroring Failed
    repositoryId String
    timeEnded String
    The time taken to complete a mirror operation. Value is null if not completed.
    timeEnqueued String
    The time to enqueue a mirror operation.
    timeStarted String
    The time to start a mirror operation.
    workRequestId String
    Workrequest ID to track current mirror operation.

    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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi