Add Security Group To A Server (addSecurityGroup Action)
サーバにセキュリティグループを追加します。
APIエンドポイント
| リージョン | APIエンドポイント |
|---|---|
| 西日本リージョン3の場合 | https://compute.jp-west-3.cloud.global.fujitsu.com |
| 東日本リージョン3の場合 | https://compute.jp-east-3.cloud.global.fujitsu.com |
HTTPメソッドとURI
POST
/v2.1/{project_id}/servers/{server_id}/action
HTTPステータスコード
正常時:202
エラー時:400, 401, 403, 404, 409
リクエストパラメータの説明
| 名前 | In | Type |
デフォルト値 /必須指定 |
Description |
|---|---|---|---|---|
| project_id | path | string | 必須 | プロジェクトのUUID |
| server_id | path | string | 必須 | サーバのUUID |
| addSecurityGroup | body | object | 必須 | サーバにセキュリティグループを追加するアクション |
| name | body | string | 必須 | セキュリティグループの名前 |
リクエスト例
{
"addSecurityGroup": {
"name": "test"
}
}