This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getProtectionContainer.go
46 lines (41 loc) · 1.73 KB
/
getProtectionContainer.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
// *** 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 v20161201
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupProtectionContainer(ctx *pulumi.Context, args *LookupProtectionContainerArgs, opts ...pulumi.InvokeOption) (*LookupProtectionContainerResult, error) {
var rv LookupProtectionContainerResult
err := ctx.Invoke("azure-nextgen:recoveryservices/v20161201:getProtectionContainer", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupProtectionContainerArgs struct {
// Name of the container whose details need to be fetched.
ContainerName string `pulumi:"containerName"`
// Name of the fabric where the container belongs.
FabricName string `pulumi:"fabricName"`
// The name of the resource group where the recovery services vault is present.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The name of the recovery services vault.
VaultName string `pulumi:"vaultName"`
}
// Base class for container with backup items. Containers with specific workloads are derived from this class.
type LookupProtectionContainerResult struct {
// Optional ETag.
ETag *string `pulumi:"eTag"`
// Resource Id represents the complete path to the resource.
Id string `pulumi:"id"`
// Resource location.
Location *string `pulumi:"location"`
// Resource name associated with the resource.
Name string `pulumi:"name"`
// ProtectionContainerResource properties
Properties interface{} `pulumi:"properties"`
// Resource tags.
Tags map[string]string `pulumi:"tags"`
// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
Type string `pulumi:"type"`
}