Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.DevOps.getRepositoryMirrorRecords
Explore with Pulumi AI
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:
- Repository
Id string - Unique repository identifier.
- Filters
List<Get
Repository Mirror Records Filter>
- Repository
Id string - Unique repository identifier.
- Filters
[]Get
Repository Mirror Records Filter
- repository
Id String - Unique repository identifier.
- filters
List<Get
Repository Mirror Records Filter>
- repository
Id string - Unique repository identifier.
- filters
Get
Repository Mirror Records Filter[]
- repository_
id str - Unique repository identifier.
- filters
Sequence[devops.
Get Repository Mirror Records Filter]
- repository
Id 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.
- Repository
Id string - Repository
Mirror List<GetRecord Collections Repository Mirror Records Repository Mirror Record Collection> - The list of repository_mirror_record_collection.
- Filters
List<Get
Repository Mirror Records Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- Repository
Id string - Repository
Mirror []GetRecord Collections Repository Mirror Records Repository Mirror Record Collection - The list of repository_mirror_record_collection.
- Filters
[]Get
Repository Mirror Records Filter
- id String
- The provider-assigned unique ID for this managed resource.
- repository
Id String - repository
Mirror List<GetRecord Collections Repository Mirror Records Repository Mirror Record Collection> - The list of repository_mirror_record_collection.
- filters
List<Get
Repository Mirror Records Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- repository
Id string - repository
Mirror GetRecord Collections Repository Mirror Records Repository Mirror Record Collection[] - The list of repository_mirror_record_collection.
- filters
Get
Repository Mirror Records Filter[]
- id str
- The provider-assigned unique ID for this managed resource.
- repository_
id str - repository_
mirror_ Sequence[devops.record_ collections Get Repository Mirror Records Repository Mirror Record Collection] - The list of repository_mirror_record_collection.
- filters
Sequence[devops.
Get Repository Mirror Records Filter]
- id String
- The provider-assigned unique ID for this managed resource.
- repository
Id String - repository
Mirror List<Property Map>Record Collections - The list of repository_mirror_record_collection.
- filters List<Property Map>
Supporting Types
GetRepositoryMirrorRecordsFilter
GetRepositoryMirrorRecordsRepositoryMirrorRecordCollection
GetRepositoryMirrorRecordsRepositoryMirrorRecordCollectionItem
- Dictionary<string, string>
- Mirror
Status string - Mirror status of current mirror entry. QUEUED - Mirroring Queued RUNNING - Mirroring is Running PASSED - Mirroring Passed FAILED - Mirroring Failed
- Time
Completed string - Time
Enqueued string - The time to enqueue a mirror operation.
- Time
Started string - The time to start a mirror operation.
- Work
Request stringId - Workrequest ID to track current mirror operation.
- map[string]string
- Mirror
Status string - Mirror status of current mirror entry. QUEUED - Mirroring Queued RUNNING - Mirroring is Running PASSED - Mirroring Passed FAILED - Mirroring Failed
- Time
Completed string - Time
Enqueued string - The time to enqueue a mirror operation.
- Time
Started string - The time to start a mirror operation.
- Work
Request stringId - Workrequest ID to track current mirror operation.
- Map<String,String>
- mirror
Status String - Mirror status of current mirror entry. QUEUED - Mirroring Queued RUNNING - Mirroring is Running PASSED - Mirroring Passed FAILED - Mirroring Failed
- time
Completed String - time
Enqueued String - The time to enqueue a mirror operation.
- time
Started String - The time to start a mirror operation.
- work
Request StringId - Workrequest ID to track current mirror operation.
- {[key: string]: string}
- mirror
Status string - Mirror status of current mirror entry. QUEUED - Mirroring Queued RUNNING - Mirroring is Running PASSED - Mirroring Passed FAILED - Mirroring Failed
- time
Completed string - time
Enqueued string - The time to enqueue a mirror operation.
- time
Started string - The time to start a mirror operation.
- work
Request stringId - Workrequest ID to track current mirror operation.
- 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_ strid - Workrequest ID to track current mirror operation.
- Map<String>
- mirror
Status String - Mirror status of current mirror entry. QUEUED - Mirroring Queued RUNNING - Mirroring is Running PASSED - Mirroring Passed FAILED - Mirroring Failed
- time
Completed String - time
Enqueued String - The time to enqueue a mirror operation.
- time
Started String - The time to start a mirror operation.
- work
Request StringId - 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.