

Sono disponibili altri esempi AWS SDK nel repository [AWS Doc SDK](https://github.com/awsdocs/aws-doc-sdk-examples) Examples. GitHub 

Le traduzioni sono generate tramite traduzione automatica. In caso di conflitto tra il contenuto di una traduzione e la versione originale in Inglese, quest'ultima prevarrà.

# Esempi di codice per l'utilizzo di Amazon EFS AWS SDKs
<a name="efs_code_examples"></a>

I seguenti esempi di codice mostrano come usare Amazon Elastic File System con un kit di sviluppo AWS software (SDK).

Le *azioni* sono estratti di codice da programmi più grandi e devono essere eseguite nel contesto. Sebbene le azioni mostrino come richiamare le singole funzioni del servizio, è possibile visualizzarle contestualizzate negli scenari correlati.

**Altre risorse**
+  **[Guida per gli sviluppatori di Amazon EFS](https://docs.aws.amazon.com/efs/latest/ug/whatisefs.html)**: ulteriori informazioni su Amazon EFS.
+ **[Documentazione di riferimento dell’API Amazon EFS](https://docs.aws.amazon.com/efs/latest/ug/api-reference.html)**: dettagli su tutte le azioni Amazon EFS disponibili.
+ **[AWS Developer Center](https://aws.amazon.com/developer/code-examples/?awsf.sdk-code-examples-product=product%23)**: esempi di codice che puoi filtrare per categoria o per ricerca completa.
+ **[AWS Esempi SDK](https://github.com/awsdocs/aws-doc-sdk-examples)**: GitHub repository con codice completo nelle lingue preferite. Include le istruzioni su come configurare ed eseguire il codice.

**Contents**
+ [Nozioni di base](efs_code_examples_basics.md)
  + [Azioni](efs_code_examples_actions.md)
    + [`CreateFileSystem`](efs_example_efs_CreateFileSystem_section.md)
    + [`CreateMountTarget`](efs_example_efs_CreateMountTarget_section.md)
    + [`DeleteFileSystem`](efs_example_efs_DeleteFileSystem_section.md)
    + [`DeleteMountTarget`](efs_example_efs_DeleteMountTarget_section.md)
    + [`DescribeFileSystems`](efs_example_efs_DescribeFileSystems_section.md)
    + [`DescribeMountTargets`](efs_example_efs_DescribeMountTargets_section.md)
    + [`DescribeTags`](efs_example_efs_DescribeTags_section.md)

# Esempi di base per l'utilizzo di Amazon EFS AWS SDKs
<a name="efs_code_examples_basics"></a>

I seguenti esempi di codice mostrano come utilizzare le nozioni di base di Amazon Elastic File System con AWS SDKs. 

**Contents**
+ [Azioni](efs_code_examples_actions.md)
  + [`CreateFileSystem`](efs_example_efs_CreateFileSystem_section.md)
  + [`CreateMountTarget`](efs_example_efs_CreateMountTarget_section.md)
  + [`DeleteFileSystem`](efs_example_efs_DeleteFileSystem_section.md)
  + [`DeleteMountTarget`](efs_example_efs_DeleteMountTarget_section.md)
  + [`DescribeFileSystems`](efs_example_efs_DescribeFileSystems_section.md)
  + [`DescribeMountTargets`](efs_example_efs_DescribeMountTargets_section.md)
  + [`DescribeTags`](efs_example_efs_DescribeTags_section.md)

# Azioni per l'utilizzo di Amazon EFS AWS SDKs
<a name="efs_code_examples_actions"></a>

I seguenti esempi di codice mostrano come eseguire singole azioni Amazon EFS con AWS SDKs. Ogni esempio include un collegamento a GitHub, dove puoi trovare le istruzioni per la configurazione e l'esecuzione del codice. 

 Gli esempi seguenti includono solo le azioni più comunemente utilizzate. Per un elenco completo, consulta la [documentazione di riferimento dell’API Amazon Elastic File System](https://docs.aws.amazon.com/efs/latest/ug/api-reference.html). 

**Topics**
+ [`CreateFileSystem`](efs_example_efs_CreateFileSystem_section.md)
+ [`CreateMountTarget`](efs_example_efs_CreateMountTarget_section.md)
+ [`DeleteFileSystem`](efs_example_efs_DeleteFileSystem_section.md)
+ [`DeleteMountTarget`](efs_example_efs_DeleteMountTarget_section.md)
+ [`DescribeFileSystems`](efs_example_efs_DescribeFileSystems_section.md)
+ [`DescribeMountTargets`](efs_example_efs_DescribeMountTargets_section.md)
+ [`DescribeTags`](efs_example_efs_DescribeTags_section.md)

# Utilizzare `CreateFileSystem` con una CLI
<a name="efs_example_efs_CreateFileSystem_section"></a>

Gli esempi di codice seguenti mostrano come utilizzare `CreateFileSystem`.

------
#### [ CLI ]

**AWS CLI**  
**Creare un file system crittografato**  
L’esempio `create-file-system` seguente crea un file system crittografato utilizzando la chiave gestita dal cliente (CMK) predefinita. Aggiunge anche il tag `Name=my-file-system`.  

```
aws efs create-file-system \
    --performance-mode generalPurpose \
    --throughput-mode bursting \
    --encrypted \
    --tags Key=Name,Value=my-file-system
```
Output:  

```
{
    "OwnerId": "123456789012",
    "CreationToken": "console-d7f56c5f-e433-41ca-8307-9d9c0example",
    "FileSystemId": "fs-c7a0456e",
    "FileSystemArn": "arn:aws:elasticfilesystem:us-west-2:123456789012:file-system/fs-48499b4d",
    "CreationTime": 1595286880.0,
    "LifeCycleState": "creating",
    "Name": "my-file-system",
    "NumberOfMountTargets": 0,
    "SizeInBytes": {
        "Value": 0,
        "ValueInIA": 0,
        "ValueInStandard": 0
    },
    "PerformanceMode": "generalPurpose",
    "Encrypted": true,
    "KmsKeyId": "arn:aws:kms:us-west-2:123456789012:key/a59b3472-e62c-42e4-adcf-30d92example",
    "ThroughputMode": "bursting",
    "Tags": [
        {
            "Key": "Name",
            "Value": "my-file-system"
        }
    ]
}
```
Per ulteriori informazioni, consulta [Creazione di file system Amazon EFS](https://docs.aws.amazon.com/efs/latest/ug/creating-using-create-fs.html) nella *Guida per l’utente di Amazon Elastic File System*.  
+  Per i dettagli sull'API, consulta [CreateFileSystem AWS CLI](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/efs/create-file-system.html)*Command Reference.* 

------
#### [ PowerShell ]

**Strumenti per PowerShell V4**  
**Esempio 1: crea un nuovo file system vuoto. Il token utilizzato per garantire la creazione dell’idempotenza verrà generato automaticamente e sarà accessibile dal membro `CreationToken` dell’oggetto restituito.**  

```
New-EFSFileSystem
```
**Output:**  

```
CreationTime         : 5/26/2015 4:02:38 PM
CreationToken        : 1a2bff54-85e0-4747-bd95-7bc172c4f555
FileSystemId         : fs-1a2b3c4d
LifeCycleState       : creating
Name                 :
NumberOfMountTargets : 0
OwnerId              : 123456789012
SizeInBytes          : Amazon.ElasticFileSystem.Model.FileSystemSize
```
**Esempio 2: crea un nuovo file system vuoto utilizzando un token personalizzato per garantire una creazione basata sull’idempotenza.**  

```
New-EFSFileSystem -CreationToken "MyUniqueToken"
```
+  Per i dettagli sull'API, vedere [CreateFileSystem](https://docs.aws.amazon.com/powershell/v4/reference)in *AWS Strumenti per PowerShell Cmdlet Reference (*V4). 

**Strumenti per V5 PowerShell **  
**Esempio 1: crea un nuovo file system vuoto. Il token utilizzato per garantire la creazione dell’idempotenza verrà generato automaticamente e sarà accessibile dal membro `CreationToken` dell’oggetto restituito.**  

```
New-EFSFileSystem
```
**Output:**  

```
CreationTime         : 5/26/2015 4:02:38 PM
CreationToken        : 1a2bff54-85e0-4747-bd95-7bc172c4f555
FileSystemId         : fs-1a2b3c4d
LifeCycleState       : creating
Name                 :
NumberOfMountTargets : 0
OwnerId              : 123456789012
SizeInBytes          : Amazon.ElasticFileSystem.Model.FileSystemSize
```
**Esempio 2: crea un nuovo file system vuoto utilizzando un token personalizzato per garantire una creazione basata sull’idempotenza.**  

```
New-EFSFileSystem -CreationToken "MyUniqueToken"
```
+  Per i dettagli sull'API, vedere [CreateFileSystem](https://docs.aws.amazon.com/powershell/v5/reference)in *AWS Strumenti per PowerShell Cmdlet Reference (*V5). 

------

# Utilizzare `CreateMountTarget` con una CLI
<a name="efs_example_efs_CreateMountTarget_section"></a>

Gli esempi di codice seguenti mostrano come utilizzare `CreateMountTarget`.

------
#### [ CLI ]

**AWS CLI**  
**Come creare una destinazione di montaggio**  
L’esempio `create-mount-target` seguente crea una destinazione di montaggio per il file system specificato.  

```
aws efs create-mount-target \
    --file-system-id fs-c7a0456e \
    --subnet-id subnet-02bf4c428bexample \
    --security-groups sg-068f739363example
```
Output:  

```
{
    "OwnerId": "123456789012",
    "MountTargetId": "fsmt-f9a14450",
    "FileSystemId": "fs-c7a0456e",
    "SubnetId": "subnet-02bf4c428bexample",
    "LifeCycleState": "creating",
    "IpAddress": "10.0.1.24",
    "NetworkInterfaceId": "eni-02d542216aexample",
    "AvailabilityZoneId": "use2-az2",
    "AvailabilityZoneName": "us-east-2b",
    "VpcId": "vpc-0123456789abcdef0"
}
```
Per ulteriori informazioni, consulta [Creazione di destinazioni di montaggio](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) nella *Guida per l’utente di Amazon Elastic File System*.  
+  Per i dettagli sull'API, consulta [CreateMountTarget AWS CLI](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/efs/create-mount-target.html)*Command Reference.* 

------
#### [ PowerShell ]

**Strumenti per PowerShell V4**  
**Esempio 1: crea una destinazione di montaggio per un file system. La sottorete specificata verrà utilizzata per determinare il cloud privato virtuale (VPC) in cui verrà creata la destinazione di montaggio e l’indirizzo IP che verrà assegnato automaticamente (dall’intervallo di indirizzi della sottorete). L’indirizzo IP assegnato può essere utilizzato per montare questo file system su un’istanza Amazon EC2. Poiché non è stato specificato un gruppo di sicurezza, l’interfaccia di rete creata per la destinazione è associata al gruppo di sicurezza predefinito per il VPC della sottorete.**  

```
New-EFSMountTarget -FileSystemId fs-1a2b3c4d -SubnetId subnet-1a2b3c4d
```
**Output:**  

```
FileSystemId       : fs-1a2b3c4d
IpAddress          : 10.0.0.131
LifeCycleState     : creating
MountTargetId      : fsmt-1a2b3c4d
NetworkInterfaceId : eni-1a2b3c4d
OwnerId            : 123456789012
SubnetId           : subnet-1a2b3c4d
```
**Esempio 2: crea una nuova destinazione di montaggio per il file system specificato con un indirizzo IP assegnato automaticamente. L’interfaccia di rete creata per la destinazione di montaggio è associata ai gruppi di sicurezza specificati (un massimo di 5, nel formato “sg-xxxxxxxx”).**  

```
New-EFSMountTarget -FileSystemId fs-1a2b3c4d -SubnetId subnet-1a2b3c4d -SecurityGroup sg-group1,sg-group2,sg-group3
```
**Esempio 3: crea una nuova destinazione di montaggio per il file system specificato con l’indirizzo IP specificato.**  

```
New-EFSMountTarget -FileSystemId fs-1a2b3c4d -SubnetId subnet-1a2b3c4d -IpAddress 10.0.0.131
```
+  Per i dettagli sull'API, vedere [CreateMountTarget](https://docs.aws.amazon.com/powershell/v4/reference)in *AWS Strumenti per PowerShell Cmdlet Reference (*V4). 

**Strumenti per V5 PowerShell **  
**Esempio 1: crea una destinazione di montaggio per un file system. La sottorete specificata verrà utilizzata per determinare il cloud privato virtuale (VPC) in cui verrà creata la destinazione di montaggio e l’indirizzo IP che verrà assegnato automaticamente (dall’intervallo di indirizzi della sottorete). L’indirizzo IP assegnato può essere utilizzato per montare questo file system su un’istanza Amazon EC2. Poiché non è stato specificato un gruppo di sicurezza, l’interfaccia di rete creata per la destinazione è associata al gruppo di sicurezza predefinito per il VPC della sottorete.**  

```
New-EFSMountTarget -FileSystemId fs-1a2b3c4d -SubnetId subnet-1a2b3c4d
```
**Output:**  

```
FileSystemId       : fs-1a2b3c4d
IpAddress          : 10.0.0.131
LifeCycleState     : creating
MountTargetId      : fsmt-1a2b3c4d
NetworkInterfaceId : eni-1a2b3c4d
OwnerId            : 123456789012
SubnetId           : subnet-1a2b3c4d
```
**Esempio 2: crea una nuova destinazione di montaggio per il file system specificato con un indirizzo IP assegnato automaticamente. L’interfaccia di rete creata per la destinazione di montaggio è associata ai gruppi di sicurezza specificati (un massimo di 5, nel formato “sg-xxxxxxxx”).**  

```
New-EFSMountTarget -FileSystemId fs-1a2b3c4d -SubnetId subnet-1a2b3c4d -SecurityGroup sg-group1,sg-group2,sg-group3
```
**Esempio 3: crea una nuova destinazione di montaggio per il file system specificato con l’indirizzo IP specificato.**  

```
New-EFSMountTarget -FileSystemId fs-1a2b3c4d -SubnetId subnet-1a2b3c4d -IpAddress 10.0.0.131
```
+  Per i dettagli sull'API, vedere [CreateMountTarget](https://docs.aws.amazon.com/powershell/v5/reference)in *AWS Strumenti per PowerShell Cmdlet Reference (*V5). 

------

# Utilizzare `DeleteFileSystem` con una CLI
<a name="efs_example_efs_DeleteFileSystem_section"></a>

Gli esempi di codice seguenti mostrano come utilizzare `DeleteFileSystem`.

------
#### [ CLI ]

**AWS CLI**  
**Come eliminare un file system**  
L’esempio `delete-file-system` seguente elimina il file system specificato.  

```
aws efs delete-file-system \
    --file-system-id fs-c7a0456e
```
Questo comando non produce alcun output.  
Per ulteriori informazioni, consulta [Cancellazione di un file system Amazon EFS](https://docs.aws.amazon.com/efs/latest/ug/delete-efs-fs.html) nella *Guida per l’utente di Amazon Elastic File System*.  
+  Per i dettagli sull'API, consulta [DeleteFileSystem AWS CLI](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/efs/delete-file-system.html)*Command Reference.* 

------
#### [ PowerShell ]

**Strumenti per PowerShell V4**  
**Esempio 1: elimina il file system non più in uso specificato (se il file system ha destinazioni di montaggio, tali destinazioni devono prima essere rimosse). Prima che il cmdlet proceda con l’esecuzione dell’operazione, viene richiesta una conferma. Per disabilitare la conferma, utilizza il parametro `-Force`.**  

```
Remove-EFSFileSystem -FileSystemId fs-1a2b3c4d
```
+  Per i dettagli sull'API, vedere [DeleteFileSystem](https://docs.aws.amazon.com/powershell/v4/reference)in *AWS Strumenti per PowerShell Cmdlet Reference (*V4). 

**Strumenti per V5 PowerShell **  
**Esempio 1: elimina il file system non più in uso specificato (se il file system ha destinazioni di montaggio, tali destinazioni devono prima essere rimosse). Prima che il cmdlet proceda con l’esecuzione dell’operazione, viene richiesta una conferma. Per disabilitare la conferma, utilizza il parametro `-Force`.**  

```
Remove-EFSFileSystem -FileSystemId fs-1a2b3c4d
```
+  Per i dettagli sull'API, vedere [DeleteFileSystem](https://docs.aws.amazon.com/powershell/v5/reference)in *AWS Strumenti per PowerShell Cmdlet Reference (*V5). 

------

# Utilizzare `DeleteMountTarget` con una CLI
<a name="efs_example_efs_DeleteMountTarget_section"></a>

Gli esempi di codice seguenti mostrano come utilizzare `DeleteMountTarget`.

------
#### [ CLI ]

**AWS CLI**  
**Come eliminare una destinazione di montaggio**  
L’esempio `delete-mount-target` seguente elimina la destinazione di montaggio specificata.  

```
aws efs delete-mount-target \
    --mount-target-id fsmt-f9a14450
```
Questo comando non produce alcun output.  
Per ulteriori informazioni, consulta [Creazione di destinazioni di montaggio](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) nella *Guida per l’utente di Amazon Elastic File System*.  
+  Per i dettagli sull'API, consulta [DeleteMountTarget AWS CLI](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/efs/delete-mount-target.html)*Command Reference.* 

------
#### [ PowerShell ]

**Strumenti per PowerShell V4**  
**Esempio 1: elimina la destinazione di montaggio specificata. Prima di procedere con l’operazione, viene richiesta una conferma. Per disabilitare la richiesta, utilizza il parametro `-Force`. Nota che questa operazione forza l’interruzione di qualsiasi montaggio del file system tramite la destinazione. Se possibile, puoi valutare la possibilità di smontare il file system prima di eseguire questo comando.**  

```
Remove-EFSMountTarget -MountTargetId fsmt-1a2b3c4d
```
+  Per i dettagli sull'API, vedere [DeleteMountTarget](https://docs.aws.amazon.com/powershell/v4/reference)in *AWS Strumenti per PowerShell Cmdlet Reference (*V4). 

**Strumenti per V5 PowerShell **  
**Esempio 1: elimina la destinazione di montaggio specificata. Prima di procedere con l’operazione, viene richiesta una conferma. Per disabilitare la richiesta, utilizza il parametro `-Force`. Nota che questa operazione forza l’interruzione di qualsiasi montaggio del file system tramite la destinazione. Se possibile, puoi valutare la possibilità di smontare il file system prima di eseguire questo comando.**  

```
Remove-EFSMountTarget -MountTargetId fsmt-1a2b3c4d
```
+  Per i dettagli sull'API, vedere [DeleteMountTarget](https://docs.aws.amazon.com/powershell/v5/reference)in *AWS Strumenti per PowerShell Cmdlet Reference (*V5). 

------

# Utilizzare `DescribeFileSystems` con una CLI
<a name="efs_example_efs_DescribeFileSystems_section"></a>

Gli esempi di codice seguenti mostrano come utilizzare `DescribeFileSystems`.

------
#### [ CLI ]

**AWS CLI**  
**Come descrivere un file system**  
L’esempio `describe-file-systems` seguente descrive il file system specificato.  

```
aws efs describe-file-systems \
    --file-system-id fs-c7a0456e
```
Output:  

```
{
    "FileSystems": [
        {
            "OwnerId": "123456789012",
            "CreationToken": "console-d7f56c5f-e433-41ca-8307-9d9c0example",
            "FileSystemId": "fs-c7a0456e",
            "FileSystemArn": "arn:aws:elasticfilesystem:us-west-2:123456789012:file-system/fs-48499b4d",
            "CreationTime": 1595286880.0,
            "LifeCycleState": "available",
            "Name": "my-file-system",
            "NumberOfMountTargets": 3,
            "SizeInBytes": {
                "Value": 6144,
                "Timestamp": 1600991437.0,
                "ValueInIA": 0,
                "ValueInStandard": 6144
            },
            "PerformanceMode": "generalPurpose",
            "Encrypted": true,
            "KmsKeyId": "arn:aws:kms:us-west-2:123456789012:key/a59b3472-e62c-42e4-adcf-30d92example",
            "ThroughputMode": "bursting",
            "Tags": [
                {
                    "Key": "Name",
                    "Value": "my-file-system"
                }
            ]
        }
    ]
}
```
Per ulteriori informazioni, consulta [Gestione dei file system Amazon EFS](https://docs.aws.amazon.com/efs/latest/ug/managing.html) nella *Guida per l’utente di Amazon Elastic File System*.  
+  Per i dettagli sull'API, consulta [DescribeFileSystems AWS CLI](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/efs/describe-file-systems.html)*Command Reference.* 

------
#### [ PowerShell ]

**Strumenti per PowerShell V4**  
**Esempio 1: restituisce la raccolta di tutti i file system appartenenti all’account del chiamante nell’area.**  

```
Get-EFSFileSystem
```
**Output:**  

```
CreationTime         : 5/26/2015 4:02:38 PM
CreationToken        : 1a2bff54-85e0-4747-bd95-7bc172c4f555
FileSystemId         : fs-1a2b3c4d
LifeCycleState       : available
Name                 :
NumberOfMountTargets : 0
OwnerId              : 123456789012
SizeInBytes          : Amazon.ElasticFileSystem.Model.FileSystemSize

CreationTime         : 5/26/2015 4:06:23 PM
CreationToken        : 2b4daa14-85e0-4747-bd95-7bc172c4f555
FileSystemId         : fs-4d3c2b1a
...
```
**Esempio 2: restituisce i dettagli del file system specificato.**  

```
Get-EFSFileSystem -FileSystemId fs-1a2b3c4d
```
**Esempio 3: restituisce i dettagli di un file system utilizzando il token di creazione basata sull’idempotenza specificato durante la creazione del file system.**  

```
Get-EFSFileSystem -CreationToken 1a2bff54-85e0-4747-bd95-7bc172c4f555
```
+  Per i dettagli sull'API, vedere [DescribeFileSystems](https://docs.aws.amazon.com/powershell/v4/reference)in *AWS Strumenti per PowerShell Cmdlet Reference (*V4). 

**Strumenti per V5 PowerShell **  
**Esempio 1: restituisce la raccolta di tutti i file system appartenenti all’account del chiamante nell’area.**  

```
Get-EFSFileSystem
```
**Output:**  

```
CreationTime         : 5/26/2015 4:02:38 PM
CreationToken        : 1a2bff54-85e0-4747-bd95-7bc172c4f555
FileSystemId         : fs-1a2b3c4d
LifeCycleState       : available
Name                 :
NumberOfMountTargets : 0
OwnerId              : 123456789012
SizeInBytes          : Amazon.ElasticFileSystem.Model.FileSystemSize

CreationTime         : 5/26/2015 4:06:23 PM
CreationToken        : 2b4daa14-85e0-4747-bd95-7bc172c4f555
FileSystemId         : fs-4d3c2b1a
...
```
**Esempio 2: restituisce i dettagli del file system specificato.**  

```
Get-EFSFileSystem -FileSystemId fs-1a2b3c4d
```
**Esempio 3: restituisce i dettagli di un file system utilizzando il token di creazione basata sull’idempotenza specificato durante la creazione del file system.**  

```
Get-EFSFileSystem -CreationToken 1a2bff54-85e0-4747-bd95-7bc172c4f555
```
+  Per i dettagli sull'API, vedere [DescribeFileSystems](https://docs.aws.amazon.com/powershell/v5/reference)in *AWS Strumenti per PowerShell Cmdlet Reference (*V5). 

------

# Utilizzare `DescribeMountTargets` con una CLI
<a name="efs_example_efs_DescribeMountTargets_section"></a>

Gli esempi di codice seguenti mostrano come utilizzare `DescribeMountTargets`.

------
#### [ CLI ]

**AWS CLI**  
**Come descrivere una destinazione di montaggio**  
L’esempio `describe-mount-targets` seguente descrive la destinazione di montaggio specificata.  

```
aws efs describe-mount-targets \
    --mount-target-id fsmt-f9a14450
```
Output:  

```
{
    "MountTargets": [
        {
            "OwnerId": "123456789012",
            "MountTargetId": "fsmt-f9a14450",
            "FileSystemId": "fs-c7a0456e",
            "SubnetId": "subnet-02bf4c428bexample",
            "LifeCycleState": "creating",
            "IpAddress": "10.0.1.24",
            "NetworkInterfaceId": "eni-02d542216aexample",
            "AvailabilityZoneId": "use2-az2",
            "AvailabilityZoneName": "us-east-2b",
            "VpcId": "vpc-0123456789abcdef0"
        }
    ]
}
```
Per ulteriori informazioni, consulta [Creazione di destinazioni di montaggio](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) nella *Guida per l’utente di Amazon Elastic File System*.  
+  Per i dettagli sull'API, consulta [DescribeMountTargets AWS CLI](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/efs/describe-mount-targets.html)*Command Reference.* 

------
#### [ PowerShell ]

**Strumenti per PowerShell V4**  
**Esempio 1: restituisce la raccolta delle destinazioni di montaggio associate al file system specificato.**  

```
Get-EFSMountTarget -FileSystemId fs-1a2b3c4d
```
**Output:**  

```
FileSystemId       : fs-1a2b3c4d
IpAddress          : 10.0.0.131
LifeCycleState     : available
MountTargetId      : fsmt-1a2b3c4d
NetworkInterfaceId : eni-1a2b3c4d
OwnerId            : 123456789012
SubnetId           : subnet-1a2b3c4d
```
+  Per i dettagli sull'API, vedere [DescribeMountTargets](https://docs.aws.amazon.com/powershell/v4/reference)in *AWS Strumenti per PowerShell Cmdlet Reference (*V4). 

**Strumenti per V5 PowerShell **  
**Esempio 1: restituisce la raccolta delle destinazioni di montaggio associate al file system specificato.**  

```
Get-EFSMountTarget -FileSystemId fs-1a2b3c4d
```
**Output:**  

```
FileSystemId       : fs-1a2b3c4d
IpAddress          : 10.0.0.131
LifeCycleState     : available
MountTargetId      : fsmt-1a2b3c4d
NetworkInterfaceId : eni-1a2b3c4d
OwnerId            : 123456789012
SubnetId           : subnet-1a2b3c4d
```
+  Per i dettagli sull'API, vedere [DescribeMountTargets](https://docs.aws.amazon.com/powershell/v5/reference)in *AWS Strumenti per PowerShell Cmdlet Reference (*V5). 

------

# Utilizzare `DescribeTags` con una CLI
<a name="efs_example_efs_DescribeTags_section"></a>

Gli esempi di codice seguenti mostrano come utilizzare `DescribeTags`.

------
#### [ CLI ]

**AWS CLI**  
**Come descrivere i tag di un file system**  
L’esempio `describe-tags` seguente descrive i tag per il file system specificato.  

```
aws efs describe-tags \
    --file-system-id fs-c7a0456e
```
Output:  

```
{
    "Tags": [
        {
            "Key": "Name",
            "Value": "my-file-system"
        },
        {
            "Key": "Department",
            "Value": "Business Intelligence"
        }
    ]
}
```
Per ulteriori informazioni, consulta [Gestione dei tag del file system](https://docs.aws.amazon.com/efs/latest/ug/manage-fs-tags.html) nella *Guida per l’utente di Amazon Elastic File System*.  
+  Per i dettagli sull'API, consulta [DescribeTags AWS CLI](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/efs/describe-tags.html)*Command Reference.* 

------
#### [ PowerShell ]

**Strumenti per PowerShell V4**  
**Esempio 1: restituisce la raccolta di tag attualmente associati al file system specificato.**  

```
Get-EFSTag -FileSystemId fs-1a2b3c4d
```
**Output:**  

```
Key         Value
---         -----
Name        My File System
tagkey1     tagvalue1
tagkey2     tagvalue2
```
+  Per i dettagli sull'API, vedere [DescribeTags](https://docs.aws.amazon.com/powershell/v4/reference)in *AWS Strumenti per PowerShell Cmdlet Reference (*V4). 

**Strumenti per V5 PowerShell **  
**Esempio 1: restituisce la raccolta di tag attualmente associati al file system specificato.**  

```
Get-EFSTag -FileSystemId fs-1a2b3c4d
```
**Output:**  

```
Key         Value
---         -----
Name        My File System
tagkey1     tagvalue1
tagkey2     tagvalue2
```
+  Per i dettagli sull'API, vedere [DescribeTags](https://docs.aws.amazon.com/powershell/v5/reference)in *AWS Strumenti per PowerShell Cmdlet Reference (*V5). 

------