curl 헤더 결과값 파일에 저장

snooby·2023년 3월 21일
0
curl -i --location 'https://gov-cbt-keystone.kakaoicloud.in/v3/auth/tokens' \
  --header 'Content-Type: application/json' \
  --data '{
      "auth": {
          "identity": {
              "methods": [
                  "password"
              ],
              "password": {
                  "user": {
                        "id": "'"${object_storage_userid}"'",
                        "password": "'"${object_storage_user_password}"'"
                  }
              }
          },
          "scope": {
              "project": {
                    "id": "'"${tenant_id}"'"
              }
          }
      }
  }'  > result_Object_storage_header.txt

curl 명령어 뒤에 "> 파일명.확장자"를 작성하면 파일에 결과값이 저장됩니다.

profile
데이터를 가치있게 다루고 싶은 개발자 🐥

0개의 댓글