CreateAnthosUserCluster
処理概要
Anthos(GKE Enterprise) のユーザークラスターを新規作成します。
リクエストURL
POST /v1/resource-groups/{ResourceGroupName}/anthos/user-clusters指定するパラメーター
パスパラメーター
| パラメーター | 型 | 説明 | 必須 | 
|---|---|---|---|
| ResourceGroupName | string | 
        対象のリソースグループ名 | 
      ○ | 
リクエストボディ
| パラメーター | 型 | 説明 | 必須 | 
|---|---|---|---|
| name | string | 
        クラスター名 Google Cloudプロジェクトに存在するクラスター名と重複は不可 使用可能文字: 半角英数小文字またはハイフン(先頭は半角英字の小文字、末尾は半角英数小文字のみ)40文字以内  | 
      ○ | 
| version | string | 
        Anthos(GKE Enterprise) バージョン 管理クラスターのAnthos(GKE Enterprise) バージョンと一致している必要がある 指定されていない場合はGetAnthosServerConfigのdefaultConfig.anthosVersionの値が入る  | 
      |
| keyName | string | 
        SSHキー名 コンピューティングで作成したSSHキーを指定する  | 
      ○ | 
| initialAccountingType | string | 
        初期料金プラン 値: 
  | 
      |
| anthosServiceMeshConfig | object | 
         | 
      |
| ␣enabled | boolean | 
        Cloud Service Meshの有効・無効 | 
      ○ | 
| ␣version | string | 
        Cloud Service Meshのバージョン 指定可能な値はGetAnthosServerConfigで確認可能 Cloud Service Meshが有効かつ指定されていない場合はGetAnthosServerConfigのdefaultConfig.serviceMeshVersionの値が入る  | 
      |
| cloudControllerManagerConfig | object | 
         | 
      |
| ␣useExternalCloudProvider | boolean | 
        Cloud Controller Manager用クラスター設定の有効・無効 | 
      ○ | 
| controlPlaneLoadBalancer | object | 
         | 
      |
| ␣type | string | 
        ロードバランサーのタイプ 値: 
  | 
      ○ | 
| ␣vip | string | 
        ロードバランサーのVIP プライベートLAN指定時は必須  | 
      |
| ␣systemIpAddresses | string[] | 
        マルチロードバランサーのシステムIPアドレス 共通プライベート指定時は指定不可 プライベートLAN指定時でtypeがelastic-load-balancerの場合は必須。2つの重複しないIPアドレスを指定する必要あり  | 
      |
| controlPlane | object | 
         | 
      |
| ␣region | string | 
        サーバーを作成するリージョン | 
      ○ | 
| ␣availabilityZone | string | 
        サーバーを作成するゾーン | 
      ○ | 
| ␣instanceType | string | 
        サーバータイプ 値: 
  | 
      ○ | 
| ␣volumeType | string | 
        ディスクタイプ 値: 
  | 
      ○ | 
| ␣volumeSize | integer | 
        ディスクサイズ 値: 
  | 
      ○ | 
| ␣nodeCount | integer | 
        コントロールプレーンのノード数 値: 
  | 
      ○ | 
| nodePools[] | object[] | 
         | 
      |
| ␣name | string | 
        ノードプール名 使用可能文字: 半角英数小文字またはハイフン(先頭と末尾を除く)40文字以内  | 
      ○ | 
| ␣region | string | 
        サーバーを作成するリージョン | 
      ○ | 
| ␣availabilityZone | string | 
        サーバーを作成するゾーン | 
      ○ | 
| ␣instanceType | string | 
        サーバータイプ 値: 
  | 
      ○ | 
| ␣volumeType | string | 
        ディスクタイプ 値: 
  | 
      ○ | 
| ␣volumeSize | integer | 
        ディスクサイズ 値: 
  | 
      ○ | 
| ␣nodeCount | integer | 
        ノード数 | 
      ○ | 
応答フィールド
| フィールド (項目) | 型 | 説明 | 
|---|---|---|
| name | string | 
        クラスター名 | 
    
| version | string | 
        Anthos(GKE Enterprise) バージョン | 
    
| keyName | string | 
        SSHキー名 | 
    
| initialAccountingType | string | 
        初期料金プラン 値: 
  | 
    
| anthosServiceMeshConfig | object | 
         | 
    
| ␣enabled | boolean | 
        Cloud Service Meshの有効・無効 | 
    
| ␣version | string | 
        Cloud Service Meshのバージョン 指定可能な値はGetAnthosServerConfigで確認可能 Cloud Service Meshが有効かつ指定されていない場合はGetAnthosServerConfigのdefaultConfig.serviceMeshVersionの値が入る  | 
    
| cloudControllerManagerConfig | object | 
         | 
    
| ␣useExternalCloudProvider | boolean | 
        Cloud Controller Manager用クラスター設定の有効・無効 | 
    
