This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi
azure-native.storage.getFileShare
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi
Gets properties of a specified share. Azure REST API version: 2022-09-01.
Other available API versions: 2023-01-01, 2023-04-01, 2023-05-01.
Using getFileShare
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 getFileShare(args: GetFileShareArgs, opts?: InvokeOptions): Promise<GetFileShareResult>
function getFileShareOutput(args: GetFileShareOutputArgs, opts?: InvokeOptions): Output<GetFileShareResult>
def get_file_share(account_name: Optional[str] = None,
expand: Optional[str] = None,
resource_group_name: Optional[str] = None,
share_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFileShareResult
def get_file_share_output(account_name: Optional[pulumi.Input[str]] = None,
expand: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
share_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFileShareResult]
func LookupFileShare(ctx *Context, args *LookupFileShareArgs, opts ...InvokeOption) (*LookupFileShareResult, error)
func LookupFileShareOutput(ctx *Context, args *LookupFileShareOutputArgs, opts ...InvokeOption) LookupFileShareResultOutput
> Note: This function is named LookupFileShare
in the Go SDK.
public static class GetFileShare
{
public static Task<GetFileShareResult> InvokeAsync(GetFileShareArgs args, InvokeOptions? opts = null)
public static Output<GetFileShareResult> Invoke(GetFileShareInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFileShareResult> getFileShare(GetFileShareArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:storage:getFileShare
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Name string - 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.
- Resource
Group stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- string
- 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.
- Expand string
- Optional, used to expand the properties within share's properties. Valid values are: stats. Should be passed as a string with delimiter ','.
- Account
Name string - 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.
- Resource
Group stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- string
- 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.
- Expand string
- Optional, used to expand the properties within share's properties. Valid values are: stats. Should be passed as a string with delimiter ','.
- account
Name String - 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.
- resource
Group StringName - The name of the resource group within the user's subscription. The name is case insensitive.
- String
- 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.
- expand String
- Optional, used to expand the properties within share's properties. Valid values are: stats. Should be passed as a string with delimiter ','.
- account
Name string - 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.
- resource
Group stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- string
- 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.
- expand string
- Optional, used to expand the properties within share's properties. Valid values are: stats. Should be passed as a string with delimiter ','.
- account_
name str - 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.
- resource_
group_ strname - The name of the resource group within the user's subscription. The name is case insensitive.
- str
- 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.
- expand str
- Optional, used to expand the properties within share's properties. Valid values are: stats. Should be passed as a string with delimiter ','.
- account
Name String - 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.
- resource
Group StringName - The name of the resource group within the user's subscription. The name is case insensitive.
- String
- 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.
- expand String
- Optional, used to expand the properties within share's properties. Valid values are: stats. Should be passed as a string with delimiter ','.
getFileShare Result
The following output properties are available:
- Access
Tier stringChange Time - Indicates the last modification time for share access tier.
- Access
Tier stringStatus - Indicates if there is a pending transition for access tier.
- Deleted bool
- Indicates whether the share was deleted.
- Deleted
Time string - The deleted time if the share was deleted.
- Etag string
- Resource Etag.
- Id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- Last
Modified stringTime - Returns the date and time the share was last modified.
- Lease
Duration string - Specifies whether the lease on a share is of infinite or fixed duration, only when the share is leased.
- Lease
State string - Lease state of the share.
- Lease
Status string - The lease status of the share.
- Name string
- The name of the resource
- Remaining
Retention intDays - Remaining retention days for share that was soft deleted.
- double
- The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files.
- Snapshot
Time string - Creation time of share snapshot returned in the response of list shares with expand param "snapshots".
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Version string
- The version of the share.
- Access
Tier string - Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium.
- Enabled
Protocols string - The authentication protocol that is used for the file share. Can only be specified when creating a share.
- Metadata Dictionary<string, string>
- A name-value pair to associate with the share as metadata.
- Root
Squash string - The property is for NFS share only. The default is NoRootSquash.
- int
- 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.
- Signed
Identifiers List<Pulumi.Azure Native. Storage. Outputs. Signed Identifier Response> - List of stored access policies specified on the share.
- Access
Tier stringChange Time - Indicates the last modification time for share access tier.
- Access
Tier stringStatus - Indicates if there is a pending transition for access tier.
- Deleted bool
- Indicates whether the share was deleted.
- Deleted
Time string - The deleted time if the share was deleted.
- Etag string
- Resource Etag.
- Id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- Last
Modified stringTime - Returns the date and time the share was last modified.
- Lease
Duration string - Specifies whether the lease on a share is of infinite or fixed duration, only when the share is leased.
- Lease
State string - Lease state of the share.
- Lease
Status string - The lease status of the share.
- Name string
- The name of the resource
- Remaining
Retention intDays - Remaining retention days for share that was soft deleted.
- float64
- The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files.
- Snapshot
Time string - Creation time of share snapshot returned in the response of list shares with expand param "snapshots".
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Version string
- The version of the share.
- Access
Tier string - Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium.
- Enabled
Protocols string - The authentication protocol that is used for the file share. Can only be specified when creating a share.
- Metadata map[string]string
- A name-value pair to associate with the share as metadata.
- Root
Squash string - The property is for NFS share only. The default is NoRootSquash.
- int
- 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.
- Signed
Identifiers []SignedIdentifier Response - List of stored access policies specified on the share.
- access
Tier StringChange Time - Indicates the last modification time for share access tier.
- access
Tier StringStatus - Indicates if there is a pending transition for access tier.
- deleted Boolean
- Indicates whether the share was deleted.
- deleted
Time String - The deleted time if the share was deleted.
- etag String
- Resource Etag.
- id String
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- last
Modified StringTime - Returns the date and time the share was last modified.
- lease
Duration String - Specifies whether the lease on a share is of infinite or fixed duration, only when the share is leased.
- lease
State String - Lease state of the share.
- lease
Status String - The lease status of the share.
- name String
- The name of the resource
- remaining
Retention IntegerDays - Remaining retention days for share that was soft deleted.
- Double
- The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files.
- snapshot
Time String - Creation time of share snapshot returned in the response of list shares with expand param "snapshots".
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- version String
- The version of the share.
- access
Tier String - Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium.
- enabled
Protocols String - The authentication protocol that is used for the file share. Can only be specified when creating a share.
- metadata Map<String,String>
- A name-value pair to associate with the share as metadata.
- root
Squash String - The property is for NFS share only. The default is NoRootSquash.
- Integer
- 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.
- signed
Identifiers List<SignedIdentifier Response> - List of stored access policies specified on the share.
- access
Tier stringChange Time - Indicates the last modification time for share access tier.
- access
Tier stringStatus - Indicates if there is a pending transition for access tier.
- deleted boolean
- Indicates whether the share was deleted.
- deleted
Time string - The deleted time if the share was deleted.
- etag string
- Resource Etag.
- id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- last
Modified stringTime - Returns the date and time the share was last modified.
- lease
Duration string - Specifies whether the lease on a share is of infinite or fixed duration, only when the share is leased.
- lease
State string - Lease state of the share.
- lease
Status string - The lease status of the share.
- name string
- The name of the resource
- remaining
Retention numberDays - Remaining retention days for share that was soft deleted.
- number
- The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files.
- snapshot
Time string - Creation time of share snapshot returned in the response of list shares with expand param "snapshots".
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- version string
- The version of the share.
- access
Tier string - Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium.
- enabled
Protocols string - The authentication protocol that is used for the file share. Can only be specified when creating a share.
- metadata {[key: string]: string}
- A name-value pair to associate with the share as metadata.
- root
Squash string - The property is for NFS share only. The default is NoRootSquash.
- number
- 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.
- signed
Identifiers SignedIdentifier Response[] - List of stored access policies specified on the share.
- access_
tier_ strchange_ time - Indicates the last modification time for share access tier.
- access_
tier_ strstatus - Indicates if there is a pending transition for access tier.
- deleted bool
- Indicates whether the share was deleted.
- deleted_
time str - The deleted time if the share was deleted.
- etag str
- Resource Etag.
- id str
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- last_
modified_ strtime - Returns the date and time the share was last modified.
- lease_
duration str - Specifies whether the lease on a share is of infinite or fixed duration, only when the share is leased.
- lease_
state str - Lease state of the share.
- lease_
status str - The lease status of the share.
- name str
- The name of the resource
- remaining_
retention_ intdays - Remaining retention days for share that was soft deleted.
- float
- The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files.
- snapshot_
time str - Creation time of share snapshot returned in the response of list shares with expand param "snapshots".
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- version str
- The version of the share.
- access_
tier str - Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium.
- enabled_
protocols str - The authentication protocol that is used for the file share. Can only be specified when creating a share.
- metadata Mapping[str, str]
- A name-value pair to associate with the share as metadata.
- root_
squash str - The property is for NFS share only. The default is NoRootSquash.
- int
- 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.
- signed_
identifiers Sequence[SignedIdentifier Response] - List of stored access policies specified on the share.
- access
Tier StringChange Time - Indicates the last modification time for share access tier.
- access
Tier StringStatus - Indicates if there is a pending transition for access tier.
- deleted Boolean
- Indicates whether the share was deleted.
- deleted
Time String - The deleted time if the share was deleted.
- etag String
- Resource Etag.
- id String
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- last
Modified StringTime - Returns the date and time the share was last modified.
- lease
Duration String - Specifies whether the lease on a share is of infinite or fixed duration, only when the share is leased.
- lease
State String - Lease state of the share.
- lease
Status String - The lease status of the share.
- name String
- The name of the resource
- remaining
Retention NumberDays - Remaining retention days for share that was soft deleted.
- Number
- The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files.
- snapshot
Time String - Creation time of share snapshot returned in the response of list shares with expand param "snapshots".
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- version String
- The version of the share.
- access
Tier String - Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium.
- enabled
Protocols String - The authentication protocol that is used for the file share. Can only be specified when creating a share.
- metadata Map<String>
- A name-value pair to associate with the share as metadata.
- root
Squash String - The property is for NFS share only. The default is NoRootSquash.
- Number
- 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.
- signed
Identifiers List<Property Map> - List of stored access policies specified on the share.
Supporting Types
AccessPolicyResponse
- Expiry
Time string - Expiry time of the access policy
- Permission string
- List of abbreviated permissions.
- Start
Time string - Start time of the access policy
- Expiry
Time string - Expiry time of the access policy
- Permission string
- List of abbreviated permissions.
- Start
Time string - Start time of the access policy
- expiry
Time String - Expiry time of the access policy
- permission String
- List of abbreviated permissions.
- start
Time String - Start time of the access policy
- expiry
Time string - Expiry time of the access policy
- permission string
- List of abbreviated permissions.
- start
Time string - Start time of the access policy
- expiry_
time str - Expiry time of the access policy
- permission str
- List of abbreviated permissions.
- start_
time str - Start time of the access policy
- expiry
Time String - Expiry time of the access policy
- permission String
- List of abbreviated permissions.
- start
Time String - Start time of the access policy
SignedIdentifierResponse
- Access
Policy Pulumi.Azure Native. Storage. Inputs. Access Policy Response - Access policy
- Id string
- An unique identifier of the stored access policy.
- Access
Policy AccessPolicy Response - Access policy
- Id string
- An unique identifier of the stored access policy.
- access
Policy AccessPolicy Response - Access policy
- id String
- An unique identifier of the stored access policy.
- access
Policy AccessPolicy Response - Access policy
- id string
- An unique identifier of the stored access policy.
- access_
policy AccessPolicy Response - Access policy
- id str
- An unique identifier of the stored access policy.
- access
Policy Property Map - Access policy
- id String
- An unique identifier of the stored access policy.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi