This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getReplication.go
48 lines (43 loc) · 2 KB
/
getReplication.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20191201preview
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupReplication(ctx *pulumi.Context, args *LookupReplicationArgs, opts ...pulumi.InvokeOption) (*LookupReplicationResult, error) {
var rv LookupReplicationResult
err := ctx.Invoke("azure-nextgen:containerregistry/v20191201preview:getReplication", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupReplicationArgs struct {
// The name of the container registry.
RegistryName string `pulumi:"registryName"`
// The name of the replication.
ReplicationName string `pulumi:"replicationName"`
// The name of the resource group to which the container registry belongs.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// An object that represents a replication for a container registry.
type LookupReplicationResult struct {
// The resource ID.
Id string `pulumi:"id"`
// The location of the resource. This cannot be changed after the resource is created.
Location string `pulumi:"location"`
// The name of the resource.
Name string `pulumi:"name"`
// The provisioning state of the replication at the time the operation was called.
ProvisioningState string `pulumi:"provisioningState"`
// Specifies whether the replication's regional endpoint is enabled. Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue to be synced with other replications.
RegionEndpointEnabled *bool `pulumi:"regionEndpointEnabled"`
// The status of the replication at the time the operation was called.
Status StatusResponse `pulumi:"status"`
// Metadata pertaining to creation and last modification of the resource.
SystemData SystemDataResponse `pulumi:"systemData"`
// The tags of the resource.
Tags map[string]string `pulumi:"tags"`
// The type of the resource.
Type string `pulumi:"type"`
}