在公有雲帳戶中建立具有適當權限的角色,以將帳戶新增至 CSM

概觀

對於您想要使用 NSX 控制的每個公有雲帳戶,您可以選擇使用適當的權限來建立適當的角色。NSX Cloud 提供可用來產生這些角色的指令碼。

如果您想要限制可新增至 CSM 的公有雲,請執行下列 CSM API:

PUT /api/v1/csm/desired-clouds

Example Request:
PUT https://<nsx-csm>/api/v1/csm/desired-clouds
{
  "cloud_types": [
    {
        "cloud_type": "aws"
        "enabled": true,
    }
    {
        "cloud_type": "azure",
        "enabled": true,
    }
    {
        "cloud_type": "aws-gov-us-east"
        "enabled": false,
    }
    {
        "cloud_type": "aws-gov-us-west",
        "enabled": false,
    }
    {
        "cloud_type": "azure-gov-us",
        "enabled": false,
    }
  ]
}

如需 API 詳細資料,請參閱最新版本的《NSX API 指南》,網址為 https://code.vmware.com/