Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.DevOps.getRepositoryMirrorRecord
Explore with Pulumi AI
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:
- Mirror
Record stringType - 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 string - Unique repository identifier.
- Mirror
Record stringType - 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 string - Unique repository identifier.
- mirror
Record StringType - 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 String - Unique repository identifier.
- mirror
Record stringType - 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 string - Unique repository identifier.
- mirror_
record_ strtype - 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.
- mirror
Record StringType - 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 String - Unique repository identifier.
getRepositoryMirrorRecord Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Mirror
Record stringType - Mirror
Status string - Mirror status of current mirror entry. QUEUED - Mirroring Queued RUNNING - Mirroring is Running PASSED - Mirroring Passed FAILED - Mirroring Failed
- Repository
Id string - Time
Ended string - The time taken to complete a mirror operation. Value is null if not completed.
- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- Mirror
Record stringType - Mirror
Status string - Mirror status of current mirror entry. QUEUED - Mirroring Queued RUNNING - Mirroring is Running PASSED - Mirroring Passed FAILED - Mirroring Failed
- Repository
Id string - Time
Ended string - The time taken to complete a mirror operation. Value is null if not completed.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- mirror
Record StringType - mirror
Status String - Mirror status of current mirror entry. QUEUED - Mirroring Queued RUNNING - Mirroring is Running PASSED - Mirroring Passed FAILED - Mirroring Failed
- repository
Id String - time
Ended String - The time taken to complete a mirror operation. Value is null if not completed.
- 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.
- id string
- The provider-assigned unique ID for this managed resource.
- mirror
Record stringType - mirror
Status string - Mirror status of current mirror entry. QUEUED - Mirroring Queued RUNNING - Mirroring is Running PASSED - Mirroring Passed FAILED - Mirroring Failed
- repository
Id string - time
Ended string - The time taken to complete a mirror operation. Value is null if not completed.
- 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.
- id str
- The provider-assigned unique ID for this managed resource.
- mirror_
record_ strtype - 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_ strid - Workrequest ID to track current mirror operation.
- id String
- The provider-assigned unique ID for this managed resource.
- mirror
Record StringType - mirror
Status String - Mirror status of current mirror entry. QUEUED - Mirroring Queued RUNNING - Mirroring is Running PASSED - Mirroring Passed FAILED - Mirroring Failed
- repository
Id String - time
Ended String - The time taken to complete a mirror operation. Value is null if not completed.
- 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.