Létrehoz egy új megosztást a megadott fiók alatt a kérelemtörzsben leírtak szerint. A megosztási erőforrás az adott megosztás metaadatait és tulajdonságait tartalmazza. Nem tartalmazza a megosztás által tartalmazott fájlok listáját.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}?api-version=2023-01-01
With optional parameters:
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}?$expand={$expand}&api-version=2023-01-01
URI-paraméterek
Name |
In |
Kötelező |
Típus |
Description |
accountName
|
path |
True
|
string
|
A tárfiók neve a megadott erőforráscsoporton belül. A tárfiókneveknek 3 és 24 karakter közötti hosszúságúnak kell lenniük, és csak számokat és kisbetűket kell használniuk.
Regex pattern: ^[a-z0-9]+$
|
resourceGroupName
|
path |
True
|
string
|
A felhasználó előfizetésében található erőforráscsoport neve. A név megkülönbözteti a kis- és nagybetűket.
Regex pattern: ^[-\w\._\(\)]+$
|
shareName
|
path |
True
|
string
|
A fájlmegosztás neve a megadott tárfiókban. A fájlmegosztások nevének 3 és 63 karakter közötti hosszúságúnak kell lennie, és csak számokat, kisbetűket és kötőjeleket (-) kell használnia. Minden kötőjelet (-) közvetlenül meg kell előzni, és betűvel vagy számmal kell követni.
|
subscriptionId
|
path |
True
|
string
|
A cél-előfizetés azonosítója.
|
api-version
|
query |
True
|
string
|
A művelethez használandó API-verzió.
|
$expand
|
query |
|
string
|
Nem kötelező, a megosztás tulajdonságainak kibontásához használható. Az érvényes értékek a következők: pillanatképek. Sztringként kell átadni," elválasztójellel
|
Kérelem törzse
Name |
Típus |
Description |
properties.accessTier
|
ShareAccessTier
|
Adott megosztás hozzáférési szintje. A GpV2-fiók választhat a TransactionOptimized (alapértelmezett), a Gyakori és a Ritka elérésű lehetőségek közül. A FileStorage-fiók választhatja a Premium lehetőséget.
|
properties.enabledProtocols
|
EnabledProtocols
|
A fájlmegosztáshoz használt hitelesítési protokoll. Csak megosztás létrehozásakor adható meg.
|
properties.metadata
|
object
|
Egy név-érték pár, amely metaadatként társítja a megosztást.
|
properties.rootSquash
|
RootSquashType
|
A tulajdonság csak NFS-megosztásra vonatkozik. Az alapértelmezett érték a NoRootSquash.
|
properties.shareQuota
|
integer
|
A megosztás maximális mérete gigabájtban. 0-nál nagyobbnak és 5 TB-nál kisebbnek (5120) kell lennie. Nagyméretű fájlmegosztások esetén a maximális méret 102400.
|
properties.signedIdentifiers
|
SignedIdentifier[]
|
A megosztáson megadott tárolt hozzáférési szabályzatok listája.
|
Válaszok
Name |
Típus |
Description |
200 OK
|
FileShare
|
OK – A megosztás már létrejött.
|
201 Created
|
FileShare
|
Létrehozás – A Megosztás létrehozása művelet sikeresen befejeződött.
|
Other Status Codes
|
CloudError
|
Hibaválasz, amely leírja, hogy a művelet miért hiúsult meg.
|
Biztonság
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name |
Description |
user_impersonation
|
felhasználói fiók megszemélyesítése
|
Példák
Create NFS Shares
Sample Request
PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/res346/providers/Microsoft.Storage/storageAccounts/sto666/fileServices/default/shares/share1235?api-version=2023-01-01
{
"properties": {
"enabledProtocols": "NFS"
}
}
import com.azure.resourcemanager.storage.fluent.models.FileShareInner;
import com.azure.resourcemanager.storage.models.EnabledProtocols;
/** Samples for FileShares Create. */
public final class Main {
/*
* x-ms-original-file:
* specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/FileSharesPut_NFS.json
*/
/**
* Sample code: Create NFS Shares.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void createNFSShares(com.azure.resourcemanager.AzureResourceManager azure) {
azure.storageAccounts().manager().serviceClient().getFileShares().createWithResponse("res346", "sto666",
"share1235", new FileShareInner().withEnabledProtocols(EnabledProtocols.NFS), null,
com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armstorage_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0baf811c3c76c87b3c127d098519bd97141222dd/specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/FileSharesPut_NFS.json
func ExampleFileSharesClient_Create_createNfsShares() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstorage.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewFileSharesClient().Create(ctx, "res346", "sto666", "share1235", armstorage.FileShare{
FileShareProperties: &armstorage.FileShareProperties{
EnabledProtocols: to.Ptr(armstorage.EnabledProtocolsNFS),
},
}, &armstorage.FileSharesClientCreateOptions{Expand: nil})
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.FileShare = armstorage.FileShare{
// Name: to.Ptr("share1235"),
// Type: to.Ptr("Microsoft.Storage/storageAccounts/fileServices/shares"),
// ID: to.Ptr("/subscriptions/{subscription-id}/resourceGroups/res346/providers/Microsoft.Storage/storageAccounts/sto666/fileServices/default/shares/share1235"),
// FileShareProperties: &armstorage.FileShareProperties{
// EnabledProtocols: to.Ptr(armstorage.EnabledProtocolsNFS),
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { StorageManagementClient } = require("@azure/arm-storage");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Creates a new share under the specified account as described by request body. The share resource includes metadata and properties for that share. It does not include a list of the files contained by the share.
*
* @summary Creates a new share under the specified account as described by request body. The share resource includes metadata and properties for that share. It does not include a list of the files contained by the share.
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/FileSharesPut_NFS.json
*/
async function createNfsShares() {
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res346";
const accountName = "sto666";
const shareName = "share1235";
const fileShare = { enabledProtocols: "NFS" };
const credential = new DefaultAzureCredential();
const client = new StorageManagementClient(credential, subscriptionId);
const result = await client.fileShares.create(
resourceGroupName,
accountName,
shareName,
fileShare
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.storage import StorageManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-storage
# USAGE
python file_shares_put_nfs.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = StorageManagementClient(
credential=DefaultAzureCredential(),
subscription_id="{subscription-id}",
)
response = client.file_shares.create(
resource_group_name="res346",
account_name="sto666",
share_name="share1235",
file_share={"properties": {"enabledProtocols": "NFS"}},
)
print(response)
# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/FileSharesPut_NFS.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Sample Response
{
"id": "/subscriptions/{subscription-id}/resourceGroups/res346/providers/Microsoft.Storage/storageAccounts/sto666/fileServices/default/shares/share1235",
"name": "share1235",
"type": "Microsoft.Storage/storageAccounts/fileServices/shares",
"properties": {
"enabledProtocols": "NFS"
}
}
{
"id": "/subscriptions/{subscription-id}/resourceGroups/res346/providers/Microsoft.Storage/storageAccounts/sto666/fileServices/default/shares/share1235",
"name": "share1235",
"type": "Microsoft.Storage/storageAccounts/fileServices/shares",
"properties": {
"enabledProtocols": "NFS"
}
}
PutShares
Sample Request
PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/fileServices/default/shares/share6185?api-version=2023-01-01
{}
import com.azure.resourcemanager.storage.fluent.models.FileShareInner;
/** Samples for FileShares Create. */
public final class Main {
/*
* x-ms-original-file:
* specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/FileSharesPut.json
*/
/**
* Sample code: PutShares.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void putShares(com.azure.resourcemanager.AzureResourceManager azure) {
azure.storageAccounts().manager().serviceClient().getFileShares().createWithResponse("res3376", "sto328",
"share6185", new FileShareInner(), null, com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armstorage_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0baf811c3c76c87b3c127d098519bd97141222dd/specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/FileSharesPut.json
func ExampleFileSharesClient_Create_putShares() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstorage.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewFileSharesClient().Create(ctx, "res3376", "sto328", "share6185", armstorage.FileShare{}, &armstorage.FileSharesClientCreateOptions{Expand: nil})
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.FileShare = armstorage.FileShare{
// Name: to.Ptr("share6185"),
// Type: to.Ptr("Microsoft.Storage/storageAccounts/fileServices/shares"),
// ID: to.Ptr("/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/fileServices/default/shares/share6185"),
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { StorageManagementClient } = require("@azure/arm-storage");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Creates a new share under the specified account as described by request body. The share resource includes metadata and properties for that share. It does not include a list of the files contained by the share.
*
* @summary Creates a new share under the specified account as described by request body. The share resource includes metadata and properties for that share. It does not include a list of the files contained by the share.
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/FileSharesPut.json
*/
async function putShares() {
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res3376";
const accountName = "sto328";
const shareName = "share6185";
const fileShare = {};
const credential = new DefaultAzureCredential();
const client = new StorageManagementClient(credential, subscriptionId);
const result = await client.fileShares.create(
resourceGroupName,
accountName,
shareName,
fileShare
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Sample Response
{
"id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/fileServices/default/shares/share6185",
"name": "share6185",
"type": "Microsoft.Storage/storageAccounts/fileServices/shares"
}
{
"id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/fileServices/default/shares/share6185",
"name": "share6185",
"type": "Microsoft.Storage/storageAccounts/fileServices/shares"
}
PutShares with Access Tier
Sample Request
PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/res346/providers/Microsoft.Storage/storageAccounts/sto666/fileServices/default/shares/share1235?api-version=2023-01-01
{
"properties": {
"accessTier": "Hot"
}
}
import com.azure.resourcemanager.storage.fluent.models.FileShareInner;
import com.azure.resourcemanager.storage.models.ShareAccessTier;
/** Samples for FileShares Create. */
public final class Main {
/*
* x-ms-original-file:
* specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/FileSharesPut_AccessTier.json
*/
/**
* Sample code: PutShares with Access Tier.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void putSharesWithAccessTier(com.azure.resourcemanager.AzureResourceManager azure) {
azure.storageAccounts().manager().serviceClient().getFileShares().createWithResponse("res346", "sto666",
"share1235", new FileShareInner().withAccessTier(ShareAccessTier.HOT), null,
com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armstorage_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0baf811c3c76c87b3c127d098519bd97141222dd/specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/FileSharesPut_AccessTier.json
func ExampleFileSharesClient_Create_putSharesWithAccessTier() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstorage.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewFileSharesClient().Create(ctx, "res346", "sto666", "share1235", armstorage.FileShare{
FileShareProperties: &armstorage.FileShareProperties{
AccessTier: to.Ptr(armstorage.ShareAccessTierHot),
},
}, &armstorage.FileSharesClientCreateOptions{Expand: nil})
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.FileShare = armstorage.FileShare{
// Name: to.Ptr("share1235"),
// Type: to.Ptr("Microsoft.Storage/storageAccounts/fileServices/shares"),
// ID: to.Ptr("/subscriptions/{subscription-id}/resourceGroups/res346/providers/Microsoft.Storage/storageAccounts/sto666/fileServices/default/shares/share1235"),
// FileShareProperties: &armstorage.FileShareProperties{
// AccessTier: to.Ptr(armstorage.ShareAccessTierHot),
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { StorageManagementClient } = require("@azure/arm-storage");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Creates a new share under the specified account as described by request body. The share resource includes metadata and properties for that share. It does not include a list of the files contained by the share.
*
* @summary Creates a new share under the specified account as described by request body. The share resource includes metadata and properties for that share. It does not include a list of the files contained by the share.
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/FileSharesPut_AccessTier.json
*/
async function putSharesWithAccessTier() {
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res346";
const accountName = "sto666";
const shareName = "share1235";
const fileShare = { accessTier: "Hot" };
const credential = new DefaultAzureCredential();
const client = new StorageManagementClient(credential, subscriptionId);
const result = await client.fileShares.create(
resourceGroupName,
accountName,
shareName,
fileShare
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.storage import StorageManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-storage
# USAGE
python file_shares_put_access_tier.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = StorageManagementClient(
credential=DefaultAzureCredential(),
subscription_id="{subscription-id}",
)
response = client.file_shares.create(
resource_group_name="res346",
account_name="sto666",
share_name="share1235",
file_share={"properties": {"accessTier": "Hot"}},
)
print(response)
# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/FileSharesPut_AccessTier.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Sample Response
{
"id": "/subscriptions/{subscription-id}/resourceGroups/res346/providers/Microsoft.Storage/storageAccounts/sto666/fileServices/default/shares/share1235",
"name": "share1235",
"type": "Microsoft.Storage/storageAccounts/fileServices/shares",
"properties": {
"accessTier": "Hot"
}
}
{
"id": "/subscriptions/{subscription-id}/resourceGroups/res346/providers/Microsoft.Storage/storageAccounts/sto666/fileServices/default/shares/share1235",
"name": "share1235",
"type": "Microsoft.Storage/storageAccounts/fileServices/shares",
"properties": {
"accessTier": "Hot"
}
}
Definíciók
Name |
Description |
AccessPolicy
|
|
CloudError
|
Hibaválasz a Storage szolgáltatástól.
|
CloudErrorBody
|
Hibaválasz a Storage szolgáltatástól.
|
EnabledProtocols
|
A fájlmegosztáshoz használt hitelesítési protokoll. Csak megosztás létrehozásakor adható meg.
|
FileShare
|
A fájlmegosztás tulajdonságai, beleértve az azonosítót, az erőforrásnevet, az erőforrástípust és az Etaget.
|
LeaseDuration
|
Azt határozza meg, hogy a megosztás bérlete végtelen vagy rögzített időtartamú-e, csak akkor, ha a megosztást lízingelik.
|
LeaseState
|
A megosztás bérletállapota.
|
LeaseStatus
|
A megosztás bérletállapota.
|
RootSquashType
|
A tulajdonság csak NFS-megosztásra vonatkozik. Az alapértelmezett érték a NoRootSquash.
|
ShareAccessTier
|
Adott megosztás hozzáférési szintje. A GpV2-fiók választhat a TransactionOptimized (alapértelmezett), a Gyakori és a Ritka elérésű lehetőségek közül. A FileStorage-fiók választhatja a Premium lehetőséget.
|
SignedIdentifier
|
|
AccessPolicy
Name |
Típus |
Description |
expiryTime
|
string
|
A hozzáférési szabályzat lejárati ideje
|
permission
|
string
|
A rövidített engedélyek listája.
|
startTime
|
string
|
A hozzáférési szabályzat kezdési időpontja
|
CloudError
Hibaválasz a Storage szolgáltatástól.
Name |
Típus |
Description |
error
|
CloudErrorBody
|
Hibaválasz a Storage szolgáltatástól.
|
CloudErrorBody
Hibaválasz a Storage szolgáltatástól.
Name |
Típus |
Description |
code
|
string
|
A hiba azonosítója. A kódok invariánsak, és programozott módon használhatók.
|
details
|
CloudErrorBody[]
|
A hibával kapcsolatos további részletek listája.
|
message
|
string
|
A hibát leíró üzenet, amely alkalmas a felhasználói felületen való megjelenítésre.
|
target
|
string
|
Az adott hiba célja. Például a hibás tulajdonság neve.
|
EnabledProtocols
A fájlmegosztáshoz használt hitelesítési protokoll. Csak megosztás létrehozásakor adható meg.
Name |
Típus |
Description |
NFS
|
string
|
|
SMB
|
string
|
|
FileShare
A fájlmegosztás tulajdonságai, beleértve az azonosítót, az erőforrásnevet, az erőforrástípust és az Etaget.
Name |
Típus |
Description |
etag
|
string
|
Erőforrás-etag.
|
id
|
string
|
Az erőforrás teljes erőforrás-azonosítója. Ex – /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
name
|
string
|
Az erőforrás neve
|
properties.accessTier
|
ShareAccessTier
|
Adott megosztás hozzáférési szintje. A GpV2-fiók választhat a TransactionOptimized (alapértelmezett), a Gyakori és a Ritka elérésű lehetőségek közül. A FileStorage-fiók választhatja a Premium lehetőséget.
|
properties.accessTierChangeTime
|
string
|
A megosztási hozzáférési szint utolsó módosítási idejét jelzi.
|
properties.accessTierStatus
|
string
|
Azt jelzi, hogy van-e függőben lévő áttűnés a hozzáférési szinthez.
|
properties.deleted
|
boolean
|
Azt jelzi, hogy a megosztás törölve lett-e.
|
properties.deletedTime
|
string
|
A megosztás törlésének időpontja.
|
properties.enabledProtocols
|
EnabledProtocols
|
A fájlmegosztáshoz használt hitelesítési protokoll. Csak megosztás létrehozásakor adható meg.
|
properties.lastModifiedTime
|
string
|
A megosztás utolsó módosításának dátumát és időpontját adja vissza.
|
properties.leaseDuration
|
LeaseDuration
|
Azt határozza meg, hogy a megosztás bérlete végtelen vagy rögzített időtartamú-e, csak akkor, ha a megosztást lízingelik.
|
properties.leaseState
|
LeaseState
|
A megosztás bérletállapota.
|
properties.leaseStatus
|
LeaseStatus
|
A megosztás bérletállapota.
|
properties.metadata
|
object
|
Egy név-érték pár, amely metaadatként társítja a megosztást.
|
properties.remainingRetentionDays
|
integer
|
A helyreállíthatóan törölt megosztás hátralévő megőrzési napjai.
|
properties.rootSquash
|
RootSquashType
|
A tulajdonság csak NFS-megosztásra vonatkozik. Az alapértelmezett érték a NoRootSquash.
|
properties.shareQuota
|
integer
|
A megosztás maximális mérete gigabájtban. 0-nál nagyobbnak és 5 TB-nál kisebbnek (5120) kell lennie. Nagyméretű fájlmegosztások esetén a maximális méret 102400.
|
properties.shareUsageBytes
|
integer
|
A megosztáson tárolt adatok hozzávetőleges mérete. Vegye figyelembe, hogy ez az érték nem feltétlenül tartalmazza az összes nemrég létrehozott vagy nemrég átméretezett fájlt.
|
properties.signedIdentifiers
|
SignedIdentifier[]
|
A megosztáson megadott tárolt hozzáférési szabályzatok listája.
|
properties.snapshotTime
|
string
|
A megosztás pillanatképének létrehozási ideje a listamegosztások válaszában a "pillanatképek" kibontásával.
|
properties.version
|
string
|
A megosztás verziója.
|
type
|
string
|
Az erőforrás típusa. Például "Microsoft.Compute/virtualMachines" vagy "Microsoft.Storage/storageAccounts"
|
LeaseDuration
Azt határozza meg, hogy a megosztás bérlete végtelen vagy rögzített időtartamú-e, csak akkor, ha a megosztást lízingelik.
Name |
Típus |
Description |
Fixed
|
string
|
|
Infinite
|
string
|
|
LeaseState
A megosztás bérletállapota.
Name |
Típus |
Description |
Available
|
string
|
|
Breaking
|
string
|
|
Broken
|
string
|
|
Expired
|
string
|
|
Leased
|
string
|
|
LeaseStatus
A megosztás bérletállapota.
Name |
Típus |
Description |
Locked
|
string
|
|
Unlocked
|
string
|
|
RootSquashType
A tulajdonság csak NFS-megosztásra vonatkozik. Az alapértelmezett érték a NoRootSquash.
Name |
Típus |
Description |
AllSquash
|
string
|
|
NoRootSquash
|
string
|
|
RootSquash
|
string
|
|
ShareAccessTier
Adott megosztás hozzáférési szintje. A GpV2-fiók választhat a TransactionOptimized (alapértelmezett), a Gyakori és a Ritka elérésű lehetőségek közül. A FileStorage-fiók választhatja a Premium lehetőséget.
Name |
Típus |
Description |
Cool
|
string
|
|
Hot
|
string
|
|
Premium
|
string
|
|
TransactionOptimized
|
string
|
|
SignedIdentifier
Name |
Típus |
Description |
accessPolicy
|
AccessPolicy
|
Hozzáférési szabályzat
|
id
|
string
|
A tárolt hozzáférési szabályzat egyedi azonosítója.
|