UpdateResourceGroup
処理概要
指定したリソースグループの設定を更新します。
リクエストURL
PUT /v1/resource-groups/{ResourceGroupName}指定するパラメーター
パスパラメーター
| パラメーター | 型 | 説明 | 必須 |
|---|---|---|---|
| ResourceGroupName | string |
更新対象のリソースグループ名 |
○ |
リクエストボディ
| パラメーター | 型 | 説明 | 必須 |
|---|---|---|---|
| name | string |
更新したい名前 使用可能文字: 半角英数小文字またはハイフン(先頭と末尾を除く)40文字以内 |
|
| description | string |
更新したいメモ 使用可能文字: UTF-8で全角半角255文字以内 |
応答フィールド
| フィールド (項目) | 型 | 説明 |
|---|---|---|
| name | string |
名前 |
| description | string |
メモ |
| template | string |
テンプレート |
| configuration | object |
|
| ␣anthos | object |
|
| ␣␣regions | string[] |
インフラリソースが存在しているリージョン |
| ␣␣availabilityZones | string[] |
インフラリソースが存在しているゾーン |
| ␣␣resourceNamePrefix | string |
リソース名プレフィックス |
| ␣␣deploymentModel | string |
デプロイメントモデル 値:
|
| ␣␣networkConfig | object |
|
| ␣␣␣networkId | string |
プライベートLANのネットワークID |
| ␣␣googleCloudConfig | object |
|
| ␣␣␣serviceAccount | object |
|
| ␣␣␣␣projectId | string |
プロジェクトID |
| ␣␣␣␣clientEmail | string |
クライアントメールアドレス |
| ␣␣␣␣clientId | string |
クライアントID |
| ␣␣␣location | string |
Google Cloudロケーション |
| ␣␣adminWorkstation | object |
|
| ␣␣␣region | string |
リージョン |
| ␣␣␣availabilityZone | string |
ゾーン |
| ␣␣␣instanceType | string |
サーバータイプ 値:
|
| ␣␣␣volumeType | string |
ディスクタイプ 値:
|
| ␣␣␣volumeSize | integer |
ディスクサイズ 値:
|
| ␣␣␣keyName | string |
SSHキー名 |
| ␣␣␣initialAccountingType | string |
初期料金プラン 値:
|
| ␣␣␣instance | 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 |
ディスクサイズ |
| ␣␣adminCluster | object |
|
| ␣␣␣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 |
ステータス 値:
|
| ␣␣userClusters[] | object[] |
|
| ␣␣␣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 |
ステータス 値:
|
| status | string |
ステータス 値:
|
| createTime | string |
作成日時 |
リクエストサンプル
curl -XPUT https://catalog.api.nifcloud.com/v1/resource-groups/my-resource-group
-H 'X-Amz-Date: 20230401T000000Z'
-H 'Authorization: AWS4-HMAC-SHA256 ...'
-H 'content-type:application/json'
-d '
{
"name": "update-my-resource-group",
"description": "update-my-resource-group description"
}
'
応答サンプル
{
"name": "update-my-resource-group",
"description": "update-my-resource-group description",
"template": "anthos",
"configuration": {
"anthos": {
"regions": [
"east-1"
],
"availabilityZones": [
"east-11"
],
"resourceNamePrefix": "my",
"deploymentModel": "standalone",
"networkConfig": {
"networkId": "net-COMMON_PRIVATE"
},
"googleCloudConfig": {
"serviceAccount": {
"projectId": "my-google-project",
"clientEmail": "my-service-account@my-google-project.iam.gserviceaccount.com",
"clientId": "0000000000000000000000"
},
"location": "asia-northeast1"
},
"adminWorkstation": {
"region": "east-1",
"availabilityZone": "east-11",
"instanceType": "h2-medium4",
"volumeType": "standard-flash-storage-a",
"volumeSize": 100,
"keyName": "mykey",
"initialAccountingType": "pay-per-use",
"instance": {
"region": "east-1",
"availabilityZone": "east-11",
"instanceId": "myawsvxxxxx",
"instanceUniqueId": "i-xxxxxxxx",
"instanceType": "h2-medium4",
"securityGroupName": "myawfwxxxxx",
"networkInterfaces": [
{
"networkId": "net-COMMON_GLOBAL",
"ipAddress": "192.0.2.1"
},
{
"networkId": "net-COMMON_PRIVATE",
"ipAddress": "192.0.2.2"
}
],
"volumes": [
{
"region": "east-1",
"availabilityZone": "east-11",
"volumeId": "myawdkxxxxx",
"volumeUniqueId": "vol-xxxxxxxx",
"type": "standard-flash-storage-a",
"size": 100
}
]
}
},
"adminCluster": {
"name": "my-cluster",
"version": "1.16.0",
"keyName": "sshkey",
"initialAccountingType": "pay-per-use",
"anthosServiceMeshConfig": {
"enabled": false,
"version": ""
},
"cloudControllerManagerConfig": {
"useExternalCloudProvider": false
},
"controlPlaneLoadBalancer": {
"type": "elastic-load-balancer",
"vip": "",
"systemIpAddresses": [],
"elasticLoadBalancer": {
"region": "east-1",
"availabilityZone": "east-11",
"id": "elb-xxxxxxxx",
"name": "mycplbxxxxx",
"dnsName": "192.0.2.3",
"networkInterfaces": [
{
"networkId": "net-COMMON_PRIVATE",
"ipAddress": "192.0.2.3",
"isVipNetwork": true,
"systemIpAddresses": []
}
]
}
},
"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.4"
},
{
"networkId": "net-COMMON_PRIVATE",
"ipAddress": "192.0.2.5"
}
],
"volumes": [
{
"region": "east-1",
"availabilityZone": "east-11",
"volumeId": "mycpdkxxxxx",
"volumeUniqueId": "vol-xxxxxxxx",
"type": "standard-flash-storage-a",
"size": 100
}
]
}
]
},
"nodePools": [
{
"name": "pool01",
"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.6"
},
{
"networkId": "net-COMMON_PRIVATE",
"ipAddress": "192.0.2.7"
}
],
"volumes": [
{
"region": "east-1",
"availabilityZone": "east-11",
"volumeId": "mywkdkxxxxx",
"volumeUniqueId": "vol-xxxxxxxx",
"type": "standard-flash-storage-a",
"size": 100
}
]
}
]
}
],
"status": "running"
},
"userClusters": []
}
},
"status": "provisioned",
"createTime": "2023-11-01T12:34:56Z"
}
