Package version:

Interface FileServices

Interface representing a FileServices.

interface FileServices {
    getServiceProperties(resourceGroupName: string, accountName: string, options?: FileServicesGetServicePropertiesOptionalParams): Promise<FileServiceProperties>;
    getServiceUsage(resourceGroupName: string, accountName: string, options?: FileServicesGetServiceUsageOptionalParams): Promise<FileServiceUsage>;
    list(resourceGroupName: string, accountName: string, options?: FileServicesListOptionalParams): Promise<FileServiceItems>;
    listServiceUsages(resourceGroupName: string, accountName: string, options?: FileServicesListServiceUsagesOptionalParams): PagedAsyncIterableIterator<FileServiceUsage>;
    setServiceProperties(resourceGroupName: string, accountName: string, parameters: FileServiceProperties, options?: FileServicesSetServicePropertiesOptionalParams): Promise<FileServiceProperties>;
}

Methods

  • Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules.

    Parameters

    • resourceGroupName: string

      The name of the resource group within the user's subscription. The name is case insensitive.

    • accountName: 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.

    • Optionaloptions: FileServicesGetServicePropertiesOptionalParams

      The options parameters.

    Returns Promise<FileServiceProperties>

  • Gets the usage of file service in storage account including account limits, file share limits and constants used in recommendations and bursting formula.

    Parameters

    • resourceGroupName: string

      The name of the resource group within the user's subscription. The name is case insensitive.

    • accountName: 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.

    • Optionaloptions: FileServicesGetServiceUsageOptionalParams

      The options parameters.

    Returns Promise<FileServiceUsage>

  • List all file services in storage accounts

    Parameters

    • resourceGroupName: string

      The name of the resource group within the user's subscription. The name is case insensitive.

    • accountName: 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.

    • Optionaloptions: FileServicesListOptionalParams

      The options parameters.

    Returns Promise<FileServiceItems>

  • Gets the usages of file service in storage account.

    Parameters

    • resourceGroupName: string

      The name of the resource group within the user's subscription. The name is case insensitive.

    • accountName: 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.

    • Optionaloptions: FileServicesListServiceUsagesOptionalParams

      The options parameters.

    Returns PagedAsyncIterableIterator<FileServiceUsage>

  • Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules.

    Parameters

    • resourceGroupName: string

      The name of the resource group within the user's subscription. The name is case insensitive.

    • accountName: 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.

    • parameters: FileServiceProperties

      The properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules.

    • Optionaloptions: FileServicesSetServicePropertiesOptionalParams

      The options parameters.

    Returns Promise<FileServiceProperties>