This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getDiskAccess.go
44 lines (39 loc) · 1.66 KB
/
getDiskAccess.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
// *** 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 v20200630
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupDiskAccess(ctx *pulumi.Context, args *LookupDiskAccessArgs, opts ...pulumi.InvokeOption) (*LookupDiskAccessResult, error) {
var rv LookupDiskAccessResult
err := ctx.Invoke("azure-nextgen:compute/v20200630:getDiskAccess", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupDiskAccessArgs struct {
// The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
DiskAccessName string `pulumi:"diskAccessName"`
// The name of the resource group.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// disk access resource.
type LookupDiskAccessResult struct {
// Resource Id
Id string `pulumi:"id"`
// Resource location
Location string `pulumi:"location"`
// Resource name
Name string `pulumi:"name"`
// A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported.
PrivateEndpointConnections []PrivateEndpointConnectionResponse `pulumi:"privateEndpointConnections"`
// The disk access resource provisioning state.
ProvisioningState string `pulumi:"provisioningState"`
// Resource tags
Tags map[string]string `pulumi:"tags"`
// The time when the disk access was created.
TimeCreated string `pulumi:"timeCreated"`
// Resource type
Type string `pulumi:"type"`
}