{"id":8745,"date":"2019-12-13T13:08:07","date_gmt":"2019-12-13T04:08:07","guid":{"rendered":"https:\/\/itport.cloud\/?p=8745"},"modified":"2019-12-16T16:51:39","modified_gmt":"2019-12-16T07:51:39","slug":"oracle-cloud","status":"publish","type":"post","link":"https:\/\/itport.cloud\/?p=8745","title":{"rendered":"Oracle Cloud\u300cREST API\u300d\u3092\u5229\u7528\u3059\u308b\uff08OCI-CURL\uff09"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"e79baee6aca1-1\">\u76ee\u6b21<\/h2>\n\n\n\n<p><a href=\"#1\">\u306f\u3058\u3081\u306b<\/a><br><a href=\"#2\">REST API\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3082\u306e<\/a><br><a href=\"#3\">OCI-CURL\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3068\u8a2d\u5b9a<\/a><br><a href=\"#4\">OCI-CURL\u306e\u5b9f\u884c<\/a><br><a href=\"#5\">\u304a\u308f\u308a\u306b<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"1\">\u306f\u3058\u3081\u306b<\/h2>\n\n\n\n<p>Oracle Cloud \u306e\u7ba1\u7406\u753b\u9762\u4e0a\u3067\u64cd\u4f5c\u3067\u304d\u308b\u3053\u3068\u306f Oracle Cloud Infrastructure API\uff08OCI API\uff09\u3067\u540c\u69d8\u3001\u3082\u3057\u304f\u306f\u305d\u308c\u4ee5\u4e0a\u306e\u7d30\u304b\u306a\u64cd\u4f5c\u304c\u53ef\u80fd\u3067\u3059\u3002<br>Web\u306e\u7ba1\u7406\u753b\u9762\u306f\u7c21\u7565\u5316\u3057\u3066\u3044\u308b\u90e8\u5206\u3082\u3042\u308a\u3001\u753b\u9762\u4e0a\u3067\u64cd\u4f5c\u3067\u304d\u306a\u3044\u7d30\u304b\u306a\u8a2d\u5b9a\u306a\u3069\u3082OCI API\u3067\u306f\u64cd\u4f5c\u304c\u53ef\u80fd\u306a\u305f\u3081\u975e\u5e38\u306b\u4fbf\u5229\u3067\u3059\u3002<br><br>\u305f\u3060\u3001CUI\u4e0a\u306e\u64cd\u4f5c\u306e\u5834\u5408\u306f\u3001REST API\u3067\u306f\u7121\u304f\u7c21\u5358\u306b\u5229\u7528\u304c\u3067\u304d\u308bOCI-CLI\uff08\u30b3\u30de\u30f3\u30c9\u30fb\u30e9\u30a4\u30f3\u30fb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\uff09\u3092\u4f7f\u3046\u3053\u3068\u304c\u591a\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<br><br>\u79c1\u304cOCI\u306eREST API\u3092\u5229\u7528\u3057\u3088\u3046\u3068\u601d\u3063\u305f\u304d\u3063\u304b\u3051\u306f\u3001OCI-CLI\u3060\u3068\u3069\u3046\u3057\u3066\u3082\u4e0a\u624b\u304f\u52d5\u304b\u306a\u3044\u30b3\u30de\u30f3\u30c9\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u304b\u306a\u308a\u30cf\u30de\u3063\u305f\u306e\u3067\u3059\u304c\u8272\u3005\u8a66\u884c\u3057\u305f\u7d50\u679c\u3001OCI API\u3067\u671f\u5f85\u901a\u308a\u306e\u5024\u304c\u5f97\u3089\u308c\u307e\u3057\u305f\u3002<br><br>\u3053\u308c\u3092\u6a5f\u306bREST API\u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5\u3092\u4eca\u56de\u306f\u8a18\u8f09\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br>\u4ee5\u4e0b\u306f\u3001OCI API\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u53c2\u8003\u306b\u3057\u305f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u306a\u308a\u307e\u3059\u3002<br><br><strong>API Documentation<\/strong><br><a rel=\"noreferrer noopener\" aria-label=\" (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\" href=\"https:\/\/docs.cloud.oracle.com\/iaas\/api\/\" target=\"_blank\">https:\/\/docs.cloud.oracle.com\/iaas\/api\/<\/a><br>&#8230;\u3061\u306a\u307f\u306b\u3088\u304f\u5229\u7528\u3057\u305d\u3046\u306a Compute\u95a2\u9023\u306f\u300cCore Services API\u300d\u306e\u9805\u76ee\u306b\u3042\u308a\u307e\u3059<br><br><strong>API\u5404\u30b5\u30fc\u30d3\u30b9\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8<\/strong><br><a rel=\"noreferrer noopener\" aria-label=\"https:\/\/docs.cloud.oracle.com\/iaas\/Content\/API\/Concepts\/apiref.htm (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\" href=\"https:\/\/docs.cloud.oracle.com\/iaas\/Content\/API\/Concepts\/apiref.htm\" target=\"_blank\">https:\/\/docs.cloud.oracle.com\/iaas\/Content\/API\/Concepts\/apiref.htm<\/a><br><br><strong>Oracle Cloud Infrastructure (OCI) REST call walkthrough with curl<\/strong><br><a rel=\"noreferrer noopener\" aria-label=\"https:\/\/www.ateam-oracle.com\/oracle-cloud-infrastructure-oci-rest-call-walkthrough-with-curl (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\" href=\"https:\/\/www.ateam-oracle.com\/oracle-cloud-infrastructure-oci-rest-call-walkthrough-with-curl\" target=\"_blank\">https:\/\/www.ateam-oracle.com\/oracle-cloud-infrastructure-oci-rest-call-walkthrough-with-curl<\/a><br>&#8230;curl\u3092\u4f7f\u7528\u3057\u3066REST API\u3092\u30b3\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3067\u3059<br><br><strong>OCI CURL<\/strong><br><a rel=\"noreferrer noopener\" aria-label=\" (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\" href=\"https:\/\/docs.oracle.com\/cd\/E97706_01\/Content\/Functions\/Tasks\/functionscreatinglocalocicurl.htm\" target=\"_blank\">https:\/\/docs.oracle.com\/cd\/E97706_01\/Content\/Functions\/Tasks\/functionscreatinglocalocicurl.htm<\/a><br><a rel=\"noreferrer noopener\" aria-label=\"https:\/\/docs.cloud.oracle.com\/iaas\/Content\/API\/Concepts\/signingrequests.htm (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\" href=\"https:\/\/docs.cloud.oracle.com\/iaas\/Content\/API\/Concepts\/signingrequests.htm\" target=\"_blank\">https:\/\/docs.cloud.oracle.com\/iaas\/Content\/API\/Concepts\/signingrequests.htm<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"2\">REST API\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306e\u6e96\u5099<\/h2>\n\n\n\n<p>\u307e\u305a\u306f\u5b9f\u884c\u3059\u308b\u74b0\u5883\u306b\u4ee5\u4e0b\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>openssl<\/li><li>curl<\/li><\/ul>\n\n\n\n<p>\u6b21\u306bAPI\u3092\u5229\u7528\u3059\u308b\u969b\u306b\u306fOCI\u4e0a\u306b\u30a2\u30a4\u30c7\u30f3\u30c6\u30a3\u30c6\u30a3\u30e6\u30fc\u30b6\u30fc\u3068\u305d\u306e\u30e6\u30fc\u30b6\u30fc\u306bAPI\u30ad\u30fc\u3092\u767b\u9332\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002OCI\u753b\u9762\u4e0a\u3067\u30a2\u30a4\u30c7\u30f3\u30c6\u30a3\u30c6\u30a3\u30e6\u30fc\u30b6\u30fc\u3068\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3057\u5229\u7528\u3057\u305f\u3044API\u306b\u5fdc\u3058\u3066\u5fc5\u8981\u306a\u30dd\u30ea\u30b7\u30fc\u3092\u5f53\u3066\u307e\u3057\u3087\u3046\u3002\u4f8b\u3068\u3057\u3066\u30b3\u30f3\u30d1\u30fc\u30c8\u30e1\u30f3\u30c8\u5185\u306eWAF\u306e\u30ea\u30bd\u30fc\u30b9\u306b\u5bfe\u3057\u3066\u7ba1\u7406\u6a29\u9650\u3092\u30b0\u30eb\u30fc\u30d7\u306b\u4e0e\u3048\u308b\u5834\u5408\u306f\u4ee5\u4e0b\u3068\u306a\u308a\u307e\u3059\u3088\u306d\u3002<br><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; gutter: false; title: ; notranslate\" title=\"\">\nallow group &lt;\u30b0\u30eb\u30fc\u30d7\u540d> to manage waas-policy in compartment &lt;\u30b3\u30f3\u30d1\u30fc\u30c8\u30e1\u30f3\u30c8\u540d>\n<\/pre><\/div>\n\n\n<p> \u307e\u305f\u3001API\u3092\u5229\u7528\u3059\u308b\u969b\u306b\u306f\u79d8\u5bc6\u9375\u3068\u516c\u958b\u9375\u306e\u30da\u30a2\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<br>\u79d8\u5bc6\u9375\uff0f\u516c\u958b\u9375\u30da\u30a2\u306e\u4f5c\u6210\u306f<a rel=\"noreferrer noopener\" href=\"https:\/\/docs.oracle.com\/cd\/E97706_01\/Content\/API\/Concepts\/apisigningkey.htm#How\" target=\"_blank\">\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3092\u53c2\u8003\u306b\u3057\u3066\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; gutter: false; title: ; notranslate\" title=\"\">\n# \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4f5c\u6210\nmkdir ~\/.oci\n\n# \u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u7121\u3057\u3067\u79d8\u5bc6\u9375\u3092\u751f\u6210\nopenssl genrsa -out ~\/.oci\/oci_api_key.pem 2048\n\n# \u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u9069\u6b63\u306a\u6a29\u9650\u306b\u5909\u66f4\nchmod go-rwx ~\/.oci\/oci_api_key.pem\n\n# \u79d8\u5bc6\u9375\u3092\u4f7f\u3044\u516c\u958b\u9375\u3092\u751f\u6210\nopenssl rsa -pubout -in ~\/.oci\/oci_api_key.pem -out ~\/.oci\/oci_api_key_public.pem\n<\/pre><\/div>\n\n\n<p>\u51fa\u6765\u4e0a\u304c\u3063\u305f\u516c\u958b\u9375\u300coci_api_key_public.pem\u300d\u306e\u4e2d\u8eab\u3092\u30a2\u30a4\u30c7\u30f3\u30c6\u30a3\u30c6\u30a3\u30e6\u30fc\u30b6\u30fc\u306eAPI\u30ad\u30fc\u306b\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-image custom-border\"><figure class=\"aligncenter\"><a href=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-rest-api-01-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"517\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-rest-api-01-1-1024x517.png\" alt=\"\" class=\"wp-image-9092\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-rest-api-01-1-1024x517.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-rest-api-01-1-300x151.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-rest-api-01-1-768x388.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-rest-api-01-1-450x227.png 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-rest-api-01-1-900x454.png 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-rest-api-01-1.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>API\u30ad\u30fc\u306e\u767b\u9332<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"3\">OCI-CURL\u306e\u8a2d\u5b9a<\/h2>\n\n\n\n<p>\u307e\u305a\u3001\u300cOCI-CURL\u300d\u306e\u8aac\u660e\u3092\u3059\u308b\u524d\u306b\u3001REST API \u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u5b9f\u969b\u306b\u3069\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u306b\u306a\u308b\u304b\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u4ee5\u4e0b\u306fJSON\u5f62\u5f0f\u306b\u3066waf\u30ed\u30b0\u306e\u53d6\u5f97\u3059\u308b\u4f8b\u3067\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; gutter: false; title: ; notranslate\" title=\"\">\ncurl -X GET -sS https:\/\/waas.ap-tokyo-1.oraclecloud.com\/20181116\/waasPolicies\/&lt;waasPolicyId>\/wafLogs?waasPolicyId=&lt;waasPolicyId>&logType=PROTECTION_RULES&timeObservedGreaterThanOrEqualTo=&lt;FromDate>&timeObservedLessThan=&lt;ToDate> -H date: &lt;CurrentDate> -H Authorization: Signature version=\"1\",keyId=\"&lt;TenancyOCID>\/&lt;AuthUserOCID>\/&lt;FingerPrint>\",algorithm=\"rsa-sha256\",headers=\"(request-target) date host\",signature=\"&lt;Signature>\"\n<\/pre><\/div>\n\n\n<p><strong>&lt;signature&gt;<\/strong>\u306b\u5165\u308b\u5024\u306a\u3069\u3082openssl\u3067\u96fb\u5b50\u7f72\u540d\u3092\u751f\u6210\u3057base64\u3067\u30a8\u30f3\u30b3\u30fc\u30c9\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u305f\u3081\u3001\u624b\u3067API\u3092\u30b3\u30fc\u30eb\u3059\u308b\u305f\u3081\u306b\u306f\u96e3\u6613\u5ea6\u304c\u9ad8\u305d\u3046\u3067\u3059\u306d\u3001\u3001<br>\u6539\u3081\u3066\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u7c21\u5358\u306b\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306bOracle\u304c\u4fbf\u5229\u306aBash\u3092\u7528\u610f\u3057\u3066\u3044\u307e\u3059\u3002<br><br>\u516c\u5f0f\u3067\u516c\u958b\u3057\u3066\u3044\u308bBash\u306f<a rel=\"noreferrer noopener\" aria-label=\"\u3053\u3061\u3089 (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\" href=\"https:\/\/docs.cloud.oracle.com\/iaas\/Content\/Resources\/Assets\/signing_sample_bash.txt\" target=\"_blank\">\u3053\u3061\u3089<\/a>\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u79c1\u306e\u74b0\u5883\u3067\u3069\u3046\u3082\u4e0a\u624b\u304f\u3044\u304b\u306a\u304b\u3063\u305f\u305f\u3081\u5c11\u3057\u6539\u5909\u3057\u307e\u3057\u305f\u306e\u3067\u4ee5\u4e0b\u306b\u305d\u306e\u5185\u5bb9\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<br><br><br><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; auto-links: false; highlight: [9,10,11,12,13,17,18,19,20,33,34,40,41,47,48,54,55,56,65,66,67,131]; title: ; notranslate\" title=\"\">\n# Version: 1.0.2 ( IT PORT Ver.)\n# Usage:\n# oci-curl <host> <method> &#x5B;file-to-send-as-body] <request-target> &#x5B;extra-curl-args]\n#\n# ex:\n# oci-curl iaas.us-ashburn-1.oraclecloud.com get \"\/20160918\/instances?compartmentId=some-compartment-ocid\"\n# oci-curl iaas.us-ashburn-1.oraclecloud.com post .\/request.json \"\/20160918\/vcns\"\n\narg1=$1\narg2=$2\narg3=$3\narg4=$4\narg5=$5\n\nfunction oci-curl {\n    # TODO: update these values to your own\n\tlocal tenancyId=\"OCID\u30c6\u30ca\u30f3\u30b7ID\";\n\tlocal authUserId=\"\u30a2\u30a4\u30c7\u30f3\u30c6\u30a3\u30c6\u30a3\u30e6\u30fc\u30b6\u30fc\u306eOCID\";\n\tlocal keyFingerprint=\"API\u30ad\u30fc\u306e\u30d5\u30a3\u30f3\u30ac\u30fc\u30d7\u30ea\u30f3\u30c8\";\n\tlocal privateKeyPath=\"API\u30ad\u30fc\u306e\u79d8\u5bc6\u9375\u306e\u5834\u6240\";\n\n    local alg=rsa-sha256\n    local sigVersion=\"1\"\n    local now=\"$(LC_ALL=C \\date -u \"+%a, %d %h %Y %H:%M:%S GMT\")\"\n    local host=$arg1\n    local method=$arg2\n    local extra_args\n    local keyId=\"$tenancyId\/$authUserId\/$keyFingerprint\"\n    \n    case $method in\n\n        \"get\" | \"GET\")\n            local target=$arg3\n            extra_args=$arg4\n            local curl_method=\"GET\";\n            local request_method=\"get\";\n            ;;\n\n        \"delete\" | \"DELETE\")\n            local target=$arg3\n            extra_args=$arg4\n            local curl_method=\"DELETE\";\n            local request_method=\"delete\";\n            ;;\n\n        \"head\" | \"HEAD\")\n            local target=$arg3\n            extra_args=(\"--head\" $arg4)\n            local curl_method=\"HEAD\";\n            local request_method=\"head\";\n            ;;\n\n        \"post\" | \"POST\")\n            local body=$arg3\n            local target=$arg4\n            extra_args=$arg5\n            local curl_method=\"POST\";\n            local request_method=\"post\";\n            local content_sha256=\"$(openssl dgst -binary -sha256 < $body | openssl enc -e -base64)\";\n            local content_type=\"application\/json\";\n            local content_length=\"$(wc -c < $body | xargs)\";\n            ;;\n\n        \"put\" | \"PUT\")\n            local body=$arg3\n            local target=$arg4\n            extra_args=$arg5\n            local curl_method=\"PUT\"\n            local request_method=\"put\"\n            local content_sha256=\"$(openssl dgst -binary -sha256 < $body | openssl enc -e -base64)\";\n            local content_type=\"application\/json\";\n            local content_length=\"$(wc -c < $body | xargs)\";\n            ;;\n\n        *) echo \"invalid method\"; return;;\n    esac\n\n    # This line will url encode all special characters in the request target except \"\/\", \"?\", \"=\", and \"&#038;\", since those characters are used \n    # in the request target to indicate path and query string structure. If you need to encode any of \"\/\", \"?\", \"=\", or \"&#038;\", such as when\n    # used as part of a path value or query string key or value, you will need to do that yourself in the request target you pass in.\n    local escaped_target=\"$(echo $( rawurlencode \"$target\" ))\"\n    \n    local request_target=\"(request-target): $request_method $escaped_target\"\n    local date_header=\"date: $now\"\n    local host_header=\"host: $host\"\n    local content_sha256_header=\"x-content-sha256: $content_sha256\"\n    local content_type_header=\"content-type: $content_type\"\n    local content_length_header=\"content-length: $content_length\"\n    local signing_string=\"$request_target\\n$date_header\\n$host_header\"\n    local headers=\"(request-target) date host\"\n    local curl_header_args\n    curl_header_args=(-H \"$date_header\")\n    local body_arg\n    body_arg=()\n\n    if &#x5B; \"$curl_method\" = \"PUT\" -o \"$curl_method\" = \"POST\" ]; then\n        signing_string=\"$signing_string\\n$content_sha256_header\\n$content_type_header\\n$content_length_header\"\n        headers=$headers\" x-content-sha256 content-type content-length\"\n        curl_header_args=(\"${curl_header_args&#x5B;@]}\" -H \"$content_sha256_header\" -H \"$content_type_header\" -H \"$content_length_header\")\n        body_arg=(--data-binary @${body})\n    fi\n\n    local sig=$(printf '%b' \"$signing_string\" | \\\n                openssl dgst -sha256 -sign $privateKeyPath | \\\n                openssl enc -e -base64 | tr -d '\\n')\n\n    curl \"${extra_args&#x5B;@]}\" \"${body_arg&#x5B;@]}\" -X $curl_method -sS https:\/\/${host}${escaped_target} \"${curl_header_args&#x5B;@]}\" \\\n         -H \"Authorization: Signature version=\\\"$sigVersion\\\",keyId=\\\"$keyId\\\",algorithm=\\\"$alg\\\",headers=\\\"${headers}\\\",signature=\\\"$sig\\\"\"\n  \n}\n\n# url encode all special characters except \"\/\", \"?\", \"=\", and \"&#038;\"\nfunction rawurlencode {\n  local string=\"${1}\"\n  local strlen=${#string}\n  local encoded=\"\"\n  local pos c o\n\n  for (( pos=0 ; pos<strlen ; pos++ )); do\n     c=${string:$pos:1}\n     case \"$c\" in\n        &#x5B;-_.~a-zA-Z0-9] | \"\/\" | \"?\" | \"=\" | \"&#038;\" ) o=\"${c}\" ;;\n        * )               printf -v o '%%%02x' \"'$c\"\n     esac\n     encoded+=\"${o}\"\n  done\n\n  echo \"${encoded}\"\n}\n\noci-curl\n<\/pre><\/div>\n\n\n<p>\u4fee\u6b63\u3057\u305f\u30dd\u30a4\u30f3\u30c8\u306f3\u3064\u3067\u3059\u3002\uff08\u30bd\u30fc\u30b9\u3092\u30cf\u30a4\u30e9\u30a4\u30c8\u3057\u305f\u7b87\u6240\u3067\u3059\uff09<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u30c6\u30ca\u30f3\u30b7OCID\uff0f\u30e6\u30fc\u30b6\u30fc\u306eOCID\uff0fAPI\u30ad\u30fc\u306e\u30d5\u30a3\u30f3\u30ac\u30fc\u30d7\u30ea\u30f3\u30c8\uff0fAPI\u30ad\u30fc\u306e\u79d8\u5bc6\u9375\u306e\u5834\u6240\u306e\u6307\u5b9a<\/li><li>\u30b3\u30de\u30f3\u30c9\u306e\u5f15\u6570\u3092\u4e00\u65e6\u5909\u6570\u306b\u683c\u7d0d\u3059\u308b\u3088\u3046\u306b\u5909\u66f4<\/li><li>\u30b9\u30af\u30ea\u30d7\u30c8\u672b\u5c3e\u306b\u300coci-curl\u300d\u95a2\u6570\u306e\u547c\u3073\u51fa\u3057\u3092\u8ffd\u52a0<\/li><\/ul>\n\n\n\n<p>\u30b3\u30de\u30f3\u30c9\u306e\u5f15\u6570\u3092\u300coci-curl\u300d\u95a2\u6570\u306e\u4e2d\u3067\u4f7f\u7528\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u79c1\u306e\u30de\u30b7\u30f3\uff1f\u3067\u306f\u3069\u3046\u3082\u5f15\u6570\u306e\u5024\u304c\u53d6\u5f97\u51fa\u6765\u3066\u3044\u306a\u304b\u3063\u305f\u3088\u3046\u306a\u306e\u3067\u3001\u4e00\u65e6\u5909\u6570\u306e\u4e2d\u306b\u5f15\u6570\u306e\u5024\u3092\u5165\u308c\u307e\u3057\u305f\u3002\u307e\u305f\u3001\u672b\u5c3e\u306b\u95a2\u6570\u306e\u547c\u3073\u51fa\u3057\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002<br>\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u51fa\u6765\u305f\u3089\u4e0a\u8a18\u306eBash\u3092\u4efb\u610f\u306e\u5834\u6240\u306b\u914d\u7f6e\u3057\u307e\u3059\u3002\uff08 \u5229\u7528\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u306ePATH\u304c\u901a\u308b\u5834\u6240\u306b\u5b9f\u884c\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u914d\u7f6e\u3059\u308b\u306e\u304c\u4fbf\u5229\u3067\u3059\u3002\uff09<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"4\">OCI-CURL\u306e\u5b9f\u884c<\/h2>\n\n\n\n<p>\u3055\u3066\u3001\u3088\u3046\u3084\u304f\u5b9f\u884c\u51fa\u6765\u308b\u72b6\u614b\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br>OCI-CURL\u3092\u5b9f\u884c\u3059\u308b\u969b\u306f\u300coci-curl &lt;\u30db\u30b9\u30c8&gt; &lt;\u30e1\u30bd\u30c3\u30c9&gt; &lt;\u30ea\u30af\u30a8\u30b9\u30c8\u30bf\u30fc\u30b2\u30c3\u30c8&gt; \u300d\u3082\u3057\u304f\u306f\u300coci-curl &lt;\u30db\u30b9\u30c8&gt; &lt;\u30e1\u30bd\u30c3\u30c9&gt; &lt;\u30d5\u30a1\u30a4\u30eb&gt; &lt;\u30ea\u30af\u30a8\u30b9\u30c8\u30bf\u30fc\u30b2\u30c3\u30c8&gt; \u300d\u3068\u3044\u3046\u3088\u3046\u306a\u5f62\u3067\u5f15\u6570\u3092\u6307\u5b9a\u3057\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002\u57fa\u672c\u7684\u306b<strong>GET<\/strong>\u3001<strong>DELETE<\/strong>\u3001<strong>HEAD<\/strong>\u30e1\u30bd\u30c3\u30c9\u306e\u5834\u5408\u306f\uff13\u3064\u306e\u5f15\u6570\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>\u7b2c\u4e00\u5f15\u6570<\/td><td>\u30db\u30b9\u30c8\uff08API\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\uff09<\/td><\/tr><tr><td>\u7b2c\u4e8c\u5f15\u6570<\/td><td>\u30e1\u30bd\u30c3\u30c9\uff08GET\uff0fDELETE\uff0fHEAD\uff09<\/td><\/tr><tr><td>\u7b2c\u4e09\u5f15\u6570<\/td><td>\u30ea\u30af\u30a8\u30b9\u30c8\u30bf\u30fc\u30b2\u30c3\u30c8\uff0b\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>\u4f8b\u3068\u3057\u3066\u30b3\u30f3\u30d1\u30fc\u30c8\u30e1\u30f3\u30c8\u5185\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u30ea\u30b9\u30c8\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u3066\u307f\u307e\u3059\u3002\u307e\u305a\u7b2c\u4e00\u5f15\u6570\u306e\u30db\u30b9\u30c8\u3067\u3059\u304c\u3001<a rel=\"noreferrer noopener\" aria-label=\"\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\" href=\"https:\/\/docs.cloud.oracle.com\/iaas\/Content\/API\/Concepts\/apiref.htm\" target=\"_blank\">\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u306b\u3088\u308b\u3068\u300cCore Services API\u300d\u306e\u6771\u4eac\u30ea\u30fc\u30b8\u30e7\u30f3\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306f\u4ee5\u4e0b\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-api-03.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"655\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-api-03-1024x655.png\" alt=\"\" class=\"wp-image-9151\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-api-03-1024x655.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-api-03-300x192.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-api-03-768x491.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-api-03-450x288.png 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-api-03-900x576.png 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-api-03.png 1361w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>API Reference and Endpoint<\/figcaption><\/figure><\/div>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; gutter: false; title: ; notranslate\" title=\"\">\niaas.ap-tokyo-1.oraclecloud.com\n<\/pre><\/div>\n\n\n<p>\u6b21\u306b<a rel=\"noreferrer noopener\" aria-label=\"API\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9 (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\" href=\"https:\/\/docs.cloud.oracle.com\/iaas\/api\/#\/en\/iaas\/20160918\/Instance\/ListInstances\" target=\"_blank\">\u300cListinstances\u300d\u306eAPI\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9<\/a>\u3092\u53c2\u7167\u3057\u3066\u307f\u307e\u3059\u3002\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u300cListinstances\u300d\u306b\u306f\u4ee5\u4e0b\u304c\u8a18\u8f09\u3055\u308c\u3066\u304a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-api-01.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"718\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-api-01-1024x718.png\" alt=\"\" class=\"wp-image-9120\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-api-01-1024x718.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-api-01-300x210.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-api-01-768x539.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-api-01-450x316.png 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-api-01-900x631.png 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-api-01.png 1289w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>API\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9<\/figcaption><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>\u2460 \u5229\u7528\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3068\u30ea\u30af\u30a8\u30b9\u30c8\u30bf\u30fc\u30b2\u30c3\u30c8\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/li><li>\u2461 \u300cParameters\u300d\u306e\u8a18\u8f09\u306b\u300c<strong>Required : yes<\/strong>\u300d\u3068\u306a\u3063\u3066\u3044\u308b\u3082\u306e\u306f\u5fc5\u9808\u306a\u306e\u3067\u5fc5\u305a\u4ed8\u3051\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/li><\/ul>\n\n\n\n<p>\u4e0a\u8a18\uff12\u70b9\u3092\u8e0f\u307e\u3048\u3066\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u30ea\u30b9\u30c8\u3092\u53d6\u5f97\u3059\u308b\u969b\u306b\u306f\u3001\u30e1\u30bd\u30c3\u30c9\u306fGET\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u30bf\u30fc\u30b2\u30c3\u30c8\u306f\u300c\/20160918\/instances\/\u300d\uff0b\u300c?compartmentId=\u30b3\u30f3\u30d1\u30fc\u30c8\u30e1\u30f3\u30c8\u306eOCID\u300d\u3068\u306a\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3057\u305f\u306e\u3067oci-curl\u30b3\u30de\u30f3\u30c9\u3067\u7e4b\u3052\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; gutter: false; title: ; notranslate\" title=\"\">\noci-curl iaas.ap-tokyo-1.oraclecloud.com get \"\/20160918\/instances\/?compartmentId=ocid1.compartment.oc1..xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n<\/pre><\/div>\n\n\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u30ea\u30b9\u30c8\u304cREST API\u3092\u5229\u7528\u3057\u3066\u53d6\u5f97\u3067\u304d\u307e\u3057\u305f\u3002<br>\u307e\u305f\u3001<strong>POST<\/strong>\u3068<strong>PUT<\/strong>\u30e1\u30bd\u30c3\u30c9\u306b\u95a2\u3057\u3066\u306f\u3001\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5f15\u6570\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>\u7b2c\u4e00\u5f15\u6570<\/td><td>\u30db\u30b9\u30c8\uff08API\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\uff09 <\/td><\/tr><tr><td>\u7b2c\u4e8c\u5f15\u6570<\/td><td>\u30e1\u30bd\u30c3\u30c9\uff08POST\uff0fPUT\uff09 <\/td><\/tr><tr><td>\u7b2c\u4e09\u5f15\u6570<\/td><td>POST\u3059\u308b\u30c7\u30fc\u30bf\uff08JSON\u5f62\u5f0f\u306e\u30d5\u30a1\u30a4\u30eb\uff09\u3084PUT\u3059\u308b\u30d5\u30a1\u30a4\u30eb\uff08\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u30a2\u30c3\u30d7\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306a\u3069\uff09<\/td><\/tr><tr><td>\u7b2c\u56db\u5f15\u6570<\/td><td>\u30ea\u30af\u30a8\u30b9\u30c8\u30bf\u30fc\u30b2\u30c3\u30c8\uff0b\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc <\/td><\/tr><\/tbody><\/table>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\"\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\" href=\"https:\/\/docs.cloud.oracle.com\/iaas\/api\/#\/en\/objectstorage\/20160918\/Object\/PutObject\" target=\"_blank\">\u300cPutObject\u300d\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3092\u53c2\u8003\u306b\u8a66\u3057\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\uff08PutObject\uff09\u3057\u3066\u307f\u307e\u3059\u3002\u6771\u4eac\u30ea\u30fc\u30b8\u30e7\u30f3\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u7528\u306eAPI\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306f\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; gutter: false; title: ; notranslate\" title=\"\">\nobjectstorage.ap-tokyo-1.oraclecloud.com\n<\/pre><\/div>\n\n\n<p>\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3057\u3066oci-curl\u30b3\u30de\u30f3\u30c9\u3067\u30d0\u30b1\u30c3\u30c8\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\n# \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3057\u307e\u3059\necho \"Hello\" > .\/test.txt\n\n# oci-curl\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3059\noci-curl objectstorage.ap-tokyo-1.oraclecloud.com put .\/test.txt \"\/n\/&lt;\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9>\/b\/&lt;\u30d0\u30b1\u30c3\u30c8\u540d>\/o\/&lt;\u30d5\u30a1\u30a4\u30eb\u540d>\"\n<\/pre><\/div>\n\n\n<p>\u203b<strong>&lt;<\/strong><a rel=\"noreferrer noopener\" aria-label=\"\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9 (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\" href=\"https:\/\/docs.oracle.com\/cd\/E97706_01\/Content\/Object\/Tasks\/understandingnamespaces.htm\" target=\"_blank\"><strong>\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9<\/strong><\/a><strong>&gt;<\/strong>\u306f\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u4f5c\u6210\u6642\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u305f\u3001\u4e00\u610f\u3067\u7de8\u96c6\u4e0d\u80fd\u306a\u30b7\u30b9\u30c6\u30e0\u751f\u6210\u6587\u5b57\u5217\u3067\u3059\u3002Web\u7ba1\u7406\u753b\u9762\u4e0a\u3067\u306f\u4ee5\u4e0b\u306e\u7b87\u6240\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<strong>&lt;\u30d0\u30b1\u30c3\u30c8\u540d&gt;<\/strong>\u306fOCID\u3067\u306f\u7121\u304f\u30d0\u30b1\u30c3\u30c8\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-rest-api-02.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"502\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-rest-api-02-1024x502.png\" alt=\"\" class=\"wp-image-9136\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-rest-api-02-1024x502.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-rest-api-02-300x147.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-rest-api-02-768x377.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-rest-api-02-450x221.png 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-rest-api-02-900x441.png 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/12\/img_oci-rest-api-02.png 1376w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"5\">\u304a\u308f\u308a\u306b<\/h2>\n\n\n\n<p>REST API\u3092\u5229\u7528\u3059\u308b\u30b7\u30fc\u30f3\u3068\u3057\u3066\u306f\u3001Web\u30a2\u30d7\u30ea\u7b49\u3067API\u3092\u5b9f\u88c5\u3059\u308b\u5834\u5408\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u304c\u3001SDK\u306e\u7528\u610f\u304c\u7121\u3044\u5834\u5408\u306f<a rel=\"noreferrer noopener\" href=\"https:\/\/docs.cloud.oracle.com\/iaas\/Content\/API\/Concepts\/signingrequests.htm\" target=\"_blank\">\u3053\u3061\u3089<\/a>\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u8003\u306b\u30c1\u30e3\u30ec\u30f3\u30b8\u3057\u3066\u307f\u308b\u306e\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<br>\u57fa\u672c\u7684\u306bBash\u306a\u3069\u3067\u3042\u308c\u3070\u3001OCI-CLI\u3092\u5229\u7528\u3059\u308b\u65b9\u304c\u7c21\u5358\u3067\u6577\u5c45\u304c\u4f4e\u3044\u3068\u611f\u3058\u307e\u3057\u305f\u304c\u3001REST API\u3092\u5229\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u672c\u8a18\u4e8b\u304c\u7686\u69d8\u306e\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3068\u5e78\u3044\u3067\u3059\u3002<\/p>\n\n\n<ul class=\"lcp_catlist\" id=\"lcp_instance_0\"><\/ul>\n","protected":false},"excerpt":{"rendered":"\u76ee\u6b21 \u306f\u3058\u3081\u306bREST API\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3082\u306eOCI-CURL\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3068\u8a2d\u5b9aOCI-CURL\u306e\u5b9f\u884c\u304a\u308f\u308a\u306b \u306f\u3058\u3081\u306b Oracle Cloud \u306e\u7ba1\u7406\u753b\u9762\u4e0a\u3067\u64cd\u4f5c\u3067\u304d\u308b\u3053\u3068\u306f Oracle Cloud Infrastructure API\uff08OCI API\uff09\u3067\u540c\u69d8\u3001\u3082\u3057\u304f\u306f\u305d\u308c\u4ee5\u4e0a\u306e\u7d30\u304b\u306a\u64cd\u4f5c\u304c\u53ef\u80fd\u3067\u3059\u3002Web\u306e\u7ba1\u7406\u753b\u9762\u306f\u7c21\u7565\u5316\u3057\u3066\u3044\u308b\u90e8\u5206\u3082\u3042\u308a\u3001\u753b\u9762\u4e0a\u3067\u64cd\u4f5c\u3067\u304d\u306a\u3044\u7d30\u304b\u306a\u8a2d\u5b9a\u306a\u3069\u3082OCI API\u3067\u306f\u64cd\u4f5c\u304c\u53ef\u80fd\u306a\u305f\u3081\u975e\u5e38\u306b\u4fbf\u5229\u3067\u3059\u3002\u305f\u3060\u3001CUI\u4e0a\u306e\u64cd\u4f5c\u306e\u5834\u5408\u306f\u3001REST API\u3067\u306f\u7121\u304f\u7c21\u5358\u306b\u5229\u7528\u304c\u3067\u304d\u308bOCI-CLI\uff08\u30b3\u30de\u30f3\u30c9\u30fb\u30e9\u30a4\u30f3\u30fb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\uff09\u3092\u4f7f\u3046\u3053\u3068\u304c\u591a\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002\u79c1\u304cOCI\u306eRES&hellip;","protected":false},"author":3,"featured_media":9112,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[65],"class_list":{"0":"post-8745","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-oraclecloud","8":"tag-season21"},"_links":{"self":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/8745","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8745"}],"version-history":[{"count":88,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/8745\/revisions"}],"predecessor-version":[{"id":9238,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/8745\/revisions\/9238"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/media\/9112"}],"wp:attachment":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8745"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}