1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DevOps
  5. getRepositoryMirrorRecords
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.DevOps.getRepositoryMirrorRecords

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides the list of Repository Mirror Records in Oracle Cloud Infrastructure Devops service.

    Returns a list of mirror entry in history within 30 days.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testRepositoryMirrorRecords = oci.DevOps.getRepositoryMirrorRecords({
        repositoryId: testRepository.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_repository_mirror_records = oci.DevOps.get_repository_mirror_records(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.GetRepositoryMirrorRecords(ctx, &devops.GetRepositoryMirrorRecordsArgs{
    			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 testRepositoryMirrorRecords = Oci.DevOps.GetRepositoryMirrorRecords.Invoke(new()
        {
            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.GetRepositoryMirrorRecordsArgs;
    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 testRepositoryMirrorRecords = DevOpsFunctions.getRepositoryMirrorRecords(GetRepositoryMirrorRecordsArgs.builder()
                .repositoryId(testRepository.id())
                .build());
    
        }
    }
    
    variables:
      testRepositoryMirrorRecords:
        fn::invoke:
          Function: oci:DevOps:getRepositoryMirrorRecords
          Arguments:
            repositoryId: ${testRepository.id}
    

    Using getRepositoryMirrorRecords

    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 getRepositoryMirrorRecords(args: GetRepositoryMirrorRecordsArgs, opts?: InvokeOptions): Promise<GetRepositoryMirrorRecordsResult>
    function getRepositoryMirrorRecordsOutput(args: GetRepositoryMirrorRecordsOutputArgs, opts?: InvokeOptions): Output<GetRepositoryMirrorRecordsResult>
    def get_repository_mirror_records(filters: Optional[Sequence[_devops.GetRepositoryMirrorRecordsFilter]] = None,
                                      repository_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetRepositoryMirrorRecordsResult
    def get_repository_mirror_records_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_devops.GetRepositoryMirrorRecordsFilterArgs]]]] = None,
                                      repository_id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetRepositoryMirrorRecordsResult]
    func GetRepositoryMirrorRecords(ctx *Context, args *GetRepositoryMirrorRecordsArgs, opts ...InvokeOption) (*GetRepositoryMirrorRecordsResult, error)
    func GetRepositoryMirrorRecordsOutput(ctx *Context, args *GetRepositoryMirrorRecordsOutputArgs, opts ...InvokeOption) GetRepositoryMirrorRecordsResultOutput

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

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

    The following arguments are supported:

    RepositoryId string
    Unique repository identifier.
    Filters []GetRepositoryMirrorRecordsFilter
    repositoryId string
    Unique repository identifier.
    filters GetRepositoryMirrorRecordsFilter[]
    repositoryId String
    Unique repository identifier.
    filters List<Property Map>

    getRepositoryMirrorRecords Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    RepositoryId string
    RepositoryMirrorRecordCollections List<GetRepositoryMirrorRecordsRepositoryMirrorRecordCollection>
    The list of repository_mirror_record_collection.
    Filters List<GetRepositoryMirrorRecordsFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    RepositoryId string
    RepositoryMirrorRecordCollections []GetRepositoryMirrorRecordsRepositoryMirrorRecordCollection
    The list of repository_mirror_record_collection.
    Filters []GetRepositoryMirrorRecordsFilter
    id String
    The provider-assigned unique ID for this managed resource.
    repositoryId String
    repositoryMirrorRecordCollections List<GetRepositoryMirrorRecordsRepositoryMirrorRecordCollection>
    The list of repository_mirror_record_collection.
    filters List<GetRepositoryMirrorRecordsFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    repositoryId string
    repositoryMirrorRecordCollections GetRepositoryMirrorRecordsRepositoryMirrorRecordCollection[]
    The list of repository_mirror_record_collection.
    filters GetRepositoryMirrorRecordsFilter[]
    id String
    The provider-assigned unique ID for this managed resource.
    repositoryId String
    repositoryMirrorRecordCollections List<Property Map>
    The list of repository_mirror_record_collection.
    filters List<Property Map>

    Supporting Types

    GetRepositoryMirrorRecordsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetRepositoryMirrorRecordsRepositoryMirrorRecordCollection

    GetRepositoryMirrorRecordsRepositoryMirrorRecordCollectionItem

    FreeformTags Dictionary<string, string>
    MirrorStatus string
    Mirror status of current mirror entry. QUEUED - Mirroring Queued RUNNING - Mirroring is Running PASSED - Mirroring Passed FAILED - Mirroring Failed
    TimeCompleted string
    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.
    FreeformTags map[string]string
    MirrorStatus string
    Mirror status of current mirror entry. QUEUED - Mirroring Queued RUNNING - Mirroring is Running PASSED - Mirroring Passed FAILED - Mirroring Failed
    TimeCompleted string
    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.
    freeformTags Map<String,String>
    mirrorStatus String
    Mirror status of current mirror entry. QUEUED - Mirroring Queued RUNNING - Mirroring is Running PASSED - Mirroring Passed FAILED - Mirroring Failed
    timeCompleted String
    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.
    freeformTags {[key: string]: string}
    mirrorStatus string
    Mirror status of current mirror entry. QUEUED - Mirroring Queued RUNNING - Mirroring is Running PASSED - Mirroring Passed FAILED - Mirroring Failed
    timeCompleted string
    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.
    freeform_tags Mapping[str, str]
    mirror_status str
    Mirror status of current mirror entry. QUEUED - Mirroring Queued RUNNING - Mirroring is Running PASSED - Mirroring Passed FAILED - Mirroring Failed
    time_completed str
    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.
    freeformTags Map<String>
    mirrorStatus String
    Mirror status of current mirror entry. QUEUED - Mirroring Queued RUNNING - Mirroring is Running PASSED - Mirroring Passed FAILED - Mirroring Failed
    timeCompleted String
    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.11.0 published on Thursday, Sep 19, 2024 by Pulumi