我在使用 Amazon PHP SDK 提取标签部分中的卷名时遇到了一些问题。
我可以打印卷 ID,但由于标签位于单独的数组中,我不确定如何引用名为“名称”的键的值。
$east_client = \Aws\Ec2\Ec2Client::factory($east_config);
$east_result = $east_client->describeVolumes();
$east_volumes = $east_result['卷'];
foreach ($east_volumes 作为 $e)
{
回声 $e['VolumeId'] 。"\n";
}