8.2. 创建多个位置
以下示例 Bash 脚本创建三个位置 - 伦敦,Munich,NSA - 并将它们分配给 Example 组织。
ORG="Example Organization" LOCATIONS="London Munich Boston" for LOC in ${LOCATIONS} do hammer location create --name "${LOC}" hammer location add-organization --name "${LOC}" --organization "${ORG}" done