本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
描述 Amazon DocumentDB 子網路群組
您可以使用AWS Management Console或取AWS CLI得 Amazon DocumentDB 子網路群組的詳細資料。
- Using the AWS Management Console
-
下列程序示範如何取得 Amazon Docu資料庫子網路群組。
找出子網路群組的詳細資訊
登入AWS Management Console,並前往 https://console.aws.amazon.com/docdb
開 Amazon DocumentDB 主控台。 -
在導覽窗格中選擇 Subnet groups (子網路群組)。
提示
如果畫面左側沒有出現導覽窗格,請選擇頁面左上角的功能表圖示 ()。
-
若要查看子網路群組的詳細資訊,請選擇該子網路群組的名稱。
- Using the AWS CLI
-
若要尋找 Amazon DocumentDB 子網路群組的詳細資訊,請使用具有下列參數的
describe-db-subnet-groups
作業。參數
-
--db-subnet=group-name
選擇性。如果包含,將列出指名子網路群組的詳細資訊。如果省略,將列出最多 100 個子網路群組的詳細資訊。
以下程式碼將列出我們在第 建立 Amazon DocumentDB 子網路群組 節中建立的
sample-subnet-group
子網路群組的詳細資訊。若為 Linux、macOS 或 Unix:
aws docdb describe-db-subnet-groups \ --db-subnet-group-name
sample-subnet-group
針對 Windows:
aws docdb describe-db-subnet-groups ^ --db-subnet-group-name
sample-subnet-group
此操作的輸出將會如下所示 (JSON 格式)。
{ "DBSubnetGroup": { "DBSubnetGroupArn": "arn:aws:rds:us-east-1:123SAMPLE012:subgrp:sample-subnet-group", "VpcId": "vpc-91280df6", "SubnetGroupStatus": "Complete", "DBSubnetGroupName": "sample-subnet-group", "Subnets": [ { "SubnetAvailabilityZone": { "Name": "us-east-1a" }, "SubnetStatus": "Active", "SubnetIdentifier": "subnet-4e26d263" }, { "SubnetAvailabilityZone": { "Name": "us-east-1c" }, "SubnetStatus": "Active", "SubnetIdentifier": "subnet-afc329f4" }, { "SubnetAvailabilityZone": { "Name": "us-east-1e" }, "SubnetStatus": "Active", "SubnetIdentifier": "subnet-b3806e8f" } ], "DBSubnetGroupDescription": "A sample subnet group" } }
-
建立子網路群組
修改子網路群組