| controlPlaneLoadBalancer | object | 
         | 
    
| ␣type | string | 
        タイプ 値: 
  | 
    
| ␣vip | string | 
        ロードバランサー仮想IPアドレス | 
    
| ␣systemIpAddresses | string[] | 
        システムIPアドレス typeがelastic-load-balancerのときのみ返却  | 
    
| ␣elasticLoadBalancer | object | 
         | 
    
| ␣␣region | string | 
        リージョン | 
    
| ␣␣availabilityZone | string | 
        ゾーン | 
    
| ␣␣id | string | 
        ユニークID | 
    
| ␣␣name | string | 
        マルチロードバランサー名 | 
    
| ␣␣dnsName | string | 
        VIPネットワーク IPアドレス | 
    
| ␣␣networkInterfaces[] | object[] | 
         | 
    
| ␣␣␣networkId | string | 
        ネットワークID | 
    
| ␣␣␣ipAddress | string | 
        IPアドレス | 
    
| ␣␣␣isVipNetwork | boolean | 
        VIPネットワークフラグ 待ち受けポートが設定されるネットワーク  | 
    
| ␣␣␣systemIpAddresses | string[] | 
        システムIPアドレス | 
    
| controlPlane | object | 
         | 
    
| ␣name | string | 
        ノードプール名 | 
    
| ␣region | string | 
        リージョン | 
    
| ␣availabilityZone | string | 
        ゾーン | 
    
| ␣instanceType | string | 
        サーバータイプ 値: 
  | 
    
| ␣volumeType | string | 
        ディスクタイプ 値: 
  | 
    
| ␣volumeSize | integer | 
        ディスクサイズ 値: 
  | 
    
| ␣nodeCount | integer | 
        ノード数 | 
    
| ␣instances[] | object[] | 
         | 
    
| ␣␣region | string | 
        リージョン | 
    
| ␣␣availabilityZone | string | 
        ゾーン | 
    
| ␣␣instanceId | string | 
        サーバー名 | 
    
| ␣␣instanceUniqueId | string | 
        ユニークID | 
    
| ␣␣instanceType | string | 
        サーバータイプ | 
    
| ␣␣securityGroupName | string | 
        ファイアウォールグループ名 | 
    
| ␣␣networkInterfaces[] | object[] | 
         | 
    
| ␣␣␣networkId | string | 
        ネットワークID | 
    
| ␣␣␣ipAddress | string | 
        IPアドレス | 
    
| ␣␣volumes[] | object[] | 
         | 
    
| ␣␣␣region | string | 
        リージョン | 
    
| ␣␣␣availabilityZone | string | 
        ゾーン | 
    
| ␣␣␣volumeId | string | 
        ディスク名 | 
    
| ␣␣␣volumeUniqueId | string | 
        ユニークID | 
    
| ␣␣␣type | string | 
        ディスクタイプ | 
    
| ␣␣␣size | integer | 
        ディスクサイズ | 
    
| nodePools[] | object[] | 
         | 
    
| ␣name | string | 
        ノードプール名 | 
    
| ␣region | string | 
        リージョン | 
    
| ␣availabilityZone | string | 
        ゾーン | 
    
| ␣instanceType | string | 
        サーバータイプ 値: 
  | 
    
| ␣volumeType | string | 
        ディスクタイプ 値: 
  | 
    
| ␣volumeSize | integer | 
        ディスクサイズ 値: 
  | 
    
| ␣nodeCount | integer | 
        ノード数 | 
    
| ␣instances[] | object[] | 
         | 
    
| ␣␣region | string | 
        リージョン | 
    
| ␣␣availabilityZone | string | 
        ゾーン | 
    
| ␣␣instanceId | string | 
        サーバー名 | 
    
| ␣␣instanceUniqueId | string | 
        ユニークID | 
    
| ␣␣instanceType | string | 
        サーバータイプ | 
    
| ␣␣securityGroupName | string | 
        ファイアウォールグループ名 | 
    
| ␣␣networkInterfaces[] | object[] | 
         | 
    
| ␣␣␣networkId | string | 
        ネットワークID | 
    
| ␣␣␣ipAddress | string | 
        IPアドレス | 
    
| ␣␣volumes[] | object[] | 
         | 
    
| ␣␣␣region | string | 
        リージョン | 
    
| ␣␣␣availabilityZone | string | 
        ゾーン | 
    
| ␣␣␣volumeId | string | 
        ディスク名 | 
    
| ␣␣␣volumeUniqueId | string | 
        ユニークID | 
    
| ␣␣␣type | string | 
        ディスクタイプ | 
    
| ␣␣␣size | integer | 
        ディスクサイズ | 
    
| status | string | 
        ステータス 値: 
  | 
    
