

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à.

# Recupero di un ARN esistente per Amazon RDS
<a name="USER_Tagging.ARN.Getting"></a>

È possibile ottenere l'ARN di una risorsa RDS utilizzando l'API Console di gestione AWS, AWS Command Line Interface (AWS CLI) o RDS. 

## Console
<a name="USER_Tagging.ARN.CON"></a>

Per ottenere un ARN da Console di gestione AWS, vai alla risorsa per cui desideri un ARN e visualizza i dettagli di quella risorsa.

Ad esempio, puoi ottenere l'ARN per un'istanza database dalla scheda **Configurazione** dei dettagli dell'istanza database.

![ARN istanza database.](http://docs.aws.amazon.com/it_it/AmazonRDS/latest/UserGuide/images/DB-instance-arn.png)


## AWS CLI
<a name="USER_Tagging.ARN.CLI"></a>

Per ottenere un ARN da AWS CLI per una particolare risorsa RDS, si utilizza il `describe` comando per quella risorsa. La tabella seguente mostra ogni AWS CLI comando e la proprietà ARN utilizzata con il comando per ottenere un ARN. 


****  

| AWS CLI comando | Proprietà ARN | 
| --- | --- | 
|  [describe-event-subscriptions](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-event-subscriptions.html)  | EventSubscriptionArn | 
|  [describe-certificates](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-certificates.html) | CertificateArn | 
|  [describe-db-parameter-groups](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-parameter-groups.html) | DBParameterGroupArn | 
|  [describe-db-cluster-parameter-groups](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-cluster-parameter-groups.html) | DBClusterParameterGroupArn | 
|  [describe-db-instances](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-instances.html) | DBInstanceArn | 
|  [describe-db-security-groups](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-security-groups.html) | DBSecurityGroupArn | 
|  [describe-db-snapshots](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-snapshots.html) | DBSnapshotArn | 
|  [describe-events](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-events.html) | SourceArn | 
|  [describe-reserved-db-instances](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-reserved-db-instances.html) | ReservedDBInstanceArn | 
|  [describe-db-subnet-groups](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-subnet-groups.html) | DBSubnetGroupArn | 
|  [describe-option-groups](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-option-groups.html) | OptionGroupArn | 
|  [describe-db-clusters](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-clusters.html) | DBClusterArn | 
|  [describe-db-cluster-snapshots](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-cluster-snapshots.html) | DBClusterSnapshotArn | 

Ad esempio, il AWS CLI comando seguente ottiene l'ARN per un'istanza DB.

**Example**  
Per Linux, macOS o Unix:  

```
aws rds describe-db-instances \
--db-instance-identifier {{DBInstanceIdentifier}} \
--region {{us-west-2}} \
--query "*[].{DBInstanceIdentifier:DBInstanceIdentifier,DBInstanceArn:DBInstanceArn}"
```
Per Windows:  

```
aws rds describe-db-instances ^
--db-instance-identifier {{DBInstanceIdentifier}} ^
--region {{us-west-2}} ^
--query "*[].{DBInstanceIdentifier:DBInstanceIdentifier,DBInstanceArn:DBInstanceArn}"
```
L'output del comando è simile al seguente:  

```
[
    {
        "DBInstanceArn": "arn:aws:rds:us-west-2:{{account_id}}:db:{{instance_id}}", 
        "DBInstanceIdentifier": "{{instance_id}}"
    }
]
```

## API RDS
<a name="USER_Tagging.ARN.API"></a>

Per ottenere un ARN per una determinata risorsa RDS, puoi chiamare le operazioni API RDS e le proprietà ARN seguenti.


****  

| Operazione API RDS | Proprietà ARN | 
| --- | --- | 
|  [DescribeEventSubscriptions](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeEventSubscriptions.html) | EventSubscriptionArn | 
|  [DescribeCertificates](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeCertificates.html) | CertificateArn | 
|  [DescribeDBParameterGroups](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBParameterGroups.html) | DBParameterGroupArn | 
|  [DescribeDBClusterParameterGroups](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBClusterParameterGroups.html) | DBClusterParameterGroupArn | 
|  [DescribeDBInstances](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBInstances.html) | DBInstanceArn | 
|  [DescribeDBSecurityGroups](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBSecurityGroups.html) | DBSecurityGroupArn | 
|  [DescribeDBSnapshots](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBSnapshots.html) | DBSnapshotArn | 
|  [DescribeEvents](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeEvents.html) | SourceArn | 
|  [DescribeReservedDBInstances](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeReservedDBInstances.html) | ReservedDBInstanceArn | 
|  [DescribeDBSubnetGroups](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBSubnetGroups.html) | DBSubnetGroupArn | 
|  [DescribeOptionGroups](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeOptionGroups.html) | OptionGroupArn | 
|  [DescribeDBClusters](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBClusters.html) | DBClusterArn | 
|  [DescribeDBClusterSnapshots](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBClusterSnapshots.html) | DBClusterSnapshotArn | 