This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
getFileShare.go
66 lines (61 loc) · 3.56 KB
/
getFileShare.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// *** 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 v20190601
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupFileShare(ctx *pulumi.Context, args *LookupFileShareArgs, opts ...pulumi.InvokeOption) (*LookupFileShareResult, error) {
var rv LookupFileShareResult
err := ctx.Invoke("azure-nextgen:storage/v20190601:getFileShare", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupFileShareArgs struct {
// The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
AccountName string `pulumi:"accountName"`
// Optional, used to expand the properties within share's properties.
Expand *string `pulumi:"expand"`
// The name of the resource group within the user's subscription. The name is case insensitive.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
ShareName string `pulumi:"shareName"`
}
// Properties of the file share, including Id, resource name, resource type, Etag.
type LookupFileShareResult struct {
// Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium.
AccessTier *string `pulumi:"accessTier"`
// Indicates the last modification time for share access tier.
AccessTierChangeTime string `pulumi:"accessTierChangeTime"`
// Indicates if there is a pending transition for access tier.
AccessTierStatus string `pulumi:"accessTierStatus"`
// Indicates whether the share was deleted.
Deleted bool `pulumi:"deleted"`
// The deleted time if the share was deleted.
DeletedTime string `pulumi:"deletedTime"`
// The authentication protocol that is used for the file share. Can only be specified when creating a share.
EnabledProtocols *string `pulumi:"enabledProtocols"`
// Resource Etag.
Etag string `pulumi:"etag"`
// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Id string `pulumi:"id"`
// Returns the date and time the share was last modified.
LastModifiedTime string `pulumi:"lastModifiedTime"`
// A name-value pair to associate with the share as metadata.
Metadata map[string]string `pulumi:"metadata"`
// The name of the resource
Name string `pulumi:"name"`
// Remaining retention days for share that was soft deleted.
RemainingRetentionDays int `pulumi:"remainingRetentionDays"`
// The property is for NFS share only. The default is NoRootSquash.
RootSquash *string `pulumi:"rootSquash"`
// The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400.
ShareQuota *int `pulumi:"shareQuota"`
// The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files.
ShareUsageBytes float64 `pulumi:"shareUsageBytes"`
// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type string `pulumi:"type"`
// The version of the share.
Version string `pulumi:"version"`
}