

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 檢視與 Amazon Route 53 設定檔相關聯的 VPCs
<a name="profiles-vpcs-editing"></a>

選擇主控台索引標籤，以檢視和編輯 Route 53 設定檔與 VPC 的關聯。選擇 CLI 索引標籤 AWS CLI 以列出設定檔與 VPC 關聯，或取得特定關聯的相關資訊
+ [主控台](#profiles-vpcs-editing-console)
+ [CLI](#profiles-vpcs-editing-CLI)

------
#### [ Console ]<a name="profiles-vpcs-editing-procedure"></a>

**檢視與設定檔相關聯的 VPCs**

1. 登入 AWS Management Console ，並在 https：//[https://console.aws.amazon.com/route53/](https://console.aws.amazon.com/route53/) 開啟 Route 53 主控台。

1. 在導覽窗格中，選擇**設定檔**。

1. 在導覽列上，選擇您建立設定檔的區域。

1. 選取您要檢視相關聯 VPCs 之設定檔名稱旁的按鈕。

1. 在 **<Profile name>** 頁面上，選擇 **VPCs**索引標籤。

1. 在 VPCs 的索引標籤頁面上，您可以檢視相關聯 VPCs 的名稱、ARN 和狀態。

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

您可以執行如下所示的 AWS CLI 命令，列出設定檔相關聯的 VPCs：

`aws route53profiles list-profile-associations`

以下是執行 命令之後的範例輸出：

```
{
    "ProfileAssociations": [
        {
            "CreationTime": 1709338817.148,
            "Id": "rpassoc-489ce212fexample",{
    "ProfileAssociations": [
        {
            "CreationTime": 1709338817.148,
            "Id": "rpassoc-489ce212fexample",
            "ModificationTime": 1709338974.772,
            "Name": "test-association",
            "OwnerId": "123456789012",
            "ProfileId": "rp-4987774726example",
            "ResourceId": "vpc-0af3b96b3example",
            "Status": "COMPLETE",
            "StatusMessage": "Created Profile Association"
        }
    ]
}
            "ModificationTime": 1709338974.772,
            "Name": "test-association",
            "OwnerId": "123456789012",
            "ProfileId": "rp-4987774726example",
            "ResourceId": "vpc-0af3b96b3example",
            "Status": "COMPLETE",
            "StatusMessage": "Created Profile Association"
        }
    ]
}
```

您可以執行如下所示的 AWS CLI 命令，並使用您自己的 值，以取得與設定檔相關聯之特定 VPS 的相關資訊`profile-association-id`：

`aws route53profiles get-profile-association --profile-association-id rpassoc-489ce212fexample`

以下是執行 命令之後的範例輸出：

```
   "ProfileAssociation": {
        "CreationTime": 1709338817.148,
        "Id": "rrpassoc-489ce212fexample",
        "ModificationTime": 1709338974.772,
        "Name": "test-association",
        "OwnerId": "123456789012",
        "ProfileId": "rp-4987774726example",
        "ResourceId": "vpc-0af3b96b3example",
        "Status": "COMPLETE",
        "StatusMessage": "Created Profile Association"
    }   ]
}
```

------

## 取消 VPC 與 Amazon Route 53 設定檔的關聯
<a name="profiles-disassociate-vpc"></a>

選擇索引標籤，使用 Route 53 主控台取消 Route 53 設定檔與 VPC 的關聯，或 AWS CLI。
+ [主控台](#profile-disassociating-vpc-console)
+ [CLI](#profile-disassociating-vpc-CLI)

------
#### [ Console ]<a name="profile-disassociating-vpc-procedure"></a>

**取消關聯與 Route 53 設定檔相關聯的 VPC**

1. 登入 AWS Management Console 並開啟 Route 53 主控台，網址為 https：//[https://console.aws.amazon.com/route53/](https://console.aws.amazon.com/route53/)。

1. 在導覽窗格中，選擇**設定檔**。

1. 在導覽列上，選擇您要取消 VPC 關聯之設定檔所在的區域。

1. 選取您要與 VPC 取消關聯的設定檔名稱旁的按鈕。

1. 在 **<Profile name>** 頁面上，選擇 **VPCs**索引標籤。

1. 在資源VPCs 索引標籤頁面上，選擇您要取消關聯的 VPC，然後選擇**取消關聯**。

1. 在**取消關聯資源**對話方塊中，輸入 **confirm**，然後選擇**取消關聯**。

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

您可以執行如下所示的 AWS CLI 命令，並使用 `profile-id`和 的自有值來取消設定檔與 VPC 的關聯`--resource-id`：

`aws route53profiles disassociate-profile --profile-id rp-4987774726example --resource-id vpc-0af3b96b3example`

以下是您執行 命令後的範例輸出：

```
"ProfileAssociation": {
        "CreationTime": 1710851336.527,
        "Id": "rpassoc-489ce212fexample",
        "ModificationTime": 1710851401.362,
        "Name": "test-association",
        "OwnerId": "123456789012",
        "ProfileId": "rp-4987774726example",
        "ResourceId": "vpc-0af3b96b3example",
        "Status": "DELETING",
        "StatusMessage": "Deleting Profile Association"
    }
```

------