リクエストサンプル
    curl -XPOST https://catalog.api.nifcloud.com/v1/resource-groups/my-resource-group/anthos/user-clusters
    -H 'X-Amz-Date: 20230401T000000Z'
    -H 'Authorization: AWS4-HMAC-SHA256 ...'
    -H 'content-type:application/json'
    -d '
{
  "name": "my-cluster",
  "version": "1.16.0",
  "keyName": "mykey",
  "initialAccountingType": "pay-per-use",
  "anthosServiceMeshConfig": {
    "enabled": true,
    "version": "1.18.2-asm.0"
  },
  "cloudControllerManagerConfig": {
    "useExternalCloudProvider": true
  },
  "controlPlaneLoadBalancer": {
    "type": "elastic-load-balancer",
    "vip": "192.168.1.1",
    "systemIpAddresses": [
      "192.168.1.2",
      "192.168.1.3"
    ]
  },
  "controlPlane": {
    "region": "east-1",
    "availabilityZone": "east-11",
    "instanceType": "h2-medium",
    "volumeType": "standard-flash-storage-a",
    "volumeSize": 100,
    "nodeCount": 1
  },
  "nodePools": [
    {
      "name": "my-node-pool",
      "region": "east-1",
      "availabilityZone": "east-11",
      "instanceType": "h2-medium",
      "volumeType": "standard-flash-storage-a",
      "volumeSize": 100,
      "nodeCount": 1
    }
  ]
}
'
  
  
  応答サンプル
    {
  "name": "my-cluster",
  "version": "1.16.0",
  "keyName": "mykey",
  "initialAccountingType": "pay-per-use",
  "anthosServiceMeshConfig": {
    "enabled": true,
    "version": "1.18.2-asm.0"
  },
  "cloudControllerManagerConfig": {
    "useExternalCloudProvider": true
  },
  "controlPlaneLoadBalancer": {
    "type": "elastic-load-balancer",
    "vip": "192.168.1.1",
    "systemIpAddresses": [
      "192.168.1.2",
      "192.168.1.3"
    ],
    "elasticLoadBalancer": {
      "region": "east-1",
      "availabilityZone": "east-11",
      "id": "elb-xxxxxxxx",
      "name": "mycplbxxxxx",
      "dnsName": "192.168.1.1",
      "networkInterfaces": [
        {
          "networkId": "net-xxxxxxxx",
          "ipAddress": "192.168.1.1",
          "isVipNetwork": true,
          "systemIpAddresses": [
            "192.168.1.2",
            "192.168.1.3"
          ]
        }
      ]
    }
  },
  "controlPlane": {
    "name": "my-cluster",
    "region": "east-1",
    "availabilityZone": "east-11",
    "instanceType": "h2-large16",
    "volumeType": "standard-flash-storage-a",
    "volumeSize": 100,
    "nodeCount": 1,
    "instances": [
      {
        "region": "east-1",
        "availabilityZone": "east-11",
        "instanceId": "mycpsvxxxxx",
        "instanceUniqueId": "i-xxxxxxxx",
        "instanceType": "h2-large16",
        "securityGroupName": "mycpfwxxxxx",
        "networkInterfaces": [
          {
              "networkId": "net-COMMON_GLOBAL",
              "ipAddress": "192.0.2.1"
          },
          {
            "networkId": "net-xxxxxxxx",
            "ipAddress": "192.168.10.1"
          }
        ],
        "volumes": [
          {
            "region": "east-1",
            "availabilityZone": "east-11",
            "volumeId": "mycpdkxxxxx",
            "volumeUniqueId": "vol-xxxxxxxx",
            "type": "standard-flash-storage-a",
            "size": 100
          }
        ]
      }
    ]
  },
  "nodePools": [
    {
      "name": "my-pool",
      "region": "east-1",
      "availabilityZone": "east-11",
      "instanceType": "h2-large16",
      "volumeType": "standard-flash-storage-a",
      "volumeSize": 100,
      "nodeCount": 1,
      "instances": [
        {
          "region": "east-1",
          "availabilityZone": "east-11",
          "instanceId": "mywksvxxxxx",
          "instanceUniqueId": "i-xxxxxxxx",
          "instanceType": "h2-large16",
          "securityGroupName": "mywkfwxxxxx",
          "networkInterfaces": [
            {
                "networkId": "net-COMMON_GLOBAL",
                "ipAddress": "192.0.2.2"
            },
            {
              "networkId": "net-xxxxxxxx",
              "ipAddress": "192.168.10.2"
            }
          ],
          "volumes": [
            {
              "region": "east-1",
              "availabilityZone": "east-11",
              "volumeId": "mywkdkxxxxx",
              "volumeUniqueId": "vol-xxxxxxxx",
              "type": "standard-flash-storage-a",
              "size": 100
            }
          ]
        }
      ]
    }
  ],
  "status": "provisioning"
}
  
  
        

