{"id":5985,"date":"2017-10-24T23:14:28","date_gmt":"2017-10-24T14:14:28","guid":{"rendered":"https:\/\/y2tech.net\/blog\/?p=5985"},"modified":"2017-10-28T22:47:53","modified_gmt":"2017-10-28T13:47:53","slug":"customizing-wordpress-kusanagi-vol-2","status":"publish","type":"post","link":"https:\/\/y2tech.net\/blog\/inet\/customizing-wordpress-kusanagi-vol-2-5985\/","title":{"rendered":"WordPress KUSANAGI \u74b0\u5883\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\uff08\u305d\u306e\uff12\uff09"},"content":{"rendered":"<h3>ConoHa VPS\u306eAPI\u3092\u7528\u3044\u3066\u74b0\u5883\u8a2d\u5b9a\u3092\u884c\u3046<\/h3>\r\n<br>\r\n<p>KUSANAGI\u306e\u74b0\u5883\u8a2d\u5b9a\u3092\u884c\u3046\u524d\u306b\u3001ConoHa VPS\u306e\u4eee\u60f3\u57fa\u76e4\u5074\u306eFirewall\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u3066\u3088\u308a\u30bb\u30ad\u30e5\u30a2\u306a\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3066\u304a\u304f\u3053\u3068\u306b\u3059\u308b\uff0e\u524d\u306e\u8a18\u4e8b\u3067\u66f8\u3044\u305f\u3088\u3046\u306b\u3001KUSANAGI\u3092\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30a4\u30e1\u30fc\u30b8\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304b\u3089\u30c7\u30d7\u30ed\u30a4\u3057\u305f\u5834\u5408\u3001\u30c7\u30d7\u30ed\u30a4\u3055\u308c\u305fKUSANAGI\u74b0\u5883\u306b\u306f HTTP\u30b5\u30fc\u30d0(nginx) \u3084MySQL\u7b49\u306e\u30a2\u30d7\u30ea\u304c\u6700\u521d\u304b\u3089\u8d77\u52d5\u3055\u308c\u305f\u72b6\u614b\u3067OS\u304c\u7acb\u3061\u3042\u304c\u3063\u3066\u3057\u307e\u3046\uff0e<\/p>\r\n<br>\r\n<p>\u66f4\u306b\u554f\u984c\u306a\u306e\u306fOS\u5074\u306eFirewall\u74b0\u5883\u3067\u3042\u308bfirewalld \u306e\u30b5\u30fc\u30d3\u30b9\u306f\u505c\u6b62\u3055\u308c\u305f\u72b6\u614b\u3067\u5916\u90e8\uff08\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\uff09\u5074\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u306f\u5168\u3066\u958b\u653e\u72b6\u614b\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u3053\u3068\u3060\uff0eSSH\u30b5\u30fc\u30d3\u30b9\u3082\uff08TCP\/22\uff09\u3067\u7acb\u3061\u3042\u304c\u3063\u3066\u3044\u308b\uff0e\u3053\u306e\u72b6\u614b\u306fKUSANAGI\u306e\u74b0\u5883\u8a2d\u5b9a\u3092\u884c\u3046\u307e\u3067\u306e\u6bd4\u8f03\u7684\u77ed\u3044\u671f\u9593\u3068\u306f\u8a00\u3048\u3001\u7121\u9632\u5099\u306a\u72b6\u614b\u3067\u30b5\u30fc\u30d0\u3092\u5916\u90e8\u306b\u6652\u3059\u3053\u3068\u306b\u306a\u308b\uff0e\u30cf\u30c3\u30ad\u30ea\u8a00\u3063\u3066\u3053\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u306f\u975e\u5e38\u306b\u30de\u30ba\u30a4\uff0e<\/p>\r\n<br>\r\n<p>\u5e78\u3044\u306a\u3053\u3068\u306b\u3001ConoHa VPS\u306b\u306f\u4eee\u60f3\u57fa\u76e4\u5074\u306b\u5099\u308f\u3063\u305fFirewall\u74b0\u5883\u304c\u30e6\u30fc\u30b6\u306b\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\uff0e\u3057\u304b\u3082\u6a5f\u80fd\u304c\u975e\u5e38\u306b\u9650\u5b9a\u7684\u3068\u306f\u8a00\u3048\u3001\u7ba1\u7406\u30b3\u30f3\u30bd\u30fc\u30eb\u306eGUI\u753b\u9762\u304b\u3089\u7c21\u5358\u306b\u5916\u90e8\u30a2\u30af\u30bb\u30b9\u3092\u906e\u65ad\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3060\uff0e\u524d\u306e\u8a18\u4e8b\u3067\u3053\u306e\u4eee\u60f3\u57fa\u76e4\u5074\u306eFirewall\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u3066KUSANAGI\u306e\u74b0\u5883\u69cb\u7bc9\u4e2d\u306f\u5916\u90e8\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u3092\u906e\u65ad\u3059\u308b\u8a2d\u5b9a\u306b\u3057\u305f\u306e\u306f\u3053\u306e\u3088\u3046\u306a\u7406\u7531\u306b\u3088\u308b\u3082\u306e\u3060\uff0e<\/p>\r\n<br>\r\n<p>\u6700\u521d\u306e\u74b0\u5883\u8a2d\u5b9a\u3060\u3051\u306f\u4f7f\u3044\u52dd\u624b\u306e\u60aa\u3044\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762\u3092\u4f7f\u308f\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u304c\u3001SSH\u306e\u74b0\u5883\u8a2d\u5b9a\u304c\u6e08\u3081\u3070\u5f8c\u306f\u624b\u8a31\u306ePC\u5074\u304b\u3089SSH\u30ea\u30e2\u30fc\u30c8\u30a2\u30af\u30bb\u30b9\u3092\u901a\u3058\u3066KUSANAGI\u306e\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3060\uff0e<\/p>\r\n<br>\r\n<h4>ConoHa API\u3092\u4f7f\u3063\u3066\u307f\u308b<\/h4>\r\n<br>\r\n<p>ConoHa API\u306fOpenStack\u3092\u30d9\u30fc\u30b9\u306b\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001OpenStack\u306b\u5bfe\u5fdc\u3057\u305f\u5404\u7a2e\u30c4\u30fc\u30eb\u3092\u7528\u3044\u308b\u3053\u3068\u304c\u53ef\u80fd\u3060\uff0e\u79c1\u306f\u307e\u3060OpenStack\u74b0\u5883\u306b\u7fd2\u719f\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u4eca\u56de\u306fConoHa\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u308bREST API \u3092\u4f7f\u3063\u305f\u65b9\u6cd5\u3067\u8a2d\u5b9a\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3059\u308b\uff0eConoHa\u3000API \u306e\u8aac\u660e\u306f\u4e0b\u8a18\u306e\u30da\u30fc\u30b8\u3092\u53c2\u7167\u3057\u3066\u6b32\u3057\u3044\uff0e<\/p>\r\n<br>\r\n\u3000\u30fb<a href=\"https:\/\/www.conoha.jp\/guide\/apitokens.php\" rel=\"noopener\" target=\"_blank\">API\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e\u30c8\u30fc\u30af\u30f3\u3092\u53d6\u5f97\u3059\u308b<\/a><br>\r\n<br>\r\n\u3000\u30fb<a href=\"https:\/\/www.conoha.jp\/docs\/identity-post_tokens.html\" rel=\"noopener\" target=\"_blank\">\u30c8\u30fc\u30af\u30f3\u767a\u884c &#8211; Identity API v2.0<\/a> <br>\r\n<br>\r\n<p>REST API\u3092\u547c\u3073\u51fa\u3059\u65b9\u6cd5\u306f\u5e7e\u3064\u3082\u3042\u308b\u304c\u3001\u4eca\u56de\u306fUNIX\u7cfb\u306eOS\u3067\u3042\u308c\u3070\u624b\u8efd\u306b\u5229\u7528\u53ef\u80fd\u306a &#8220;curl&#8221; \u30b3\u30de\u30f3\u30c9\u3092\u7528\u3044\u3066\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3059\u308b\uff0e\u30c8\u30fc\u30af\u30f3\u306e\u53d6\u5f97\u65b9\u6cd5\u306f\u4e0a\u8a18\u306e\u30da\u30fc\u30b8\u306b\u8aac\u660e\u304c\u3042\u308b\u306e\u3067\u3053\u3053\u3067\u306f\u8a73\u3057\u304f\u8aac\u660e\u3057\u306a\u3044\uff0e<\/p>\r\n<br>\r\n<p>\u5148\u305a\u6700\u521d\u306b\u7ba1\u7406\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3001\u8a72\u5f53\u3059\u308bVPS\u306eAPI\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0e\u30c6\u30ca\u30f3\u30c8ID\u3068API\u30e6\u30fc\u30b6\u30fc\u540d\u304a\u3088\u3073\u30d1\u30b9\u30ef\u30fc\u30c9\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\uff0e\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u4e88\u3081\u81ea\u5206\u3067\u8a2d\u5b9a\u3057\u3066\u7f6e\u304f\u5fc5\u8981\u304c\u3042\u308b\uff0e\u3053\u308c\u3089\u306e\u60c5\u5831\u306f\u6c7a\u3057\u3066\u4ed6\u4eba\u306b\u77e5\u3089\u308c\u306a\u3044\u3088\u3046\u306b\u5927\u5207\u306b\u53d6\u308a\u6271\u3046\u5fc5\u8981\u304c\u3042\u308b\uff0e\u3053\u306e\u60c5\u5831\u304c\u3042\u308c\u3070\u8ab0\u3067\u3082\u52dd\u624b\u306b\u30b5\u30fc\u30d0\u3092\u4f5c\u6210\u3084\u524a\u9664\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u69cb\u6210\u3092\u5909\u3048\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3066\u3057\u307e\u3046\uff0e<\/p>\r\n<br>\r\n<div style=\"width: 100%; margin: 0 auto; text-align: center;\">\r\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2017\/10\/APIBasicInfo-1.png\" alt=\"API Basic Info\" width=\"640\" height=\"838\" class=\"size-full wp-image-6005\" srcset=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2017\/10\/APIBasicInfo-1.png 640w, https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2017\/10\/APIBasicInfo-1-183x240.png 183w, https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2017\/10\/APIBasicInfo-1-489x640.png 489w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/>\r\n<br>\r\n<span>\u5148\u305a\u306f\u7ba1\u7406\u30b3\u30f3\u30bd\u30fc\u30eb\u4e0a\u3067\u81ea\u5206\u306e\u30c6\u30ca\u30f3\u30c8ID\u3068API\u30e6\u30fc\u30b6\u30fc\u540d\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304f<\/span>\r\n<br>\r\n<\/div>\r\n<br>\r\n<p>\u4e0a\u8a18\u306eConoHa\u306e\u30da\u30fc\u30b8\u3067\u306f\u3001curl\u30b3\u30de\u30f3\u30c9\u306b &#8220;-i&#8221; \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u52a0\u3057\u3066\u3001HTTP\u30ec\u30b9\u30dd\u30f3\u30b9\u30d8\u30c3\u30c0\u60c5\u5831\u3092\u51fa\u529b\u3057\u3066\u3044\u308b\u304c\u3001JSON\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3092\u6574\u5f62\u3059\u308b python\u30c4\u30fc\u30eb &#8220;mjson.tool&#8221; \u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3068\u4e0a\u624b\u304f\u51e6\u7406\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u3053\u3053\u3067\u306f &#8220;-i&#8221; \u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u4f7f\u3063\u3066\u3044\u306a\u3044\uff0e<\/p>\r\n<br>\r\n<pre><code class=\"language-Markup\">\r\niMac27:~ yasuaki$ curl -X POST -H \"Content-type: application\/json\"  \\\r\n -d '{\"auth\":{\"passwordCredentials\":{\"username\":\"gncu60000032\",\"password\":\"Himitsu\"},\"tenantId\":\"70b2---------------------061c\"}}' \\\r\n https:\/\/identity.tyo1.conoha.io\/v2.0\/tokens \\\r\n | python -mjson.tool\r\n\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100  2595  100  2466  100   129   2035    106  0:00:01  0:00:01 --:--:--  2034\r\n{\r\n    \"access\": {\r\n        \"metadata\": {\r\n            \"is_admin\": 0,\r\n            \"roles\": [\r\n                \"ea04ba71916e434c8fdc1b9c327f8dae\",\r\n                \"e79e6014598348f192a03f8456a084a3\"\r\n            ]\r\n        },\r\n        \"serviceCatalog\": [\r\n            {\r\n                \"endpoints\": [\r\n                    {\r\n                        \"publicURL\": \"https:\/\/account.tyo1.conoha.io\/v1\/70b2---------------------061c\",\r\n                        \"region\": \"tyo1\"\r\n                    }\r\n                ],\r\n                \"endpoints_links\": [],\r\n                \"name\": \"Account Service\",\r\n                \"type\": \"account\"\r\n            },\r\n            {\r\n                \"endpoints\": [\r\n                    {\r\n                        \"publicURL\": \"https:\/\/compute.tyo1.conoha.io\/v2\/70b2---------------------061c\",\r\n                        \"region\": \"tyo1\"\r\n                    }\r\n\u3000\u3000\uff0e\uff0e\uff0e\r\n\u3000\r\n\u3010\u9014\u4e2d\u7701\u7565\u3011\r\n\r\n\u3000\u3000\uff0e\uff0e\uff0e\r\n                \"endpoints_links\": [],\r\n                \"name\": \"Identity Service\",\r\n                \"type\": \"identity\"\r\n            }\r\n        ],\r\n        \"token\": {\r\n            \"audit_ids\": [\r\n                \"naBbtBS3RKGmGRcmRtGhqw\"\r\n            ],\r\n            \"expires\": \"2017-10-23T14:15:03Z\",          \uff1c\uff1d\uff1d\uff1d\u3000\u3053\u306e\u30c8\u30fc\u30af\u30f3\u304c\u5931\u52b9\u3059\u308b\u6642\u523b\r\n            \"id\": \"8c7e450281ef4f6b82b47389980f8615\",\u3000\u3000\uff1c\uff1d\uff1d\uff1d\u3000\u3053\u308c\u304c\u30c8\u30fc\u30af\u30f3\r\n            \"issued_at\": \"2017-10-22T14:15:03.873407\",\r\n            \"tenant\": {\r\n                \"description\": \"\",\r\n                \"domain_id\": \"gnc\",\r\n                \"enabled\": true,\r\n                \"id\": \"70b2---------------------061c\",\r\n                \"name\": \"gnct60000032\"\r\n            }\r\n        },\r\n        \"user\": {\r\n            \"id\": \"3cb360e4ff6d40d29e14c4762013b0d9\",\r\n            \"name\": \"gncu63000032\",\r\n            \"roles\": [\r\n                {\r\n                    \"name\": \"SwiftOperator\"\r\n                },\r\n                {\r\n                    \"name\": \"_member_\"\r\n                }\r\n            ],\r\n            \"roles_links\": [],\r\n            \"username\": \"gncu60000032\"\r\n        }\r\n    }\r\n}\r\niMac27:~ yasuaki$\r\n<\/code><\/pre>\r\n<br>\r\n<p>\u9577\u3005\u3068\u3057\u305f\u7d50\u679c\u304c\u5e30\u3063\u3066\u304f\u308b\u304c\u3001\u4eca\u56de\u6b32\u3057\u3044\u60c5\u5831\u306f\u5f8c\u306e\u65b9\u306b\u3042\u308b &#8220;id&#8221;: &#8220;8c7e450281ef4f6b82b47389980f8615&#8221; \u3068\u3044\u3046\u884c\u306e\u30b3\u30ed\u30f3\u3092\u631f\u3093\u3060\u53f3\u5074\u90e8\u5206 &#8220;8c7e450281ef4f6b82b47389980f8615&#8221; \u304c\u76ee\u7684\u306e\u30c8\u30fc\u30af\u30f3\u60c5\u5831\u3060\uff0e(\u52ff\u8ad6\u3053\u3053\u306e\u30c6\u30ca\u30f3\u30c8ID\u3068API\u30e6\u30fc\u30b6\u30fc\u540d\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u51fa\u9c48\u76ee\u306a\u306e\u3067\u3053\u306e\u5024\u3092\u4f7f\u7528\u3057\u3066\u3082\u30a8\u30e9\u30fc\u3068\u306a\u308b\u3060\u3051\u3060\uff09<\/p>\r\n<br>\r\n<h4>Network API\u3092\u7528\u3044\u3066\u4eee\u60f3\u57fa\u76e4\u5074Firewall\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b<\/h4>\r\n<br>\r\n<div style=\"width: 100%; margin: 0 auto; text-align: center;\">\r\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2017\/10\/NetworkInfo.png\" alt=\"Network Info\" width=\"664\" height=\"489\" class=\"size-full wp-image-6008\" srcset=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2017\/10\/NetworkInfo.png 664w, https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2017\/10\/NetworkInfo-240x177.png 240w, https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2017\/10\/NetworkInfo-640x471.png 640w\" sizes=\"auto, (max-width: 664px) 100vw, 664px\" \/>\r\n<br>\r\n<span>\u7ba1\u7406\u30b3\u30f3\u30bd\u30fc\u30eb\u4e0a\u3067\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u540d\u306a\u3069\u306e\u60c5\u5831\u3068\u73fe\u5728\u306e\u57fa\u76e4\u5074Firewall\u8a2d\u5b9a\u3092\u78ba\u8a8d<\/span>\r\n<br>\r\n<\/div>\r\n<br>\r\n<p>\u4eca\u56de\u3084\u308a\u305f\u3044\u4e8b\u306f\u6a19\u6e96\u7684\u306aSSH\u30dd\u30fc\u30c8(TCP\/22\uff09\u3067\u306f\u306a\u304f\u3001\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u5909\u66f4\u3057\u305fSSH\uff08TCP\/xxxxx\uff09\u306e\u5229\u7528\u304c\u53ef\u80fd\u3068\u306a\u308b\u3088\u3046\u306b\u3001\u4eee\u60f3\u57fa\u76e4\u5074\u306eFirewall\u306b\u7a74\u3092\u958b\u3051\u308b\u3053\u3068\u3060\uff0e\u6a19\u6e96\u7684\u306aSSH\u30dd\u30fc\u30c8(TCP\/22\uff09\u306b\u95a2\u3057\u3066\u306fConoHa\u306e\u7ba1\u7406\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762\u3067\u30c1\u30a7\u30c3\u30af\u30de\u30fc\u30af\u3092\u4ed8\u3051\u308b(&#8220;ON&#8221;)\u3060\u3051\u3067\u7c21\u5358\u306b\u8a2d\u5b9a\u3067\u304d\u308b\u304c\u3001\u6a19\u6e96\u304b\u3089\u5916\u308c\u308b\u4eca\u56de\u306eSSH\u30dd\u30fc\u30c8\u756a\u53f7\u5909\u66f4\u306fConoHa\u306eNetwork\u8a2d\u5b9aAPI\u3092\u99c6\u4f7f\u3057\u3066\u8a2d\u5b9a\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e<\/p>\r\n<br>\r\n<p>ConoHa VPS\u306e\u4eee\u60f3\u57fa\u76e4\u5074\u306eFirewall\u3092\u8a2d\u5b9a\u3059\u308b\u306b\u306f\u3001\u5148\u305a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u306b\u5bfe\u3057\u3066\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30eb\u30fc\u30eb\u3092\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8ffd\u52a0\u3059\u308b\u4f5c\u696d\u304c\u5fc5\u8981\u306b\u306a\u308b\uff0e\u3053\u306e\u3088\u3046\u306b\u3057\u3066\u4f5c\u6210\u3055\u308c\u305f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u3092\u8a72\u5f53\u3059\u308b\u30dd\u30fc\u30c8\u306b\u9069\u7528\u3059\u308b\u3068\u3044\u3046\u624b\u9806\u304c\u5fc5\u8981\u306b\u306a\u308b\uff0e<\/p>\r\n<br>\r\n<h5>1. \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u306e\u8a2d\u5b9a\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b<\/h5>\r\n<br>\r\n \u30fb<a href=\"https:\/\/www.conoha.jp\/docs\/neutron-get_secgroups_list.html\" rel=\"noopener\" target=\"_blank\">\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u4e00\u89a7\u53d6\u5f97 &#8211; Network API v2.0<\/a><br>\r\n<br>\r\n<p>\u5148\u305a\u306f\u81ea\u5206\u306eConoHa\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u7d10\u4ed8\u3044\u3066\u3044\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u306e\u72b6\u614b\u3092\u8abf\u3079\u3066\u307f\u3088\u3046\uff0e\u30c6\u30ca\u30f3\u30c8ID\u306fConoHa\u30a2\u30ab\u30a6\u30f3\u30c8\u3068\u7d10\u4ed8\u3044\u3066\u304a\u308a\u3001\u521d\u671f\u72b6\u614b\u3067\u5e7e\u3064\u304b\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u304c\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u7b48\u3067\u3042\u308b\uff0e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u306f\u500b\u3005\u306eVPS\u30b5\u30fc\u30d0\u5358\u4f4d\u3067\u306f\u7121\u304f\u3001ConoHa\u30e6\u30fc\u30b6\u30a2\u30ab\u30a6\u30f3\u30c8\uff08\u30c6\u30ca\u30f3\u30c8ID\uff09\u6bce\u306b\u4f5c\u6210\u3055\u308c\u308b\uff0e\u3064\u307e\u308a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u3092\uff11\u3064\u4f5c\u6210\u3057\u3066\u304a\u3051\u3070\u3001\u30e6\u30fc\u30b6\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u7d10\u4ed8\u304f\u5168\u3066\u306eVPS\u30b5\u30fc\u30d0\u306b\u305d\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u3092\u9069\u7528\u3059\u308b\u4e8b\u304c\u53ef\u80fd\u3060\uff0e<\/p>\r\n<br>\r\n<p>\u79c1\u306e\u5834\u5408\u306f\u8907\u6570\u306eVPS\u30b5\u30fc\u30d0\u3092\u8907\u6570\u306e\u30ea\u30fc\u30b8\u30e7\u30f3\u3067\u7a3c\u50cd\u3055\u305b\u3066\u304a\u308a\u3001\u65e2\u306b\u8272\u3005\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u306e\u4f5c\u6210\u3092\u884c\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u6ca2\u5c71\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u8a2d\u5b9a\u304c\u767b\u9332\u3055\u308c\u3066\u3057\u307e\u3063\u3066\u3044\u308b\uff0e\u4e0b\u8a18\u306b\u793a\u3059\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u4e00\u89a7\u306e\u8868\u793a\u7d50\u679c\u306f\u3001\u7ba1\u7406\u30b3\u30f3\u30bd\u30fc\u30eb\u306e\u300e\u63a5\u7d9a\u8a31\u53ef\u30dd\u30fc\u30c8\u300f\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3068\u3057\u3066\u6a19\u6e96\u3067\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u3060\u3051\u3092\u629c\u7c8b\u3057\u3066\u8868\u793a\u3057\u3066\u3042\u308b\uff0e\u5b9f\u969b\u306f\u3053\u3053\u3067\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u4ee5\u5916\u306b\u3082\u81ea\u5206\u3067\u767b\u9332\u3057\u305f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u304c\u767b\u9332\u3055\u308c\u3066\u3044\u308b\uff0e<\/p>\r\n<br>\r\n<pre><code class=\"language-Markup\">\r\n Y2MBAir:~ yasuaki$ curl -X GET \\\r\n -H \"Accept: application\/json\" \\\r\n -H \"X-Auth-Token: 45--------------------------d65c\" \\\r\n  https:\/\/networking.tyo1.conoha.io\/v2.0\/security-groups \\ \r\n | python -mjson.tool\r\n \r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100 12499    0 12499    0     0  14328      0 --:--:-- --:--:-- --:--:-- 14317\r\n{\r\n    \"security_groups\": [\r\n        {\r\n            \"description\": \"gncs-ipv6-ssh\",\r\n            \"id\": \"1bc16c48-17da-4935-a492-9a1b3d569a49\",\r\n            \"name\": \"gncs-ipv6-ssh\",\r\n            \"security_group_rules\": [\r\n                {\r\n                    \"direction\": \"ingress\",\r\n                    \"ethertype\": \"IPv6\",\r\n                    \"id\": \"043ab252-2222-42e9-826c-6d56694e114f\",\r\n                    \"port_range_max\": 22,\r\n                    \"port_range_min\": 22,\r\n                    \"protocol\": \"tcp\",\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"1bc16c48-17da-4935-a492-9a1b3d569a49\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                },\r\n                {\r\n                    \"direction\": \"egress\",\r\n                    \"ethertype\": \"IPv6\",\r\n                    \"id\": \"951d5990-8aca-41ce-b6d2-5127eb5f20bd\",\r\n                    \"port_range_max\": null,\r\n                    \"port_range_min\": null,\r\n                    \"protocol\": null,\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"1bc16c48-17da-4935-a492-9a1b3d569a49\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                },\r\n                {\r\n                    \"direction\": \"egress\",\r\n                    \"ethertype\": \"IPv4\",\r\n                    \"id\": \"e6ef6b58-f787-48b0-a8b8-eca3d86d12ae\",\r\n                    \"port_range_max\": null,\r\n                    \"port_range_min\": null,\r\n                    \"protocol\": null,\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"1bc16c48-17da-4935-a492-9a1b3d569a49\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                }\r\n            ],\r\n            \"tenant_id\": \"70b22-----------------------061c\"\r\n        },\r\n        {\r\n            \"description\": \"default\",\r\n            \"id\": \"34daed51-a8a0-48d7-939b-895d7453b578\",\r\n            \"name\": \"default\",\r\n            \"security_group_rules\": [\r\n                {\r\n                    \"direction\": \"egress\",\r\n                    \"ethertype\": \"IPv4\",\r\n                    \"id\": \"0fd84f12-ad12-4dd2-9315-50a5c805d013\",\r\n                    \"port_range_max\": null,\r\n                    \"port_range_min\": null,\r\n                    \"protocol\": null,\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"34daed51-a8a0-48d7-939b-895d7453b578\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                },\r\n                {\r\n                    \"direction\": \"ingress\",\r\n                    \"ethertype\": \"IPv4\",\r\n                    \"id\": \"1f0189f8-40a9-416b-973f-9066ea77f254\",\r\n                    \"port_range_max\": null,\r\n                    \"port_range_min\": null,\r\n                    \"protocol\": null,\r\n                    \"remote_group_id\": \"34daed51-a8a0-48d7-939b-895d7453b578\",\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"34daed51-a8a0-48d7-939b-895d7453b578\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                },\r\n                {\r\n                    \"direction\": \"egress\",\r\n                    \"ethertype\": \"IPv6\",\r\n                    \"id\": \"3c3e77f9-805f-4974-b101-1bfef3a54f79\",\r\n                    \"port_range_max\": null,\r\n                    \"port_range_min\": null,\r\n                    \"protocol\": null,\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"34daed51-a8a0-48d7-939b-895d7453b578\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                },\r\n                {\r\n                    \"direction\": \"ingress\",\r\n                    \"ethertype\": \"IPv6\",\r\n                    \"id\": \"df8f0de1-af27-4618-88c5-2ac5d0f65fbf\",\r\n                    \"port_range_max\": null,\r\n                    \"port_range_min\": null,\r\n                    \"protocol\": null,\r\n                    \"remote_group_id\": \"34daed51-a8a0-48d7-939b-895d7453b578\",\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"34daed51-a8a0-48d7-939b-895d7453b578\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                }\r\n            ],\r\n            \"tenant_id\": \"70b22-----------------------061c\"\r\n        },\r\n        {\r\n            \"description\": \"gncs-ipv4-all\",\r\n            \"id\": \"7745dff0-7ba5-437d-a137-768209167355\",\r\n            \"name\": \"gncs-ipv4-all\",\r\n            \"security_group_rules\": [\r\n                {\r\n                    \"direction\": \"egress\",\r\n                    \"ethertype\": \"IPv6\",\r\n                    \"id\": \"67d48be3-ad7b-4ac8-bf64-a7b04fe95f69\",\r\n                    \"port_range_max\": null,\r\n                    \"port_range_min\": null,\r\n                    \"protocol\": null,\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"7745dff0-7ba5-437d-a137-768209167355\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                },\r\n                {\r\n                    \"direction\": \"ingress\",\r\n                    \"ethertype\": \"IPv4\",\r\n                    \"id\": \"8daa986f-e26a-40ab-b264-2e3704f14fdb\",\r\n                    \"port_range_max\": null,\r\n                    \"port_range_min\": null,\r\n                    \"protocol\": null,\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"7745dff0-7ba5-437d-a137-768209167355\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                },\r\n                {\r\n                    \"direction\": \"egress\",\r\n                    \"ethertype\": \"IPv4\",\r\n                    \"id\": \"b74da33b-647e-450b-ad86-b43f5a3b9122\",\r\n                    \"port_range_max\": null,\r\n                    \"port_range_min\": null,\r\n                    \"protocol\": null,\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"7745dff0-7ba5-437d-a137-768209167355\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                }\r\n            ],\r\n            \"tenant_id\": \"70b22-----------------------061c\"\r\n        },\r\n        {\r\n            \"description\": \"gncs-ipv4-ssh\",\r\n            \"id\": \"be709649-a0c3-47cf-b2ba-73b8cf20e7e3\",\r\n            \"name\": \"gncs-ipv4-ssh\",\r\n            \"security_group_rules\": [\r\n                {\r\n                    \"direction\": \"egress\",\r\n                    \"ethertype\": \"IPv4\",\r\n                    \"id\": \"0f682bc8-0b10-47de-bd77-2d7378c0c28d\",\r\n                    \"port_range_max\": null,\r\n                    \"port_range_min\": null,\r\n                    \"protocol\": null,\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"be709649-a0c3-47cf-b2ba-73b8cf20e7e3\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                },\r\n                {\r\n                    \"direction\": \"ingress\",\r\n                    \"ethertype\": \"IPv4\",\r\n                    \"id\": \"12f31613-b34c-4175-8f94-3e9299baffdc\",\r\n                    \"port_range_max\": 22,\r\n                    \"port_range_min\": 22,\r\n                    \"protocol\": \"tcp\",\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"be709649-a0c3-47cf-b2ba-73b8cf20e7e3\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                },\r\n                {\r\n                    \"direction\": \"egress\",\r\n                    \"ethertype\": \"IPv6\",\r\n                    \"id\": \"a6db9a69-c387-4202-bf15-6b12101f434b\",\r\n                    \"port_range_max\": null,\r\n                    \"port_range_min\": null,\r\n                    \"protocol\": null,\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"be709649-a0c3-47cf-b2ba-73b8cf20e7e3\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                }\r\n            ],\r\n            \"tenant_id\": \"70b22-----------------------061c\"\r\n        },\r\n        {\r\n            \"description\": \"gncs-ipv4-web\",\r\n            \"id\": \"ccfd68c7-ed70-4484-8b49-fb8ed07f1f53\",\r\n            \"name\": \"gncs-ipv4-web\",\r\n            \"security_group_rules\": [\r\n                {\r\n                    \"direction\": \"ingress\",\r\n                    \"ethertype\": \"IPv4\",\r\n                    \"id\": \"343d11f2-cbc1-499b-8a87-8d6b83576be5\",\r\n                    \"port_range_max\": 80,\r\n                    \"port_range_min\": 80,\r\n                    \"protocol\": \"tcp\",\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"ccfd68c7-ed70-4484-8b49-fb8ed07f1f53\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                },\r\n                {\r\n                    \"direction\": \"ingress\",\r\n                    \"ethertype\": \"IPv4\",\r\n                    \"id\": \"6d766752-228b-4b2d-b4ad-a45a194136ac\",\r\n                    \"port_range_max\": 20,\r\n                    \"port_range_min\": 20,\r\n                    \"protocol\": \"tcp\",\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"ccfd68c7-ed70-4484-8b49-fb8ed07f1f53\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                },\r\n                {\r\n                    \"direction\": \"egress\",\r\n                    \"ethertype\": \"IPv4\",\r\n                    \"id\": \"8c27fe00-2b43-4916-8ad7-436ab9e4cdd3\",\r\n                    \"port_range_max\": null,\r\n                    \"port_range_min\": null,\r\n                    \"protocol\": null,\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"ccfd68c7-ed70-4484-8b49-fb8ed07f1f53\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                },\r\n                {\r\n                    \"direction\": \"ingress\",\r\n                    \"ethertype\": \"IPv4\",\r\n                    \"id\": \"aa614c0f-e5e5-4024-8f1c-0d3339543ac2\",\r\n                    \"port_range_max\": 443,\r\n                    \"port_range_min\": 443,\r\n                    \"protocol\": \"tcp\",\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"ccfd68c7-ed70-4484-8b49-fb8ed07f1f53\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                },\r\n                {\r\n                    \"direction\": \"ingress\",\r\n                    \"ethertype\": \"IPv4\",\r\n                    \"id\": \"b42e73f9-2cba-4cd7-b913-0fd40212d740\",\r\n                    \"port_range_max\": 21,\r\n                    \"port_range_min\": 21,\r\n                    \"protocol\": \"tcp\",\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"ccfd68c7-ed70-4484-8b49-fb8ed07f1f53\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                },\r\n                {\r\n                    \"direction\": \"egress\",\r\n                    \"ethertype\": \"IPv6\",\r\n                    \"id\": \"e645502f-d300-478a-90bf-9395cdfe3f7c\",\r\n                    \"port_range_max\": null,\r\n                    \"port_range_min\": null,\r\n                    \"protocol\": null,\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"ccfd68c7-ed70-4484-8b49-fb8ed07f1f53\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                }\r\n            ],\r\n            \"tenant_id\": \"70b22-----------------------061c\"\r\n        },\r\n        {\r\n            \"description\": \"gncs-ipv6-all\",\r\n            \"id\": \"d41a76a7-63f7-40d2-abd7-6e2ff98482e3\",\r\n            \"name\": \"gncs-ipv6-all\",\r\n            \"security_group_rules\": [\r\n                {\r\n                    \"direction\": \"egress\",\r\n                    \"ethertype\": \"IPv4\",\r\n                    \"id\": \"25e61411-d789-4ea9-be94-65856ee0e85a\",\r\n                    \"port_range_max\": null,\r\n                    \"port_range_min\": null,\r\n                    \"protocol\": null,\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"d41a76a7-63f7-40d2-abd7-6e2ff98482e3\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                },\r\n                {\r\n                    \"direction\": \"ingress\",\r\n                    \"ethertype\": \"IPv6\",\r\n                    \"id\": \"6a21c121-c7a4-4fb1-bda3-59b5efc221e4\",\r\n                    \"port_range_max\": null,\r\n                    \"port_range_min\": null,\r\n                    \"protocol\": null,\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"d41a76a7-63f7-40d2-abd7-6e2ff98482e3\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                },\r\n                {\r\n                    \"direction\": \"egress\",\r\n                    \"ethertype\": \"IPv6\",\r\n                    \"id\": \"babccbf9-f88e-48c5-ba72-3001fc35f89d\",\r\n                    \"port_range_max\": null,\r\n                    \"port_range_min\": null,\r\n                    \"protocol\": null,\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"d41a76a7-63f7-40d2-abd7-6e2ff98482e3\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                }\r\n            ],\r\n            \"tenant_id\": \"70b22-----------------------061c\"\r\n        }\r\n    ]\r\n}\r\nY2MBAir:~ yasuaki$ \r\n<\/code><\/pre>\r\n<br>\r\n<p>\u8868\u793a\u3055\u308c\u305f\u7d50\u679c\u306e\u898b\u65b9\u3067\u3042\u308b\u304c\u3001brace \u3067\u56f2\u307e\u308c\u305f\u7bc4\u56f2\u304c\uff11\u3064\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u3067\u3001&#8221;gncs-ipv6-ssh&#8221;\u3000\u3068\u3044\u3046\u540d\u524d\u304c\u4ed8\u3051\u3089\u308c\u3066\u3044\u308b\uff0e\uff11\u3064\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u4e2d\u306b\u306f\u8907\u6570\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30eb\u30fc\u30eb\u304c\u542b\u307e\u308c\u3066\u3044\u308b\uff0e<br>\r\n<br>\r\n<pre><code class=\"language-Markup\">\r\n        {\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000<=== \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\r\n            \"description\": \"gncs-ipv6-ssh\",\r\n            \"id\": \"1bc16c48-17da-4935-a492-9a1b3d569a49\",\r\n            \"name\": \"gncs-ipv6-ssh\",\r\n            \"security_group_rules\": [\r\n                {\u3000                                                 <=== \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30eb\u30fc\u30eb\r\n                    \"direction\": \"ingress\",\r\n                    \"ethertype\": \"IPv6\",\r\n                    \"id\": \"043ab252-2222-42e9-826c-6d56694e114f\",\r\n                    \"port_range_max\": 22,\r\n                    \"port_range_min\": 22,\r\n                    \"protocol\": \"tcp\",\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"1bc16c48-17da-4935-a492-9a1b3d569a49\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                },\r\n                {\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000<=== \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30eb\u30fc\u30eb\r\n                    \"direction\": \"egress\",\r\n                    \"ethertype\": \"IPv6\",\r\n                    \"id\": \"951d5990-8aca-41ce-b6d2-5127eb5f20bd\",\r\n                    \"port_range_max\": null,\r\n                    \"port_range_min\": null,\r\n                    \"protocol\": null,\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"1bc16c48-17da-4935-a492-9a1b3d569a49\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                },\r\n                {\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000<=== \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30eb\u30fc\u30eb\r\n                    \"direction\": \"egress\",\r\n                    \"ethertype\": \"IPv4\",\r\n                    \"id\": \"e6ef6b58-f787-48b0-a8b8-eca3d86d12ae\",\r\n                    \"port_range_max\": null,\r\n                    \"port_range_min\": null,\r\n                    \"protocol\": null,\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"1bc16c48-17da-4935-a492-9a1b3d569a49\",\r\n                    \"tenant_id\": \"70b22-----------------------061c\"\r\n                }\r\n            ],\r\n            \"tenant_id\": \"70b22-----------------------061c\"\r\n        },\r\n\r\n<\/code><\/pre>\r\n<br>\r\n<p>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30eb\u30fc\u30eb\u306b\u306f\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066<br>\r\n<br>\r\n\u3000\u3000\"direction\" : \u5165\u51fa\u529b\u306e\u65b9\u5411\uff08ingress: inbound, egress: outbound\uff09\u3001<br>\r\n\u3000\u3000\"ethertype\" : IPv4\/IPv6 <br>\r\n\u3000\u3000\"port_range_max\", \"port_range_min\" : \u30dd\u30fc\u30c8\u756a\u53f7\u306e\u7bc4\u56f2<br>\r\n\u3000\u3000\"protocol\": TCP\/UDP\/ICMP \u306a\u3069\u306eIP\u30d7\u30ed\u30c8\u30b3\u30eb\u60c5\u5831<br>\r\n<br>\r\n\u306a\u3069\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\uff0e<\/p>\r\n<br>\r\n<p>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30eb\u30fc\u30eb\u306e\u5404\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u8a73\u7d30\u306f\u3001<br>\r\n<br>\r\n\u3000\u30fb<a href=\"https:\/\/www.conoha.jp\/docs\/neutron-create_rule_on_secgroup.html\" rel=\"noopener\" target=\"_blank\">\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7 \u30eb\u30fc\u30eb\u4f5c\u6210<\/a> - Network API v2.0<br>\r\n<br>\r\n\u3092\u53c2\u7167\u3057\u3066\u6b32\u3057\u3044\uff0e\uff08\u4f46\u3057\u3001\u3042\u307e\u308a\u8a73\u3057\u3044\u60c5\u5831\u306f\u8a18\u8f09\u3055\u308c\u3066\u3044\u306a\u3044\uff09<\/p>\r\n<br>\r\n<p>\u4e0a\u8a18\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u3067\u306f\u3001IPv6\u3067\u306eSSH(TCP\/22) \u63a5\u7d9a\uff08inbound)\u3092\u8a31\u53ef\u3059\u308b\u8a2d\u5b9a\u3060\uff0eoutbound\u65b9\u5411\u306eprotocol\u306f\"null\" \u304c\u8a2d\u5b9a\u3055\u308c\u3066\u304a\u308a\u3001\u3053\u308c\u306f outbound\u65b9\u5411\u306b\u3064\u3044\u3066\u306f\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u306a\u3044\uff08\u8a31\u53ef\uff09\u3068\u3044\u3046\u4e8b\u3060\uff0eIPv6\u7528\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u306e\u8a2d\u5b9a\u306e\u4e2d\u306b\u3001IPv4\u306eoutbound\u65b9\u5411\u306e\u8a31\u53ef\u8a2d\u5b9a\u30eb\u30fc\u30eb\u304c\u6700\u5f8c\u306b\u542b\u307e\u308c\u3066\u3044\u308b\uff0e<\/p>\r\n<br>\r\n<p> \"description\" \u30d5\u30a3\u30fc\u30eb\u30c9\u304c \"gncs-\" \u3067\u59cb\u307e\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u306f\u3001\u7ba1\u7406\u30b3\u30f3\u30bd\u30eb\u306e \u201d\u63a5\u7d9a\u8a31\u53ef\u30dd\u30fc\u30c8\u201d\u3000\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u5404\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d3\u30b9\u306b\u5bfe\u5fdc\u3059\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u3060\uff0e\u4f8b\u3068\u3057\u3066\u3000IPV4: RDP (3389) \u306e\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3092ON\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u4e0b\u8a18\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u304c\u8ffd\u52a0\u767b\u9332\u3055\u308c\u308b\uff0e<\/p>\r\n<br>\r\n<pre><code class=\"language-Markup\">\r\n        {\r\n            \"description\": \"gncs-ipv4-rdp\",\r\n            \"id\": \"df7a63f0-215c-4d7e-9ee9-f6c7bc6f13fc\",\r\n            \"name\": \"gncs-ipv4-rdp\",\r\n            \"security_group_rules\": [\r\n                {\r\n                    \"direction\": \"ingress\",\r\n                    \"ethertype\": \"IPv4\",\r\n                    \"id\": \"125fbd97-b1d2-4825-94fd-58209b59d4c3\",\r\n                    \"port_range_max\": 3389,\r\n                    \"port_range_min\": 3389,\r\n                    \"protocol\": \"tcp\",\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"df7a63f0-215c-4d7e-9ee9-f6c7bc6f13fc\",\r\n                    \"tenant_id\": \"70b2---------------------061c\"\r\n                },\r\n                {\r\n                    \"direction\": \"egress\",\r\n                    \"ethertype\": \"IPv4\",\r\n                    \"id\": \"393d9309-01b4-4745-a05e-05cc51853026\",\r\n                    \"port_range_max\": null,\r\n                    \"port_range_min\": null,\r\n                    \"protocol\": null,\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"df7a63f0-215c-4d7e-9ee9-f6c7bc6f13fc\",\r\n                    \"tenant_id\": \"70b2---------------------061c\"\r\n                },\r\n                {\r\n                    \"direction\": \"egress\",\r\n                    \"ethertype\": \"IPv6\",\r\n                    \"id\": \"eb880250-036d-48de-837c-40e90e9abb1f\",\r\n                    \"port_range_max\": null,\r\n                    \"port_range_min\": null,\r\n                    \"protocol\": null,\r\n                    \"remote_group_id\": null,\r\n                    \"remote_ip_prefix\": null,\r\n                    \"security_group_id\": \"df7a63f0-215c-4d7e-9ee9-f6c7bc6f13fc\",\r\n                    \"tenant_id\": \"70b2---------------------061c\"\r\n                }\r\n            ],\r\n\r\n<\/code><\/pre>\r\n<br>\r\n<p>conoHa\u306eAPI\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u306f\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u95a2\u3059\u308b\u7c21\u5358\u306a\u8aac\u660e\u3068\u4f8b\u3057\u304b\u8a18\u8f09\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30eb\u30fc\u30eb\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u540c\u58eb\u306e\u4f9d\u5b58\u95a2\u4fc2\u304c\u826f\u304f\u5206\u304b\u3089\u306a\u3044\uff0e<\/p>\r\n<br>\r\n<p>\u7ba1\u7406\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762\u3067\u3001\u63a5\u7d9a\u8a31\u53ef\u30dd\u30fc\u30c8\u306e\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u9805\u76ee\u306b\u30c1\u30a7\u30c3\u30af\u30de\u30fc\u30af\u3092\u4ed8\u3051\u308b\u3068\u3001\u81ea\u52d5\u7684\u306b\u305d\u306e\u9805\u76ee\u306b\u9069\u5fdc\u3057\u305f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u304c\u30dd\u30fc\u30c8\u306b\u8ffd\u52a0\u3055\u308c\u308b\uff0e\u4e00\u5ea6\u30c1\u30a7\u30c3\u30af\u30de\u30fc\u30af\u3092\u4ed8\u3051\u305f\u9805\u76ee\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u306f\u753b\u9762\u4e0a\u3067\u30c1\u30a7\u30c3\u30af\u30de\u30fc\u30af\u3092\u5916\u3059\u3068\u3001\u30dd\u30fc\u30c8\u306e\u8a2d\u5b9a\u304b\u3089\u306f\u9664\u5916\u3055\u308c\u308b\u304c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u306e\u30ea\u30b9\u30c8\u304b\u3089\u306f\u524a\u9664\u3055\u308c\u306a\u3044\uff0e\u81ea\u5206\u3067API\u3092\u53e9\u3044\u3066\u524a\u9664\u3057\u306a\u3044\u9650\u308a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u306f\u6b8b\u308a\u7d9a\u3051\u308b\u3088\u3046\u3060\uff0e\u4f7f\u7528\u3059\u308b\u4e88\u5b9a\u306e\u7121\u3044\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u304c\u767b\u9332\u3055\u308c\u3066\u3044\u3066\u3082\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u7279\u306b\u6c17\u306b\u3059\u308b\u5fc5\u8981\u306f\u7121\u3044\uff0e\u30b5\u30fc\u30d0\u306e\u30dd\u30fc\u30c8\u3068\u3053\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3068\u304c\u7d10\u4ed8\u3051\u3089\u308c\u305f\u72b6\u614b\u3067\u306a\u3051\u308c\u3070\u3001\u3053\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u306f\u4f5c\u7528\u3057\u306a\u3044\u304b\u3089\u3060\uff0e<\/p>\r\n<br>\r\n<p>\"default\" \u3068\u3044\u3046\u540d\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u306f\u5e38\u306b\u30dd\u30fc\u30c8\u306b\u7d10\u4ed8\u3051\u3089\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3001\u5168\u3066\u306e\u63a5\u7d9a\u8a31\u53ef\u30dd\u30fc\u30c8\u306e\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3092\u5916\u3059\u3068\u3001\u3053\u306e\"default\" \u3060\u3051\u304c\u6b8b\u3063\u305f\u72b6\u614b\u3068\u306a\u308b\uff0e\u63a5\u7d9a\u8a31\u53ef\u30dd\u30fc\u30c8\u306eSSH (22\/TCP: IPv4)\u306e\u30c1\u30a7\u30c3\u30af\u3092\u4ed8\u3051\u308b\u3068\u3001\u30dd\u30fc\u30c8\u306b\u7d10\u3065\u304f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u306f \"default\" \u3068 SSH (22\/TCP: IPv4)\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3068\u306a\u308b\uff0e<\/p>\r\n<br>\r\n<p>\u8aac\u660e\u304c\u9577\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3001\u3053\u306e\u7d9a\u304d\u306f\u300eWordPress KUSANAGI \u74b0\u5883\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\uff08\u305d\u306e\uff13\uff09\u300f\u3067\u8aac\u660e\u3059\u308b\u3053\u3068\u306b\u3059\u308b\uff0e<\/p>\r\n<br>\u3000\u3000","protected":false},"excerpt":{"rendered":"KUSANAGI\u306e\u74b0\u5883\u8a2d\u5b9a\u3092\u884c\u3046\u524d\u306b\u3001ConoHa VPS\u306e\u4eee\u60f3\u57fa\u76e4\u5074\u306eFirewall\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u3066\u3088\u308a\u30bb\u30ad\u30e5\u30a2\u306a\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3066\u304a\u304f\u3053\u3068\u306b\u3059\u308b\uff0e","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[7,11,12],"tags":[780,783,782,688],"class_list":["post-5985","post","type-post","status-publish","format-standard","hentry","category-inet","category-web","category-wp","tag-conoha-vps","tag-firewall","tag-kusanagi","tag-wp"],"_links":{"self":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/posts\/5985","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/comments?post=5985"}],"version-history":[{"count":2,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/posts\/5985\/revisions"}],"predecessor-version":[{"id":6032,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/posts\/5985\/revisions\/6032"}],"wp:attachment":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/media?parent=5985"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/categories?post=5985"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/tags?post=5985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}